I am starting a new project with Dropwizard and Spring, the problem is for all my rest requests I get 404, and no exeption in log files.
This is the response I get:
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
<title>Error 404 Not Found</title>
</head>
<body>
<h2>HTTP ERROR 404</h2>
<p>Problem accessing /users. Reason:
<pre> Not Found</pre>
</p>
<hr>
<i>
<small>Powered by http://Jetty</small>
</i>
<hr/>
</body>
</html>
The service starts without any problem, even I can see these logs lines in the console
GET /users (com.toptal.expense.resource.UserResource)
INFO [2015-04-10 02:27:48,879] org.eclipse.jetty.server.handler.ContextHandler: Started i.d.j.MutableServletContextHandler@fec6b04{/application,null,AVAILABLE}
INFO [2015-04-10 02:27:48,879] io.dropwizard.setup.AdminEnvironment: tasks =
POST /tasks/log-level (io.dropwizard.servlets.tasks.LogConfigurationTask)
POST /tasks/gc (io.dropwizard.servlets.tasks.GarbageCollectionTask)
I posted the code on github if you want to take a look http://ift.tt/1GSfhIU
Thanks in advance.
Aucun commentaire:
Enregistrer un commentaire