摘要: 使用前导入依赖 >(保证数据的安全和正确) <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-validation</artifactId> </dependency> @ 阅读全文
posted @ 2020-10-18 14:36 LastFairy 阅读(90) 评论(0) 推荐(0)
摘要: 配置文件:修改spring boot默认配置信息 yaml概念: YAML 是 "YAML Ain't a Markup Language"(YAML 不是一种标记语言)的递归缩写。在开发的这种语言时,YAML 的意思其实是:"Yet Another Markup Language"(仍是一种标记语 阅读全文
posted @ 2020-10-18 13:59 LastFairy 阅读(650) 评论(0) 推荐(0)
摘要: SpringApplication 推断应用的类型是普通的项目还是web项目 @SpringBootApplication,启动入口,可以自建一个类标注注解作为spring boot主启动 关于spring boot:自动装配,run() run() SpringApplication实例初始化: 阅读全文
posted @ 2020-10-18 13:21 LastFairy 阅读(204) 评论(0) 推荐(0)
摘要: spring boot的基本配置介绍 pom.xml spring-boot-dependencies:核心依赖在父工程中! 引入spring-boot,不需要指定版本,存在版本仓库 spring-boot的启动器 <dependency> <groupId>org.springframework. 阅读全文
posted @ 2020-10-18 12:07 LastFairy 阅读(89) 评论(0) 推荐(0)