admin管理员组文章数量:1389838
I am using spring-boot 3.4.3 with devtools automatic restart enabled.
but it causing me trouble, as devtools using RestartClassLoader to load some class, mybatis use class instance as map key to identify mappers.
public <T> T getMapper(Class<T> type, SqlSession sqlSession) {
final MapperProxyFactory<T> mapperProxyFactory = (MapperProxyFactory<T>) knownMappers.get(type);
if (mapperProxyFactory == null) {
throw new BindingException("Type " + type + " is not known to the MapperRegistry.");
}
try {
return mapperProxyFactory.newInstance(sqlSession);
} catch (Exception e) {
throw new BindingException("Error getting mapper instance. Cause: " + e, e);
}
}
I want to exclude .itps.pub.mappers
package from RestartClassLoader ?
what's the right syntax in spring-devtools.properties
, the spring-boot official doc is not telling how to exclude packages.. and googling on internet only can found examples for old versions that using wildcards.
本文标签: What39s the right way to exclude some packages for springboot devtools restartStack Overflow
版权声明:本文标题:What's the right way to exclude some packages for spring-boot devtools restart - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1744661256a2618261.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论