×

spring boot

解决 No active profile set, falling back to 1 default profile: “default“问题以及如何查看spring boot版本号

aerof aerof 发表于2024-06-16 浏览10157 评论0
1. 问题 今天,在启动项目时,出现了如下错误: 即 No active profile set, falling back to 1 default profile: "default"。 这个问题不是错误,因为它的日志级别是info(log.level = info),但上文的英文是什么意思呢?翻译成中文是:未设置激活的配置文件,回退到 1 个默认配置文件:“默认”。 我们在使用多配置文件时,比如application-dev.yml,application-prd.y

spring boot

SpringBoot如何自定义启动的Banner 在线生成SpringBoot启动的Banner工具 如何使用在线生成工具生成的SpringBoot的Banner

欢乐多多 欢乐多多 发表于2024-05-22 浏览5023 评论0
1. 引言 我们在启动SpringBoot时,控制台会打印SpringBoot Logo 以及版本信息,如下图所示: 我们能否自定义这个banner呢?当然可以自定义,如下图所示: 怎么生成自定义的banner,以及如何引用生成的自定义banner呢?请继续往下读。 2. 生成自定义banner 我们可以有以下两种方式,可以生成自定义banner。 2.1 通过文件引入 在\src\main\resources\banner.txt创建banner.txt

spring boot

idea如何彻底完美地修改项目名,以及解决idea修改项目名后出现中括号[]的问题

LY LY 发表于2024-05-18 浏览6549 评论0
1. 引言 今天从github上下载一个spring security + jwt项目,解压之后的名字是2022_spring-security_jwt,如下图所示: 准备将名字2022_spring-security_jwt修改为securityJwtDemo,于是按照如下步骤修改。 2. 修改步骤 使用shift + F6快捷键显示修改项目名的弹出框,如下截图所示: 如果你的shift + F6快捷键发生了冲突,可以右击项目名 -> Refactor -&g

spring boot

解决Error starting ApplicationContext.To display the conditions report re-run your application xxx的问题

魔趣吧【wwwmoqu8com】 魔趣吧【wwwmoqu8com】 发表于2024-05-15 浏览9267 评论0
解决Error starting ApplicationContext. To display the conditions report re-run your application with 'debug' enabled.的问题。 1. 配置文件的错误 今天在项目启动类中,加上这行代码@MapperScan("com.**.mapper")后,报出了如下错误: com.superjson.superjsonmanager.SuperJsonManagerApplicati