when i replace jersey annotations with spring rest it throw exception 404 Not found

217 Views Asked by At

I got 404 exception, when i replace jersey annotations with spring rest annotations.

enter image description here

1

There are 1 best solutions below

0
On

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.