在网上看见大神解决了这个方法,记录一下,原地址https://blog.csdn.net/wang1988081309/article/details/81073371
首先在resources目录下面创建META-INF文件夹,然后创建spring-devtools.properties
然后在配置文件中
restart.include.mapper=/mapper-[\w-\.]+jar
restart.include.pagehelper=/pagehelper-[\w-\.]+jar
# 因为我项目中引用了 org.crazycake:shiro-redis ,所以要引用下面这个配置
restart.include.shiro=/shiro-[\w-\.]+jar
然后再启动项目就好了,这是什么原理?