11 2021 档案

摘要:mybatis逆向工具 1、resource文件夹下建一个generatorConfig.xml配置文件,配置文件的路径应该与结构树建立对应包名一致。 <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE generatorConfiguration PU 阅读全文
posted @ 2021-11-19 09:25 春霞紫梦 阅读(83) 评论(0) 推荐(0)
摘要:1、事务传播-Propagation /*例如:Propagation.REQUERED* 属性:REQUIRED* SUPPORTS* MANDATORY* REQUIRES_NEW* NOT_SUPPORTED* NEVER* NESTED* */属性: REQUIRED:使用当前的事务,如果没 阅读全文
posted @ 2021-11-18 11:11 春霞紫梦 阅读(438) 评论(0) 推荐(0)
摘要:启动报未找到相关的实体类错误 Description: Field usersMapper in com.imooc.impl.UserServiceImpl required a bean of type 'com.imooc.mapper.UsersMapper' that could not 阅读全文
posted @ 2021-11-18 10:43 春霞紫梦 阅读(651) 评论(0) 推荐(0)
摘要:@Autowired自动注入,启动没有报错但是出现红色波浪线不一定是代码错误,也有可能是idea工具设置的原因 只需要修改idea设置不提醒即可 阅读全文
posted @ 2021-11-18 10:33 春霞紫梦 阅读(484) 评论(0) 推荐(0)
摘要:1、注解@Slf4j 需要在开发工具安装lombok插件以及在pom.xml引入依赖 <dependency> <groupId>org.projectlombok</groupId> <artifactId>lombok</artifactId></dependency>2、在使用的类里创建Log 阅读全文
posted @ 2021-11-09 11:16 春霞紫梦 阅读(324) 评论(0) 推荐(0)
摘要:2注意两点: 1、映射的路径别写错; 2、xml文件名和映射的接口名对应上; 两外还要在pom文件配置 <resources> <resource> <directory>src/main/java</directory> <includes> <include>**/*.xml</include> 阅读全文
posted @ 2021-11-09 08:59 春霞紫梦 阅读(61) 评论(0) 推荐(0)