![](https://img-blog.csdnimg.cn/20201014180756927.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
springboot
文章平均质量分 55
VC变成了CV
这个作者很懒,什么都没留下…
展开
-
解决maven的package打包出错的问题
父模块和子模块中,不要在父模块的pom.xml的中添加,直接在子模块(有主启动类的程序中)的pom.xml文件添加。原创 2022-09-07 18:13:40 · 323 阅读 · 0 评论 -
关于springboot@Value注入为空解决问题
检查自己的使用实体类的方式是否是通过new出来的对象,因为new的对象不是被springboot管理的,无法通过配置文件注入到实体类中赋值。如果你的实体类格式没有问题,同时你的类的字段不是静态字段的话。注入实体类,像注入service那样。原创 2022-09-02 10:44:36 · 898 阅读 · 0 评论 -
代码生成器(3.5.1+)
参考文档https://blog.csdn.net/qq_42682745/article/details/120626012需要注意的问题:1.代码生成器中,需要的功能是手动输入表的名称的话,就将参考官方的代码,我这里是我自己修改的代码(需要提前配置好数据库,在springboot的yml文件里面配置):package com.yao;import com.baomidou.mybatisplus.core.mapper.BaseMapper;import com.baomidou.myb原创 2022-04-17 17:18:57 · 779 阅读 · 0 评论 -
解决报错: Error creating bean with name ‘entityManagerFactory‘ defined in class path resource
报错:Error starting ApplicationContext. To display the conditions report re-run your application with 'debug' enabled.2022-03-31 11:00:33.421 ERROR 12468 --- [ restartedMain] o.s.boot.SpringApplication : Application run failedorg.springf...原创 2022-03-31 11:09:45 · 4722 阅读 · 0 评论 -
使用mybatis-plus和springboot报错:
springboot和mybatis使用报错没有解决方法。原创 2022-03-29 13:48:56 · 180 阅读 · 0 评论