springboot新建模板,访问连接一直提示,但请求连接是对的。

org.springframework.web.servlet.NoHandlerFoundException: No handler found for OPTIONS /tr-model-admin/modules/logmessage/list
    at org.springframework.web.servlet.DispatcherServlet.noHandlerFound(DispatcherServlet.java:1210)
    at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:966)
    at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:925)
    at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:974)
    at org.springframework.web.servlet.FrameworkServlet.doOptions(FrameworkServlet.java:913)
 

Sptingboot 多模块请求报错org.springframework.web.servlet.NoHandlerFoundException

    但是换个请求连接,则可以,考虑没有依赖模块。

 

Sptingboot 多模块请求报错org.springframework.web.servlet.NoHandlerFoundException

Sptingboot 多模块请求报错org.springframework.web.servlet.NoHandlerFoundException

Sptingboot 多模块请求报错org.springframework.web.servlet.NoHandlerFoundException

 

Sptingboot 多模块请求报错org.springframework.web.servlet.NoHandlerFoundException

Sptingboot 多模块请求报错org.springframework.web.servlet.NoHandlerFoundException

经过测试,可以正常访问了。

采坑总结:启动类需要配置子模块的依赖信息,否则即使子模块引用了模块信息,也无法使用。

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2021-05-29
  • 2021-06-24
  • 2021-08-17
  • 2021-06-11
  • 2021-04-16
猜你喜欢
  • 2022-12-23
  • 2021-09-26
  • 2021-08-27
  • 2021-11-08
  • 2021-10-07
  • 2021-08-28
相关资源
相似解决方案