修改切面代理配置
This commit is contained in:
@ -13,8 +13,9 @@ import org.springframework.context.annotation.EnableAspectJAutoProxy;
|
|||||||
* @author xzzn
|
* @author xzzn
|
||||||
*/
|
*/
|
||||||
@Configuration
|
@Configuration
|
||||||
// 表示通过aop框架暴露该代理对象,AopContext能够访问
|
// proxyTargetClass = true表示使用cglib代理,false表示jdk动态代理
|
||||||
@EnableAspectJAutoProxy(exposeProxy = true)
|
// exposeProxy = true表示通过aop框架暴露该代理对象,AopContext能够访问
|
||||||
|
@EnableAspectJAutoProxy(proxyTargetClass = true, exposeProxy = true)
|
||||||
// 指定要扫描的Mapper类的包的路径
|
// 指定要扫描的Mapper类的包的路径
|
||||||
@MapperScan("com.xzzn.**.mapper")
|
@MapperScan("com.xzzn.**.mapper")
|
||||||
public class ApplicationConfig
|
public class ApplicationConfig
|
||||||
|
|||||||
Reference in New Issue
Block a user