とのDispatcherServletにURIとHTTPリクエストが見つかりませんマッピング:例外私は春私のwebfunctionに到達しようとする:cotrollerでPageNotFound noHandlerFound警告:私はこれを取得名前
PageNotFound noHandlerFound WARNING: No mapping found for HTTP request with URI in DispatcherServlet with name
私が得た:
@Controller
@RequestMapping("/user/**")
@Scope("request")
私は追加web.xmlに
@RequestMapping(value = "test", method = RequestMethod.GET, produces = MediaType.TEXT_PLAIN_VALUE)
:
とウェブ機能で
<servlet-mapping>
<servlet-name>webApplication</servlet-name>
<url-pattern>/rest/*</url-pattern>
</servlet-mapping>
と住所に到達しようとした後:
http://localhost:8087/webApp-project/rest/user/test
私は例外を取得:
<beans:bean class="com.capgemini.webApp.project.process.engine.authentication.UserRest" name="/rest/*"></beans:bean>
を設定ファイルに:
cze 21, 2016 10:12:00 AM org.springframework.web.servlet.PageNotFound noHandlerFound
WARNING: No mapping found for HTTP request with URI [/webApp-project/rest/user/test] in DispatcherServlet with name 'webApp'
問題を追加することで解決しました。だれかが問題を解決した理由を教えてください。私は注釈駆動型の構成を得た。
私はSpring Securityでページを保護したいのですが、このBean定義のために問題が発生しましたか?