随笔 - 30
文章 - 4
评论 - 0
阅读 -
18474
09 2022 档案
IDEA中maven项目右侧maven图标不见了
摘要:右侧maven图标没有了 解决方法:双击shift(或者点击help-->Find Action) 打开搜索功能 > 搜素Maven Project >选择Add Maven project >选择当前项目的pom.xml文件,然后点OK 就可以了,图标就有了
阅读全文
springboot项目启动报错:找不到或无法加载主类 com....
摘要:springboot项目报错 找不到或无法加载主类 com.... 1.如果是导入的别人的项目 首先要配置好JDK 和 MAVEN 然后点击右侧栏的maven图标 >点击clean(清除掉源有的配置)--》再点击install(在重下下载)
阅读全文
springboot配置类@ConfigurationProperties报错Not registered via @EnableConfigurationProperties or marked as Spring component
摘要:添加一个@Component可以解决此问题,只有这个组件是容器中的组件,才能使用容器提供的@ConfigurationProperties功能。
阅读全文
springboot启动图标banner
摘要:将springboot项目中的banner.txt文件替换成下面代码即可 ${AnsiColor.BRIGHT_YELLOW} ┏━┓ ┏━┓ ┏┛ ┻━━━━━┛ ┻┓ ┃ ┃ ┃ ━ ┃ ┃ ┳┛ ┗┳ ┃ ┃ ┃ ┃ ┻ ┃ ┃ ┃ ┗━┓ ┏━━━┛ ┃ ┃ 神兽保佑 ┃ ┃ 代码无BUG!
阅读全文