如果是.properties文件,在文件中添加
spring.main.allow-circular-references=true
如果是.yml文件,则在文件中添加
spring:
main:
allow-circular-references:true
文章参考:
https://blog.csdn.net/weixin_45812467/article/details/123985626
- discouraged springboot references prohibited circulardiscouraged springboot references prohibited discouraged pomrelying references prohibited javascript references circular springboot reference 11 prohibited discouraged storage devicemapper discouraged storage-opt discouraged envionment anything strongly circular circular subarray maximum medium