当前位置:   article > 正文

Request method ‘POST‘ not supported报错导致controller访问不到接口_若依官网"msg": "request method 'post' not supported

若依官网"msg": "request method 'post' not supported

我的问题是项目主pom里没有加入子module的依赖导致controller没有被扫到,

解决方式

</dependencyManagement> 标签里加入子module的依赖版本号管理,例如
<dependency>
    <groupId>com.dtdream</groupId>
    <artifactId>tag_search</artifactId>
    <version>${project.version}</version>
</dependency>
</dependencyManagement>

然后在boostrap主启动的模块的依赖里引入依赖

<dependency>
    <groupId>com.dtdream</groupId>
    <artifactId>tag_search</artifactId>
</dependency>

然后再clean ,compile

重新启动,就能访问到controller的接口了 

声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/小小林熬夜学编程/article/detail/224817
推荐阅读
相关标签
  

闽ICP备14008679号