添加SPI
This commit is contained in:
parent
f52623c8a7
commit
bbd5457f85
@ -1,8 +1,13 @@
|
||||
package cn.axzo.pokonyan.config;
|
||||
|
||||
import org.springframework.context.annotation.ComponentScan;
|
||||
import org.springframework.context.annotation.Configuration;
|
||||
|
||||
/**
|
||||
* @author tanjie@axzo.cn
|
||||
* @date 2023/7/7 17:17
|
||||
*/
|
||||
@Configuration
|
||||
@ComponentScan("cn.axzo.pokonyan")
|
||||
public class GlobalConfig {
|
||||
}
|
||||
|
||||
@ -11,10 +11,16 @@ import org.springframework.context.annotation.Configuration;
|
||||
@ConditionalOnClass(MybatisPlusInterceptor.class)
|
||||
public class MybatisPlusConfig {
|
||||
|
||||
/**
|
||||
* 分页插件
|
||||
* @return
|
||||
*/
|
||||
@Bean
|
||||
public MybatisPlusInterceptor mybatisPlusInterceptor() {
|
||||
MybatisPlusInterceptor interceptor = new MybatisPlusInterceptor();
|
||||
interceptor.addInnerInterceptor(new PaginationInnerInterceptor());
|
||||
return interceptor;
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
@ -18,7 +18,7 @@ import java.io.IOException;
|
||||
import java.util.Map;
|
||||
|
||||
/**
|
||||
* 打印一些入参
|
||||
* 简单的打印一些入参
|
||||
*
|
||||
* @author tanjie@axzo.cn
|
||||
* @date 2021/12/13 11:13
|
||||
|
||||
2
src/main/resources/META-INF/spring.factories
Normal file
2
src/main/resources/META-INF/spring.factories
Normal file
@ -0,0 +1,2 @@
|
||||
org.springframework.boot.autoconfigure.EnableAutoConfiguration=\
|
||||
cn.axzo.pokonyan.config.GlobalConfig
|
||||
Loading…
Reference in New Issue
Block a user