会员
周边
新闻
博问
闪存
众包
赞助商
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
qwer78
博客园
首页
新随笔
联系
订阅
管理
上一页
1
···
11
12
13
14
15
16
17
下一页
2018年3月26日
springboot 2.0 使用Hikari连接池(号称java平台最快的,替换druid)
摘要: 1.springboot 2.0 默认连接池就是Hikari了,所以引用parents后不用专门加依赖 2.贴我自己的配置(时间单位都是毫秒) # jdbc_config datasource spring.datasource.driver-class-name=com.mysql.jdbc.Dr
阅读全文
posted @ 2018-03-26 15:48 qwer78
阅读(91)
评论(0)
推荐(0)
2018年3月22日
springboot使用logback记录日志(1.mybatis 2.在控制台显示sql)
摘要: <?xml version="1.0" encoding="UTF-8"?> <configuration> <!-- 彩色日志 --> <!-- 彩色日志依赖的渲染类 --> <conversionRule conversionWord="clr" converterClass="org.spri
阅读全文
posted @ 2018-03-22 18:01 qwer78
阅读(110)
评论(0)
推荐(0)
2018年3月21日
springboot @value注入static对象 与 application.properties 与 pom.xml 取值
摘要: 1.在pom.xml文件里的properties定义一个参数 2.定义完了,在application.properties中获取这个值 server.port=8090 #@pom.xml中的一个参数名@ war.name= @war.name@ api.path= https://www.baid
阅读全文
posted @ 2018-03-21 17:55 qwer78
阅读(71)
评论(0)
推荐(0)
主线程等待子线程CountDownLatch springboot2.x
摘要: 防止子线程没执行结束主线程就释放了 1.配置加上 #设置线程池的线程数量 threads.number=4 2.设置一个定长线程池 package cc.datebook.config; import org.springframework.beans.factory.annotation.Valu
阅读全文
posted @ 2018-03-21 14:41 qwer78
阅读(105)
评论(0)
推荐(0)
2018年3月20日
springboot 2.0 使用redis
摘要: 由于还使用elasticsearch,所以使用jedis没有使用lettuce 1.pom引入 <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-data-redis</a
阅读全文
posted @ 2018-03-20 15:57 qwer78
阅读(30)
评论(0)
推荐(0)
2018年3月16日
springboot使用aop拦截controller干一些事导致service们@Autowired全部注入失败
摘要: springboot使用aop拦截controller干一些事导致controller里的service们@Autowired全部注入失败,报空指针 先集成使用aop吧 <dependency> <groupId>org.springframework.boot</groupId> <artifac
阅读全文
posted @ 2018-03-16 14:16 qwer78
阅读(112)
评论(0)
推荐(0)
2018年3月12日
springboot打成war并引入本地/第三方jar包
摘要: 1.新建lib目录 如图: 2.pom文件加入本地依赖(坐标随便写,注意scope) <dependency> <groupId>zmxy</groupId> <artifactId>sdk-java-source</artifactId> <version>20180208162128</vers
阅读全文
posted @ 2018-03-12 09:39 qwer78
阅读(78)
评论(0)
推荐(0)
2018年2月5日
mybatis小坑总结帖(不定时更新)
摘要: mapper.xml在使用 <if test="status != null">判断时候 如果传的Integer参数的值是0的话 会判为空!!! 所以写成 <if test="status != null and status != '' or status == 0">foreach foreac
阅读全文
posted @ 2018-02-05 14:32 qwer78
阅读(42)
评论(0)
推荐(0)
2018年1月31日
ElasticsearchTemplate的详细使用,完成多条件查询、匹配度查询等
摘要: 详情:http://blog.csdn.net/tianyaleixiaowu/article/details/77965257 @PostMapping("/searchbookinfo") public Object searchbookinfo(@RequestBody Map<String,
阅读全文
posted @ 2018-01-31 14:08 qwer78
阅读(219)
评论(0)
推荐(0)
2018年1月30日
springboot使用elasticsearch踩得坑(Windows版)
摘要: <parent> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-parent</artifactId> <version>1.5.9.RELEASE</version> <relativePat
阅读全文
posted @ 2018-01-30 11:47 qwer78
阅读(23)
评论(0)
推荐(0)
上一页
1
···
11
12
13
14
15
16
17
下一页
公告