Sprong-Boot
唯有一片炙热
永远不要停下前进的脚步。
联系方式:
QQ:1534974002
邮箱:xatu_lc@163.com
展开
-
使用log4j2时log4j-slf4j-impl与slf4j-log4j12包下的StaticLoggerBinder.class冲突(二)
上一次在Springboot中使用log4j2发生包冲突于是使用此方法解决:https://blog.csdn.net/qq_40301026/article/details/107844450这次在使用Habse的API写代码时又是包冲突,想死。。。。。。但是我们要不畏艰难,冲突我就全部排掉1.先上错误提示SLF4J: Class path contains multiple SLF4J bindings.SLF4J: Found binding in [jar:file:/C:/me原创 2020-08-23 22:38:07 · 3524 阅读 · 2 评论 -
运行springboot时默认的loggback 和slf4j的依赖之间冲突
报错信息SLF4J: Class path contains multiple SLF4J bindings.SLF4J: Found binding in [jar:file:/C:/me/F/MAVEN/MyRepos/ch/qos/logback/logback-classic/1.2.3/logback-classic-1.2.3.jar!/org/slf4j/impl/StaticLoggerBinder.class]SLF4J: Found binding in [jar:file:/原创 2020-08-06 17:04:13 · 1290 阅读 · 0 评论 -
Spring Boot集成Swagger和swagger的使用
1. 引入pom <dependency> <groupId>io.springfox</groupId> <artifactId>springfox-swagger2</artifactId> <version>2.9.2</version> </dependency> <dependency> <g原创 2020-07-14 10:49:01 · 207 阅读 · 0 评论 -
Spring Boot集成Redis
123原创 2020-03-01 19:43:36 · 189 阅读 · 0 评论 -
SpringBoot学习——MD5加密(DigestUtils工具类)
在使用Spring框架的时候,我们会对一些重要的密码进行加密可以使用MD5,其工具类是DigestUtils;DigestUtils相同名字的工具类有两个:1. Spring框架继承的:import org.springframework.util.DigestUtils; String inputMD = "deqwfdeqe"; DigestUtils.md5DigestA...原创 2020-02-25 23:42:49 · 15241 阅读 · 0 评论 -
Spring Boot注解——@ConditionalOnMissingBean和@ConditionalOnBean
@ConditionalOnMissingBean和@ConditionalOnBean作用是相反的主要介绍@ConditionalOnMissingBean@Configurationpublic class RedisConfig { @Bean @ConditionalOnMissingBean(name="redisTemplate") public Redi...原创 2020-02-18 13:32:05 · 2531 阅读 · 0 评论 -
Spring Boot学习——将应用打包为jar运行
将上述应用打包为jar,在命令框执行(windows)在pom.xml中引入第三方插件 <!--利用插件,将此应用打成jar包--> <build> <plugins> <plugin> <groupId>org.springframework.boo...原创 2019-11-15 23:27:00 · 126 阅读 · 0 评论 -
Spring Boot学习——入门小程序
如何编写一个SpringBoot入门应用主要步骤:在pom.xml中引入starts创建主程序在main方法上启动具体代码/** * @SpringBootApplication :来表示一个主应用的入口 */@SpringBootApplicationpublic class HelloWorldMianApplication { public st...原创 2019-11-15 23:15:57 · 128 阅读 · 0 评论 -
SpringBoot连接数库错误ava.sql.SQLException: The server time zone value '�й���ʱ��' is unrecognized or repr
报的错误信息:ava.sql.SQLException: The servertimezonevalue'�й���ʱ��'is unrecognizedor represents more than onetimezone. You must configure either the serveror JDBC driver (via the serverTimezone c...原创 2019-08-05 23:06:26 · 3421 阅读 · 0 评论 -
SpringBoot真香
前面学习了SSM框架开发web项目,一直配一些配置文件,不是少配置了就是各个版本不同带来的各种各样的问题。经常在这些问题上忙忙碌碌,心累。反而感觉真正的业务逻辑简单了很多。 前几天有同学需要写一个项目,让我一起去写。我看到用SpringBoot框架有些推辞了,因为我不太懂。但是想想还是了解为好,花了一天上手后感觉真香,开发变得很快捷和轻松。妈呀,感觉爱了,爱...原创 2019-08-05 22:05:22 · 303 阅读 · 2 评论