1,idea选择创建一个maven项目 2,pom.xml <dependencies> <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-web</artifactId> ...
分类:
编程语言 时间:
2020-02-01 23:35:19
阅读次数:
104
1、引入thymeleaf 在pom.xml中写入: <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-thymeleaf</artifactId> </dependenc ...
分类:
编程语言 时间:
2020-02-01 21:41:20
阅读次数:
103
引言 不论在工作中,亦或是求职面试,Spring Boot 已经成为我们必知必会的技能项。除了比较老旧的政府项目或金融项目依旧使用如 SSM 或 SSH 做单体框架开发项目外,如今的各行各业基于项目的快速开发与发布、迭代更新,都在逐渐替换使用 Spring Boot 框架,而逐步摒弃配置沉重和效率低 ...
分类:
编程语言 时间:
2020-02-01 21:25:55
阅读次数:
92
3、Spring Boot 的自动配置原理 package com.mmall; import org.springframework.boot.SpringApplication; import org.springframework.boot.autoconfigure.SpringBootAp ...
分类:
编程语言 时间:
2020-02-01 21:25:28
阅读次数:
99
一. SpringBoot初级 (一)SpringBoot入门 SpringBoot简介 构件SpringBoot项目以及启动器讲解 SpringBoot入门HelloWorld (二)SpringBoot整合Web开发 整合Servlet 整合Filter 整合Listener 访问静态资源 文件 ...
分类:
编程语言 时间:
2020-02-01 16:45:11
阅读次数:
86
一. 使用Spring开发一个"HelloWorld"的web应用 创建一个web项目并且导入相关的jar包。SpringMVC Servlet 创建一个web.xml 编写一个控制类(Controller) 需要一个部署web应用的服务器,如tomcat 二. SpringBoot特点 Sprin ...
分类:
编程语言 时间:
2020-02-01 16:43:32
阅读次数:
118
CONDITIONS EVALUATION REPORT Positive matches: AopAutoConfiguration matched: - @ConditionalOnProperty (spring.aop.auto=true) matched (OnPropertyCondit ...
分类:
编程语言 时间:
2020-02-01 16:40:21
阅读次数:
357
一.为什么要使用jasypt库? 目前springboot单体应用项目中,甚至没有使用外部配置中心的多服务的微服务架构的项目,开发/测试/生产环境中的密码往往是明文配置在yml或properties文件中, 这样就会导致密码泄露的安全隐患,被不法人员利用从而泄露公司数据信息 因此,jasypt库能通 ...
分类:
数据库 时间:
2020-02-01 16:22:21
阅读次数:
96
1、项目架构目录 API工具类 commons-parent commons-api(api接口统一返回与统一异常处理) commons-core(业务通用工具类) commons-base(项目通用工具类) commons-test(工具类测试) API网关解决方案 theme-parent th ...
分类:
编程语言 时间:
2020-02-01 16:22:05
阅读次数:
96
RandomValuePropertySource:配置文件中可以使用随机数${random.value}、${random.int}、${random.long}、${random.int(10)}、${random.int[123,456]} 属性占位符app.name=MyAppapp.des ...
分类:
编程语言 时间:
2020-02-01 14:44:06
阅读次数:
79