404 means resource not available.
Typical troubleshooting includes:
1) Check your spring boot server status. Did it start without any errors?
2) check available mappings at localhost:8080/mappings
. Did you see your mapping on that page?
3) When you access the URL what happens in the log file?
4) When you say it works fine in eclipse, did you deploy it to any server? or did you run it from command line? And try to find out the difference between eclipse launch configuration and java -jar launch configuration.
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…