| | |
| | | //package org.springblade.common.config; |
| | | // |
| | | //import com.baomidou.mybatisplus.autoconfigure.ConfigurationCustomizer; |
| | | //import org.springblade.common.interceptor.DataSyncInterceptor; |
| | | //import org.springframework.context.annotation.Bean; |
| | | //import org.springframework.context.annotation.Configuration; |
| | | // |
| | | //@Configuration |
| | | //public class MyBatisPlusConfig { |
| | | // |
| | | // @Bean |
| | | // public ConfigurationCustomizer configurationCustomizer() { |
| | | // return configuration -> configuration.addInterceptor(new DataSyncInterceptor()); |
| | | // } |
| | | //} |
| | | package org.springblade.common.config; |
| | | |
| | | import com.baomidou.mybatisplus.autoconfigure.ConfigurationCustomizer; |
| | | import org.springblade.common.interceptor.DataSyncInterceptor; |
| | | import org.springframework.context.annotation.Bean; |
| | | import org.springframework.context.annotation.Configuration; |
| | | |
| | | @Configuration |
| | | public class MyBatisPlusConfig { |
| | | |
| | | @Bean |
| | | public DataSyncInterceptor dataSyncInterceptor() { |
| | | return new DataSyncInterceptor(); |
| | | } |
| | | } |