Bonjour, je développe une petite application en Spring Boot.
J'ai des problémes d'erreur 400 ou 404 sur les requête.
Je pars du plus simple. Je lance l'application en mode debug et voici mon controller
et la requête http://localhost:8080 retourne une erreur 404
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15 @Controller public class SubscriptionController { private final SubscriptionService subscriptionService; @Autowired public SubscriptionController(SubscriptionService subscriptionService){ this.subscriptionService = subscriptionService; } @GetMapping() public String hello() { return "hello world"; }
le ping localhost renvoie des données
de même dans mon pom.xml "<name>galaxion</name>" et dans mon fichier application.properties j'ai la ligne "spring.application.name=galaxion"
et la requête http://localhost:8080/galaxion retourne une erreur 404






Répondre avec citation



Partager