摘要:
springboot方式: @Configuration @EnableTransactionManagement @MapperScan("com.xl.baomidouTest.mapper") public class MybatisPlusConfig { @Bean public Pagi 阅读全文
posted @ 2020-07-05 21:03
樱花树下的蓝天
阅读(661)
评论(0)
推荐(0)
摘要:
一、基本操作 1.新建UserMapper 文件 public interface UserMapper extends BaseMapper<User> { } 2.新建实体对象User @Data public class User { private Long id; private Stri 阅读全文
posted @ 2020-07-05 20:28
樱花树下的蓝天
阅读(6304)
评论(0)
推荐(0)
摘要:
一、基本操作 1.新建UserService接口文件继承MP提供的IService<T>接口。 public interface UserService extends IService<User> { } 2.新建UserMapper接口 public interface UserMapper e 阅读全文
posted @ 2020-07-05 19:51
樱花树下的蓝天
阅读(1141)
评论(0)
推荐(0)
浙公网安备 33010602011771号