随笔分类 -  SpringBoot

摘要:报错: RROR oro.hiberate.enoineidcsvi salexceptionhelner Connection is read-only,Cueries leading to data modification are not allowed org.springframework 阅读全文
posted @ 2023-12-19 08:53 阿灿呀 阅读(179) 评论(0) 推荐(0) 编辑
摘要:springboot自动配置原理加载主流程 @SpringBootApplication @Target(ElementType.TYPE) //注解可以标在哪里 @Retention(RetentionPolicy.RUNTIME) // 注解的有效范围 @Documented // 生成doc 阅读全文
posted @ 2021-04-19 00:34 阿灿呀 阅读(138) 评论(0) 推荐(0) 编辑
摘要:类型顺序 优先级 低到高 形成互补 <include>**/application*.yml</include> 1 <include>**/application*.yaml</include> 2 <include>**/application*.properties</include> 3 位 阅读全文
posted @ 2021-04-17 11:18 阿灿呀 阅读(106) 评论(0) 推荐(0) 编辑
摘要:springboot的配置文件不支持SPEL表达式 springboot的配置文件支持占位符和随机数 #占位符 user.username=黄汉山 user.hobbies=${user.username}打篮球 #随机数 my.secret=${random.value} my.number=${ 阅读全文
posted @ 2021-04-17 11:17 阿灿呀 阅读(446) 评论(0) 推荐(0) 编辑
摘要:@ConfigurationProperties(prefix = "user") 支持jsr-303数据检验 添加注解@Validated <!--jsr-303数据检验依赖--> <dependency> <groupId>org.springframework.boot</groupId> < 阅读全文
posted @ 2021-04-17 11:15 阿灿呀 阅读(282) 评论(0) 推荐(0) 编辑
摘要:Springboot Springboot是基于spring开发的,不仅继承了spring框架原有的优秀特性,而且进一步的简化了spring应用的整个搭建和开发过程. 约定大于配置 集成了大量的第三方框架,开箱即用 J2EE开发的一站式解决方案 SpringCloud带动了SpringBoot,Sp 阅读全文
posted @ 2021-04-08 01:36 阿灿呀 阅读(83) 评论(0) 推荐(0) 编辑

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