随笔 - 607,  文章 - 169,  评论 - 2,  阅读 - 21万
08 2022 档案
20220816 springboot_idea_mapStruct_转Entity 生成的ToDominObject没有用有参构造方法构造对象 自定义实现类
摘要:1 问题: 使用lombok,DDD设计思想整合mapStruct时,转Entity 生成的ToDominObject没有用有参构造方法构造对象 2 解决方案: 2.1 未解决_原因猜想 因为生成的实现类,ToPo有对应的Set方法,ToEntity没有对应的Set方法。 Po中有@Setter注解 阅读全文
posted @ 2022-08-16 07:19 菜鸟乙 阅读(203) 评论(0) 推荐(0) 编辑
20220814 idea_springboot_启动 Cannot load driver class: com.mysql.cj.jdbc.Driver
摘要:1 问题 Cannot load driver class: com.mysql.cj.jdbc.Driver 2 解决方案 2.1 已解决 2.1.1 首先,去查看项目中MySQL的版本 如果找不到,说明可能还没有jdbc驱动,需要配置或者引入 (1)如果是直接引用的jar包,就去lib文件夹中查 阅读全文
posted @ 2022-08-14 14:03 菜鸟乙 阅读(863) 评论(0) 推荐(0) 编辑
20220814 idea_SpringBoot_启动 jpa 启动 Access to DialectResolutionInfo cannot be null when 'hibernate.dialect' not set
摘要:1 问题 Access to DialectResolutionInfo cannot be null when 'hibernate.dialect' not set 2 解决方案 2.1 未解决 直接用这个问题搜索,使用了很多方法,都没有达到效果 2.2 已解决 application.prop 阅读全文
posted @ 2022-08-14 13:55 菜鸟乙 阅读(99) 评论(0) 推荐(0) 编辑
20220810 idea_springboot_start_dao
摘要:1 问题 Field XXX required a bean of type XXX that could not be found. 报错起不来项目 2 解决方案 2.1 未解决_application.java 添加MapperScan注解 未解决,因为我的查询使用jpa,不是用myBaties 阅读全文
posted @ 2022-08-10 21:40 菜鸟乙 阅读(26) 评论(0) 推荐(0) 编辑
20220810 Date_json打印格式
摘要:1 问题 接口文档规定某字段为Date类型,yyyy-MM-dd这种,因为用Json打印,日期打印格式为数字串的形式,测试提了缺陷 2 解决方案 2.1 未解决_排查Date类型 因为这个字段在数据库是Date类型,而且数据库的数据是yyyy-MM-dd这种,我进行断点排查的时候,发现Dto,Do, 阅读全文
posted @ 2022-08-10 20:21 菜鸟乙 阅读(58) 评论(0) 推荐(0) 编辑
20220810 idea_springboot_启动 No active profile set, falling back to default profiles: default
摘要:1 问题 idea启动,报 No active profile set, falling back to default profiles: default 无法启动 2 解决方案 2.1 未解决_查日志 本来以为没有报错,直接找了外援,查看了非console的idea下的日志,晦涩难懂,未解决 2 阅读全文
posted @ 2022-08-10 12:58 菜鸟乙 阅读(650) 评论(0) 推荐(0) 编辑
20220810 idea_springboot_配置
摘要:1 问题 今天,cm项目和rd项目配置对外联分别配置了一套,现在需要把cm的外联配置更换成rd的外联配置,现在更换完成后,项目起不来了 2 解决方案 2.1 未解决_重新导入 首先想到的是,是不是配置在配置平台上没有配置正确,我又重新把cm的外联配置全部删掉,重新配,检查空格等问题,确定完全正确的情 阅读全文
posted @ 2022-08-10 07:49 菜鸟乙 阅读(50) 评论(0) 推荐(0) 编辑
20220810 idea maven阿里云镜像 springboot项目启动
摘要:1 问题 从spring官网当了个springboot项目,pom.xml文件如下两行一直飘红 <artifactId>spring-boot-starter-parent</artifactId> <version>2.7.2</version> 提示报错,not found 2 解决方案: 2. 阅读全文
posted @ 2022-08-10 07:38 菜鸟乙 阅读(524) 评论(0) 推荐(0) 编辑

< 2025年2月 >
26 27 28 29 30 31 1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 1
2 3 4 5 6 7 8

点击右上角即可分享
微信分享提示