解决方法: <build> <plugins> <plugin> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-maven-plugin</artifactId> <configuration> <mainCl ...
分类:
其他好文 时间:
2020-07-09 12:16:55
阅读次数:
57
1.简介 Thymeleaf是流行的模板引擎,Spring Boot推荐使用。语法简介,功能更加强大。 模板引擎:JSP、FreeMarker、Velocity、Thymeleaf 2.pom.xml中导入依赖 <dependency> <groupId>org.springframework.bo ...
分类:
编程语言 时间:
2020-07-09 01:00:08
阅读次数:
87
4.1.8.springboot特性之Actuator【上】 时长:23min 4.3.Actuator是干啥的? 它也是以starter组件方式,进行引入的。 <dependency> <groupId>org.springframework.boot</groupId> <artifactId> ...
分类:
编程语言 时间:
2020-07-08 19:56:49
阅读次数:
53
1、增加devtools依赖 <!-- 热部署DevTools --> <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-devtools</artifactId></dependency ...
分类:
其他好文 时间:
2020-07-08 01:23:07
阅读次数:
65
1.pom.xml文件中引入热部署依赖 <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-devtools</artifactId> <scope>runtime</scope> </de ...
分类:
编程语言 时间:
2020-07-08 01:14:20
阅读次数:
137
[26.5. 自定义日志配置通过将相应的库添加到classpath可以激活各种日志系统,然后在classpath根目录下提供合适的配置文件可以进一步定制日志系统,配置文件也可以通过SpringEnvironment的logging.config属性指定。使用org.springframework.b... ...
分类:
编程语言 时间:
2020-07-07 22:12:11
阅读次数:
77
SpringBoot与数据访问 1、JDBC <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-jdbc</artifactId> </dependency> <depen ...
分类:
数据库 时间:
2020-07-07 20:06:37
阅读次数:
166
package org.springframework.security.oauth2.common.util; import java.security.SecureRandom; import java.util.Random; /** * Utility that generates a ra ...
分类:
其他好文 时间:
2020-07-07 19:53:13
阅读次数:
46
1、常用注解 2、邮件功能 //依赖引入 <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-mail</artifactId> </dependency> //邮件配置:a ...
分类:
编程语言 时间:
2020-07-05 21:35:19
阅读次数:
78
1.引入依赖 <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-websocket</artifactId> </dependency> 2.在前端页面编写WebSocke ...
分类:
Web程序 时间:
2020-07-05 17:06:59
阅读次数:
92