spring data jpa with template dynamic query (eg: freemarker,velocity etc.) like mybatis. The master branch already support springboot2+ spring5+
400
stars
116
forks
source link
FreemarkerSqlTemplates在多数据源的情况下使用@PersistenceContext注解找不全sftl问题 #21
Open
rplees opened 6 years ago
我解决方法是继承后在 FreemarkerSqlTemplates.afterPropertiesSet 方法里 Collection em = ContextHolder.getBeansOfType(EntityManager.class); 获取列表