Commit d241eed1 authored by 井熙铎's avatar 井熙铎

修复hibernate与baomidou冲突

parent f40c2dc7
package me.zhengjie.mapper;
package me.zhengjie.MybatisMapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
......
package me.zhengjie.serviceimpl;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import me.zhengjie.mapper.IndexMapper;
import me.zhengjie.MybatisMapper.IndexMapper;
import me.zhengjie.service.IndexService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
......
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="me.zhengjie.mapper.IndexMapper">
<mapper namespace="me.zhengjie.MybatisMapper.IndexMapper">
<!-- 领导-贷款逾期-->
<select id="selectDemo" resultType="java.util.Map">
......
......@@ -45,7 +45,7 @@ import org.springframework.web.servlet.config.annotation.WebMvcConfigurer;
@EnableTransactionManagement
@EnableJpaAuditing(auditorAwareRef = "auditorAware")
@ComponentScan(basePackages={"me.zhengjie.*"})
@MapperScan(basePackages = "me.zhengjie.mapper")
@MapperScan(basePackages = "me.zhengjie.MybatisMapper")
public class AppRun {
public static void main(String[] args) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment