随笔分类 - Java SpringBoot
摘要:https://www.thymeleaf.org/ 引入 <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-thymeleaf</artifactId> </depend
阅读全文
摘要:1.webjars https://www.webjars.org/ 复制到pom.xml <dependency> <groupId>org.webjars</groupId> <artifactId>jquery</artifactId> <version>3.5.1</version> </d
阅读全文
摘要:1. <dependencies> <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-jdbc</artifactId> </dependency> <dependency
阅读全文
摘要:1.场景启动器 https://docs.spring.io/spring-boot/docs/2.3.1.RELEASE/reference/html/using-spring-boot.html#using-boot-configuration-classes 1.5节 2.自动配置 3.快速创
阅读全文
摘要:maven 1 2 3导入依赖 pom.xml <?xml version="1.0" encoding="UTF-8"?> <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XM
阅读全文
摘要:默认使用slf4j抽象层和logback日志 <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-logging</artifactId> </dependency> Log
阅读全文
摘要:一、SpringBoot全局配置文件 SpringBoot两个全局配置文件,application.properties和application.yml 例如端口号配置 (1)application.properties文件 (2)application.yml文件格式 二、yaml文件格式语法 1
阅读全文