mirror of
https://gitee.com/best_handsome/mybatis-plus-join
synced 2025-07-11 00:02:22 +08:00
兼容springboot 1.5.22
This commit is contained in:
parent
1af431641f
commit
8f51f86182
@ -31,13 +31,9 @@ public class InterceptorConfig implements ApplicationListener<ApplicationReadyEv
|
|||||||
@Override
|
@Override
|
||||||
@SuppressWarnings("unchecked")
|
@SuppressWarnings("unchecked")
|
||||||
public void onApplicationEvent(ApplicationReadyEvent event) {
|
public void onApplicationEvent(ApplicationReadyEvent event) {
|
||||||
System.out.println("werwerewqrweqtwtrwqt\n\newqwerw\n\n");
|
|
||||||
if (CollectionUtils.isNotEmpty(sqlSessionFactoryList)) {
|
if (CollectionUtils.isNotEmpty(sqlSessionFactoryList)) {
|
||||||
try {
|
try {
|
||||||
for (SqlSessionFactory factory : sqlSessionFactoryList) {
|
for (SqlSessionFactory factory : sqlSessionFactoryList) {
|
||||||
System.out.println("WWwwwwwwwwwwwwwwwwwwww");
|
|
||||||
System.out.println("\n\n\n\n\n");
|
|
||||||
System.out.println("wwwwwwwwwwwwwwwwwwwwwwwwwwwww");
|
|
||||||
Field interceptorChain = Configuration.class.getDeclaredField("interceptorChain");
|
Field interceptorChain = Configuration.class.getDeclaredField("interceptorChain");
|
||||||
interceptorChain.setAccessible(true);
|
interceptorChain.setAccessible(true);
|
||||||
InterceptorChain chain = (InterceptorChain) interceptorChain.get(factory.getConfiguration());
|
InterceptorChain chain = (InterceptorChain) interceptorChain.get(factory.getConfiguration());
|
||||||
|
Loading…
x
Reference in New Issue
Block a user