
springboot
kevinWang2016
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
pring Boot与banner
springboot项目启动时,控制台会打印自带的banner,自定义的话,只需要在src/main/resources路径下新建一个banner.jpg、banner.png、banner.gif、banner.txt文件,banner.txt中填写好需要打印的字符串内容即可。Banner生成工具http://www.network-science.de/ascii/http://www...原创 2020-01-18 13:52:47 · 298 阅读 · 0 评论 -
2.Spring Boot配置
全局配置文件-Spring Boot使用一个全局的配置文件;application.propertiesapplication.yml-配置文件放在src/main/resources目录或者类路径/config下;-全局配置文件的作用是可以对一些默认配置值进行修改;配置文件的优先级application.properties和application.yml文件可以放在以下四个位...原创 2020-01-17 21:16:16 · 186 阅读 · 0 评论 -
1、SpringBoot入门-helloWorld
1、SpringBoot入门-helloWorld什么是 Spring Boot快速入门Maven 构建项目Idea 构建项目引入 web 模块参考:http://www.ityouknow.com/spring-boot.html这两天在做一个springBoot的单元测试,发现不会写了spingBoot-test的注解,尴尬了,决定把springBoot的东西梳理记录下什么是 Sprin...原创 2020-01-03 23:07:36 · 270 阅读 · 0 评论 -
gradle排除引入jar包中的依赖
想去掉org.springframework.boot:spring-boot-starter-web 中对tomcat的依赖,项目中使用的是gradle,百度了一波发现没有几乎没有自己想要的内容,这里做一下记录implementation("org.springframework.boot:spring-boot-starter-web") { exclude group: 'org....原创 2019-05-24 10:35:59 · 11373 阅读 · 0 评论 -
ClassNotFoundException: org.apache.curator.framewor
springboot 2.1.1整合dubbo 2.7.1和zookeeper 3.4.13 出现的问题原因:zookeeper客户端jar报问题之前只引入了: <dependency> <groupId>org.apache.zookeeper</groupId> <artifactId>zookeepe...原创 2019-05-17 14:50:09 · 2406 阅读 · 0 评论 -
关于RedisTemplate和StringRedisTemplate
转载地址:http://blog.youkuaiyun.com/notsaltedfish/article/details/75948281最近在开始在学习Redis以及如何在Java当中去使用Redis,Redis是什么我这里就不说了。我主要想说的是Redis和Java当中Spring结合起来的时候,使用到的RedisTemplate和StringRedisTemplate他们两者之间的区别,以及...转载 2018-03-14 15:22:56 · 601 阅读 · 0 评论 -
关于springboot2.0.0配置多数据源出现jdbcUrl is required with driverClassName的错误
来自:https://blog.youkuaiyun.com/newhanzhe/article/details/80763581转载 2018-12-12 09:37:31 · 406 阅读 · 0 评论 -
SpringCloud 创建 ConfigurableEnvironment Bean异常
来自:https://blog.youkuaiyun.com/annotation_yang/article/details/82877433转载 2018-12-12 17:16:20 · 596 阅读 · 0 评论 -
springboot2.0.6读取之定义配置文件中文乱码
转载:http://www.cnblogs.com/tulpen/p/9803116.html转载 2018-11-14 22:11:28 · 586 阅读 · 0 评论 -
spring-boot-devtools在Idea中热部署方法
转载地址:http://www.cnblogs.com/sprinkle/p/7058630.html pom.xml文件注:热部署功能spring-boot-1.3开始有的<!--添加依赖--><dependency> <groupId>org.springframework.boot</groupId> <a...转载 2018-03-21 17:39:05 · 483 阅读 · 0 评论 -
com.fasterxml.jackson.databind.JsonMappingException: Can not deserialize out of START_ARRAY token
转载:http://blog.youkuaiyun.com/hikeboy/article/details/71436870 造成该异常的原因:http的服务端对某个客户端不需要的属性加了transient关键字: priv...转载 2018-03-14 16:27:32 · 2053 阅读 · 0 评论 -
Intellij安装lombok插件,解决注解@Slf4j注入后找不到变量log
参考文献 http://www.bubuko.com/infodetail-2121120.htmlIDEA要安装lombok的插件!!!转载 2018-01-31 17:39:45 · 1641 阅读 · 1 评论 -
springboot注解读取yml文件
代码位置: application.yml文件内容:test read ymlfilefruit: name: apple amount: 5自定义的属性和值myProps: simpleProp: simplePropValue arrayProps: 1,2,3,4,5 listProp1: - name: abc value: a原创 2016-12-21 22:42:21 · 11852 阅读 · 0 评论 -
使用IDEA+GRADLE创建springboot项目
首先确定已经安装过IDE和gradle; 创建项目原创 2016-12-21 17:19:57 · 732 阅读 · 0 评论