Skip to content

Commit

Permalink
fix: 修复不存在MyBatisPlus依赖时启动报错问题
Browse files Browse the repository at this point in the history
  • Loading branch information
houkunlin committed Aug 2, 2021
1 parent 3b4532a commit ed962e3
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -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;
Expand All @@ -12,6 +14,7 @@
*/
@AllArgsConstructor
@Configuration
@ConditionalOnClass(value = {MybatisPlusInterceptor.class})
public class MyBatisMethodResolverConfiguration implements WebMvcConfigurer {
private final IPageHandlerMethodArgumentResolver pageableHandlerMethodArgumentResolver;

Expand Down

0 comments on commit ed962e3

Please sign in to comment.