1. Adding devtoolls to your project <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-devtools</artifactId> <scope>runt ...
分类:
其他好文 时间:
2021-06-20 17:42:40
阅读次数:
0
一、SpringBoot如何使用Slf4j日志 springboot是默认使用slf4j进行日志管理的,所以集成也比较方便。 1、添加依赖 (1)spring-boot-starter-web依赖,用于自动导入日志框架的依赖 <dependency> <groupId>org.springframe ...
分类:
编程语言 时间:
2021-06-19 18:54:19
阅读次数:
0
SLF4J 提供了MDC ( Mapped Diagnostic Contexts )功能 DMC简单的可以理解为,日志增强 如果项目日志比较多,项目中多线程的应用比较多,那么多个线程交叉打印日志,日志文件的内容是混乱的。 DMC可以通过AOP/Filter/Interceptor等方式,在线程中增 ...
分类:
其他好文 时间:
2021-06-18 18:52:20
阅读次数:
0
springboot的自动配置原理 1、springboot的特点 1、1 依赖管理 springboot项目中的pom文件中继承一个父项目作为依赖管理 <!--parent标签,表示是一个父项目,这个maven项目继承该项目--> <parent> <groupId>org.springframe ...
分类:
编程语言 时间:
2021-06-17 17:13:57
阅读次数:
0
第一步创建java Manve项目: 就是一个maven项目,不选别的。 pom.xml 加入下面的依赖 <?xml version="1.0" encoding="UTF-8"?> <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:x ...
分类:
其他好文 时间:
2021-06-17 16:48:59
阅读次数:
0
IDEA部署微服务,在用Maven构建项目时子模块相互依赖,使用Maven插件进行打包 ...
分类:
其他好文 时间:
2021-06-17 16:45:42
阅读次数:
0
java.lang.ClassNotFoundException ...
分类:
编程语言 时间:
2021-06-16 18:27:46
阅读次数:
0
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/XMLSchema-instance ...
分类:
数据库 时间:
2021-06-16 18:10:14
阅读次数:
0
在Maven中打包web项目为war,报错...Error assembling WAR:... 发布时间2021-6-12 在项目的pom.xml中配置项目的打包方式war,打包时报错,提示找不到WEB-INF/web.xml 可是明明有啊!经过百度查询,有人说是webroot名字不对,应该是we ...
分类:
Web程序 时间:
2021-06-13 10:34:54
阅读次数:
0
一、添加maven依赖 <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-data-redis</artifactId> </dependency> 二、applicati ...
分类:
编程语言 时间:
2021-06-11 18:20:30
阅读次数:
0