Property [renew] not found. Using default value [false]

╰半夏微凉° 2024-03-22 14:19 135阅读 0赞

接口请求时,报错Property [renew] not found. Using default value [false]

返回:

There was an unexpected error (type=Not Found, status=404).

有两种可能:

1、添加扫描路径

使用basePackages:

@ComponentScan(basePackages = { “com.person”,”com.controller”} )

2、添加依赖

在启动模块start中,要依赖controller所在的模块

  1. <dependency>
  2. <groupId>cccg</groupId>
  3. <artifactId>api-impl</artifactId>
  4. </dependency>

发表评论

表情:
评论列表 (有 0 条评论,135人围观)

还没有评论,来说两句吧...

相关阅读