springboot监听类war形式部署问题摘要:本人在以war包形式部署springboot项目的时候踩到的一个坑问题说明:springboot项目在开发环境启动时是毫无问题的,然而一打war包,tomcat控制台一直报错,监听类中的service始终是null,也就是说@autowise注解失效了。通过查找资料,解决方法如下@WebListener
public class InitDataListener implements.../admin/blog/articles/84 发布日期:2020-11-08
Linux环境搭建摘要: privileges on *.* to root@'%' identified by 'password'; flush privileges;注意:mysql-community.repo这个文件中可以换数据库版本使用。Enabled=15、部署web项目将war包丢到tomcat的webapp下启动后报错,将db.properties改掉&.../admin/blog/articles/18 发布日期:2020-11-08
多个SpringBoot项目部署在同一个tomcat容器报错摘要:异常信息如下org.springframework.jmx.export.UnableToRegisterMBeanException: Unable to register MBean [com.alibaba.druid.filter.stat.StatFilter@7cbac5a3] with key 'statFilter'; nested exception is javax.manag.../admin/blog/articles/137 发布日期:2020-11-08