From ed962e3cc08cc569406803975b7b34cff14c3305 Mon Sep 17 00:00:00 2001 From: HouKunLin Date: Mon, 2 Aug 2021 20:35:40 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=E4=B8=8D=E5=AD=98?= =?UTF-8?q?=E5=9C=A8MyBatisPlus=E4=BE=9D=E8=B5=96=E6=97=B6=E5=90=AF?= =?UTF-8?q?=E5=8A=A8=E6=8A=A5=E9=94=99=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../extend/mybatisplus/MyBatisMethodResolverConfiguration.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/main/java/com/houkunlin/dao/extend/mybatisplus/MyBatisMethodResolverConfiguration.java b/src/main/java/com/houkunlin/dao/extend/mybatisplus/MyBatisMethodResolverConfiguration.java index cdac4e1..87be1a1 100644 --- a/src/main/java/com/houkunlin/dao/extend/mybatisplus/MyBatisMethodResolverConfiguration.java +++ b/src/main/java/com/houkunlin/dao/extend/mybatisplus/MyBatisMethodResolverConfiguration.java @@ -1,6 +1,8 @@ package com.houkunlin.dao.extend.mybatisplus; +import com.baomidou.mybatisplus.extension.plugins.MybatisPlusInterceptor; import lombok.AllArgsConstructor; +import org.springframework.boot.autoconfigure.condition.ConditionalOnClass; import org.springframework.context.annotation.Configuration; import org.springframework.web.method.support.HandlerMethodArgumentResolver; import org.springframework.web.servlet.config.annotation.WebMvcConfigurer; @@ -12,6 +14,7 @@ */ @AllArgsConstructor @Configuration +@ConditionalOnClass(value = {MybatisPlusInterceptor.class}) public class MyBatisMethodResolverConfiguration implements WebMvcConfigurer { private final IPageHandlerMethodArgumentResolver pageableHandlerMethodArgumentResolver;