
springboot
springboot
sunhuwh
求学阶段
展开
-
springboot mqtt推送消息
整个推送可参考:https://blog.youkuaiyun.com/qq_41018959/article/details/80592444唯一需要注意的是,pom.xml中加上<dependency> <groupId>org.eclipse.paho</groupId> <artifactId>org.eclipse.paho.client.mq...原创 2019-12-27 13:39:19 · 520 阅读 · 0 评论 -
druid总是造成死机
com.alibaba.druid.pool.GetConnectionTimeoutException:loopWaitCount 0, wait millis 60000,active 100原因是以为没有加回收机制,后者最大连接数超出导致的解决方法:加上回收配置:#druid recycledruid.removeAbandoned=truedruid.removeAban...原创 2019-12-24 10:50:56 · 1942 阅读 · 0 评论 -
springboot启动类配置
pom.xml:<properties> <start-class>com.shw.netdisk.application.Application</start-class> </properties>原创 2017-02-15 17:50:52 · 2531 阅读 · 0 评论 -
spring boot配置文件application.properties
# ===================================================================# COMMON SPRING BOOT PROPERTIES## This sample file is provided as a guideline. Do NOT copy it in its# entirety to your own appli转载 2017-03-31 16:25:27 · 538 阅读 · 0 评论 -
spring boot自动建表
参考spring boot官网上的jpa例子:https://github.com/roncoo/spring-boot-demo。 在application.properties中加入:##--------JPA-------------spring.jpa.properties.hibernate.hbm2ddl.auto=update原创 2017-03-31 16:37:58 · 3905 阅读 · 0 评论 -
RestTemplate getForObject方法不能将获取到的数据设置到对象中
解决方案: https://stackoverflow.com/questions/23674046/get-list-of-json-objects-with-spring-resttemplate原创 2017-06-06 12:09:54 · 14921 阅读 · 0 评论 -
SpringBoot+MyBatis+Oracle+多数据源
github上有项目: https://github.com/sunhuwh/springboot-mybatis-oracle-multi 参考文章: http://www.cnblogs.com/ityouknow/p/6102399.html http://www.cnblogs.com/winner-0715/p/6687247.html https://github.com/he原创 2017-10-26 00:27:19 · 6707 阅读 · 3 评论 -
redis
redis作为缓存解决方案,键值对,值可为字符串,数字,集合等等数据 也可查询地理数据,非常的方便。Spring Boot集成了redis,使用上也很方便,我参考DD的文章(http://blog.didispace.com/springbootredis/),写了个demo,代码相似,不过,application.properties的timeout属性上改为了5000才测试通过(原因还未...原创 2018-03-21 23:04:51 · 297 阅读 · 0 评论