I am learning spring boot and trying to built my first application. Program is running fine on console. When I'm trying to add data on localhost page showing error? Alien.java
Asked
Active
Viewed 408 times
1 Answers
0
The error is clear: 404 means Spring didn't find your URL.
Your controller declares addAlien with an uppercase, while your test uses addalien with a lowercase.
Make sure to be consistent everywhere with your declarations and your usages.
For more informations, check this answer.
Guillaume F.
- 5,905
- 2
- 31
- 59