| | |
| | | package com.ruoyi.web.controller.interceptor; |
| | | |
| | | import org.springframework.context.annotation.Bean; |
| | | import org.springframework.context.annotation.Configuration; |
| | | |
| | | @Configuration |
| | | public class MybatisConfiguration { |
| | | |
| | | /** |
| | | * 注册拦截器 |
| | | */ |
| | | @Bean |
| | | public MybatisInterceptor getMybatisInterceptor() { |
| | | return new MybatisInterceptor(); |
| | | } |
| | | |
| | | } |
| | | //package com.ruoyi.web.controller.interceptor; |
| | | // |
| | | //import org.springframework.context.annotation.Bean; |
| | | //import org.springframework.context.annotation.Configuration; |
| | | // |
| | | //@Configuration |
| | | //public class MybatisConfiguration { |
| | | // |
| | | // /** |
| | | // * 注册拦截器 |
| | | // */ |
| | | // @Bean |
| | | // public MybatisInterceptor getMybatisInterceptor() { |
| | | // return new MybatisInterceptor(); |
| | | // } |
| | | // |
| | | //} |