1.在写Autowired自动注入的时候,因为后面有重写Bean,然后会发生循环依赖问题:一个可行的解决方法就是在yml配置的spring下面加main:
allow-circular-references: true
就可以解决。
2.Spring boot 集成Swagger2的时候报错:
Failed to start bean ‘documentationPluginsBootstrapper’; nested exception is java.lang.NullPointerException等等一堆
可以换一下Swagger2和Springboot的版本,即可。



