I got 404 exception, when i replace jersey annotations with spring rest annotations.
Asked
Active
Viewed 180 times
0

Alien
- 15,141
- 6
- 37
- 57

user3796427
- 11
- 1
- 3
-
Can you share the url, you are trying to access? – Pooja Aggarwal Nov 29 '18 at 05:33
-
Was this class part of @ApplicationPath? – Ori Marko Nov 29 '18 at 05:41
-
Spring-Applicatin has a good logs. Look in the log. Do you see lines about mapping "/student/display" path? Any errors or warnings? What starting port do you see in the log? What URL do you trying to use? – Anatoly Samoylenko Nov 29 '18 at 05:58
-
http://localhost:8080/student/display – user3796427 Nov 29 '18 at 06:01
-
i am using spring boot version 1.2.7 – user3796427 Nov 29 '18 at 06:03
-
Pls add your pom.xml – MyTwoCents Nov 29 '18 at 06:13
-
Did you setup `server.servlet.context-path`? – Ori Marko Nov 29 '18 at 06:29
1 Answers
0
Do you have a class annotated with @Componentscan in your root package , if you don't it's normal to hava a 404 not found in this case. With jersey in order to expose a rest api you need to register it.

Mehdi Bahra
- 319
- 1
- 8