上一页 1 ··· 14 15 16 17 18 19 20 21 22 ··· 24 下一页
摘要: @ConfigurationProperties(prefix = "person") @ConfigurationProperties是从全局配置文件(application.xml 或者application.yml)中取配置 分割线 @PropertySource从指定的配置文件中读取 最简易 阅读全文
posted @ 2020-10-08 21:39 圣金巫灵 阅读(565) 评论(0) 推荐(0) 编辑
摘要: 使用@Value一个个字段给值 @Component public class Man { @Value("${person.lastName}") private String lastName; @Value("12") private Integer age; @Value("false") 阅读全文
posted @ 2020-10-08 13:53 圣金巫灵 阅读(157) 评论(0) 推荐(0) 编辑
摘要: sprintboot有全局的配置文件,名字是固定的 application.properties application.yml yml语法: k:(空格)v 表示一对键值对 以空格的缩进来控制层级关系, 只要左对齐的一列数据,都是同一个层级的 字面量: 数字,字符串,布尔 server: port 阅读全文
posted @ 2020-10-08 13:46 圣金巫灵 阅读(280) 评论(0) 推荐(0) 编辑
摘要: 是因为这只是一个普通的文件夹 把它变成源码文件夹就行 file->project structure->module 按顺序这样点,然后apply 然后就能看到new Java Class了。 阅读全文
posted @ 2020-10-07 21:30 圣金巫灵 阅读(276) 评论(0) 推荐(0) 编辑
摘要: linux 镜像文件iso下载地址: 去官网 步骤: 选一个镜像,清华或者阿里云 选DVD-iso 复制下载链接到迅雷下载即可 阅读全文
posted @ 2020-09-30 13:55 圣金巫灵 阅读(109) 评论(0) 推荐(0) 编辑
摘要: bat命令大全: https://blog.csdn.net/huwei2003/article/details/66968001 spring: https://blog.csdn.net/linuu/article/details/50977614/ oracle表: https://www.c 阅读全文
posted @ 2020-09-30 12:31 圣金巫灵 阅读(101) 评论(0) 推荐(0) 编辑
摘要: 文档摘要: Why Contract First? When creating Web services, there are two development styles: Contract Last and Contract First. When using a contract-last a 阅读全文
posted @ 2020-05-08 16:51 圣金巫灵 阅读(241) 评论(0) 推荐(0) 编辑
摘要: 使用SpringInitializr创建springboot工程 使用web组件 如果启动不了就maven reimport一下 点进去看@RestController会看到是它们的组合 阅读全文
posted @ 2020-04-05 00:06 圣金巫灵 阅读(140) 评论(0) 推荐(0) 编辑
摘要: @SpringBootApplication 点进这个注解看 进去第一个注解@SpringBootConfiguration看,上面有Configuration注解 @Configuration 这是Spring的配置类注解, 说明这个类一个配置类,里面都是配置文件 进第二个注解@EnableAut 阅读全文
posted @ 2020-04-04 22:29 圣金巫灵 阅读(196) 评论(0) 推荐(0) 编辑
摘要: <parent> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-parent</artifactId> <version>2.2.6.RELEASE</version> </parent> 1. 阅读全文
posted @ 2020-04-04 21:28 圣金巫灵 阅读(150) 评论(0) 推荐(0) 编辑
上一页 1 ··· 14 15 16 17 18 19 20 21 22 ··· 24 下一页