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

 接口请求时,报错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所在的模块
<dependency>

<groupId>cccg</groupId>
<artifactId>api-impl</artifactId>

</dependency>

评论

暂无评论