摘要: spring boot多环境配置及文件位置 spring boot 配置文件(application.yaml / xml)优先级:官方文档 file:./config/ - 优先级最高(项目根路径下的config) file:./ - 优先级第二 -(项目根路径下) classpath:/conf 阅读全文
posted @ 2020-10-20 00:07 LastFairy 阅读(75) 评论(0) 推荐(0) 编辑
摘要: spring boot多环境配置 spring boot 配置文件(application.yaml / xml)优先级:官方文档 file:./config/ - 优先级最高(项目根路径下的config) file:./ - 优先级第二 -(项目根路径下) classpath:/config/ - 阅读全文
posted @ 2020-10-19 23:21 LastFairy 阅读(449) 评论(0) 推荐(0) 编辑
摘要: 使用前导入依赖 >(保证数据的安全和正确) <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-validation</artifactId> </dependency> @ 阅读全文
posted @ 2020-10-18 14:36 LastFairy 阅读(76) 评论(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 阅读(639) 评论(0) 推荐(0) 编辑
摘要: SpringApplication 推断应用的类型是普通的项目还是web项目 @SpringBootApplication,启动入口,可以自建一个类标注注解作为spring boot主启动 关于spring boot:自动装配,run() run() SpringApplication实例初始化: 阅读全文
posted @ 2020-10-18 13:21 LastFairy 阅读(183) 评论(0) 推荐(0) 编辑
摘要: spring boot的基本配置介绍 pom.xml spring-boot-dependencies:核心依赖在父工程中! 引入spring-boot,不需要指定版本,存在版本仓库 spring-boot的启动器 <dependency> <groupId>org.springframework. 阅读全文
posted @ 2020-10-18 12:07 LastFairy 阅读(83) 评论(0) 推荐(0) 编辑
摘要: <?xml version="1.0" encoding="UTF-8"?><project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:sch 阅读全文
posted @ 2020-10-17 23:18 LastFairy 阅读(285) 评论(0) 推荐(0) 编辑
摘要: 概念:前端代码后端代码分开写 非前后端分离会发生的问题 传统web,前端由jsp开发,jsp非后端开发独立完成 前端-->html静态页面-->后端-->jsp(后端可能看不懂前端) 前端只需要独立编写客户端代码,后端只需要独立编写服务器代码提供数据接口即可。 前端通过Ajax请求来访问后端的数据接 阅读全文
posted @ 2020-10-17 22:21 LastFairy 阅读(203) 评论(0) 推荐(0) 编辑
摘要: 今天在使用slidedown和slideUp时意外发现不能出现动画,开始一直以为script中代码出现了问题,一直都没发现错误后来才发现如下 当你的下方存在定义了大小元素时,你添加动画的元素也添加了大小,下方的元素会阻止你的动画,slideUp则相反所有。问题就在这里了,真是让我搞了十几分钟!!! 阅读全文
posted @ 2020-09-17 17:23 LastFairy 阅读(654) 评论(0) 推荐(0) 编辑