码迷,mamicode.com
首页 >  
搜索关键字:springboot配置    ( 305个结果
springboot配置之配置文件的加载顺序
springboot启动时会扫描一下位置的application.properties或者application.yml文件作为默认配置文件: file:./config/ file:./ classpath:/config/ classpath:/ 以上是按照优先级从高到低的顺序,所有位置的文件都 ...
分类:编程语言   时间:2020-02-01 14:37:12    阅读次数:111
springboot配置之Profile多环境支持
Profile是spring对不同环境提供不同配置功能的支持,可以通过激活、指定参数等方式快速切换环境。 多profile文件格式:- 格式:appilication-[profile].properties application-dev.properties、appilication-prod. ...
分类:编程语言   时间:2020-02-01 14:22:57    阅读次数:108
SpringBoot配置报错之java.lang.IllegalStateException
package com.sjl.domain; import org.springframework.boot.context.properties.ConfigurationProperties; import org.springframework.stereotype.Component; i ...
分类:编程语言   时间:2020-02-01 12:26:08    阅读次数:90
SpringBoot-04-配置文件(IEDA)
4.1 SpringBoot配置文件类型和作用 SpringBoot是基于约定的,所以很多配置都有默认值,但如果想使用自己的配置替换默认配置的话,就可以使用 application.properties或者application.yml(application.yaml)进行配置。 SpringBo ...
分类:编程语言   时间:2020-01-31 22:33:43    阅读次数:93
springboot配置之获取配置文件中属性的第二种方法(@Value)不同于@ConfigurationProperties
直接看:Person.java package com.gong.springboot.bean; import org.springframework.beans.factory.annotation.Value; import org.springframework.boot.context.p ...
分类:编程语言   时间:2020-01-31 20:49:52    阅读次数:165
springboot配置之使用application.properties时编码问题
上一节我们是在application.yml文件中进行配置,本节我们在application.properties中进行配置。 application.properties person.username=张三 person.age=12 person.email=zhangsan@qq.com p ...
分类:移动开发   时间:2020-01-31 20:28:35    阅读次数:130
springboot配置之yaml
1、yaml基本语法 使用缩进表示层次关系 缩进时不允许使用tab键,只允许使用空格 缩进的空格数目不重要,只要相同层级的元素左侧对齐即可 大小写敏感 属性和值之间也需要有空格 2、支持的三种数据结构 字面量:普通的值(数字、字符串),需要注意的是'hello \n world',用单引号括起来的不 ...
分类:编程语言   时间:2020-01-31 19:13:59    阅读次数:988
springboot 连接 mysql 时报错 using password: NO
最近使用 springboot 配置 mysql 时出现了一个错误Access denied for user ''@'localhost' (using password: YES) 或者Access denied for user ''@'localhost' (using password: ...
分类:数据库   时间:2020-01-31 01:01:46    阅读次数:478
springboot 配置devtools热部署(不用重启服务可以刷新页面)
一、加入devtools依赖 <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-devtools</artifactId> <optional>true</optional> </depe ...
分类:编程语言   时间:2020-01-30 09:25:39    阅读次数:268
致Spring Boot初学者
1、引言SpringBoot是近两年来的当红炸子鸡,来这里的每一位同学,之前应该大致上学习了web项目开发方面的知识,正在努力成长过程中。因为最近有不少人来向我“请教”,他们大都是一些刚入门的新手,对SpringBoot知识体系还不太了解,一方面听别人说SpringBoot配置简单、开发简单、部署简单,另一方面自己着手开始学习时,却发现头绪好多、有点迷茫,实在是每天回复很多人很麻烦,车轱辘话重复多
分类:编程语言   时间:2020-01-28 20:55:07    阅读次数:88
305条   上一页 1 ... 6 7 8 9 10 ... 31 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!