会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
高木子
专注于Java后台开发(个人公众号《后端技术开发之路》)
博客园
首页
新随笔
联系
订阅
管理
上一页
1
2
3
4
5
6
7
8
···
15
下一页
2019年9月4日
使用VirtualBox安装CentOS7
摘要: 转载自https://www.jianshu.com/p/18207167b1e7 软件准备 VirtualBox 官网 版本: 5.1.18 下载地址 CentOS 官网 版本: CentOS-7 下载地址 http://verify.iso.mirrors.ustc.edu.cn/centos/
阅读全文
posted @ 2019-09-04 17:22 高木子
阅读(14010)
评论(2)
推荐(3)
2019年8月22日
Java 工具类
摘要: 1,Spring 属性拷贝BeanUtils package gx.springboot.schedule.common.util; import org.springframework.beans.BeanUtils; import org.springframework.util.Collect
阅读全文
posted @ 2019-08-22 21:10 高木子
阅读(1967)
评论(1)
推荐(0)
2019年8月21日
SpringBoot项目使用Cors解决跨域问题
摘要: package com.chitic.supplywater.common.config; import org.springframework.context.annotation.Bean; import org.springframework.context.annotation.Config
阅读全文
posted @ 2019-08-21 17:36 高木子
阅读(2755)
评论(1)
推荐(1)
2019年7月2日
SpringBoot 线程池配置 定时任务,异步任务
摘要: package com.chitic.schedule.data.config.job; import lombok.extern.slf4j.Slf4j; import org.springframework.aop.interceptor.AsyncUncaughtExceptionHandle
阅读全文
posted @ 2019-07-02 13:44 高木子
阅读(12136)
评论(1)
推荐(0)
2019年6月28日
SpringDta JPA 保存修改引发的异常
摘要: identifier of an instance of .. altered to null jpa用的是Hibernate实现,对一条数据进行复制(新增数据)时遇到的问题 原因: 在SSH框架中,我们常常把事务放在业务逻辑层(Manager),所有业务逻辑完成后才能commit事务,这时候,如果
阅读全文
posted @ 2019-06-28 16:54 高木子
阅读(858)
评论(0)
推荐(0)
2019年6月24日
Spring 调用rest http接口的两种方式RestTemplate和WebClient
摘要: 第一种:spring的RestTemplate HttpHeaders headers = new HttpHeaders(); headers.setContentType(MediaType.APPLICATION_JSON); //header headers.set("Authorizati
阅读全文
posted @ 2019-06-24 16:49 高木子
阅读(4905)
评论(0)
推荐(0)
2019年6月11日
Springboot整合websocket实现一对一消息推送和广播消息推送
摘要: https://www.jianshu.com/p/60799f1356c5 https://blog.csdn.net/Ouyzc/article/details/79994401 maven依赖 <dependency> <groupId>org.springframework.boot</gr
阅读全文
posted @ 2019-06-11 15:20 高木子
阅读(3992)
评论(0)
推荐(0)
2019年5月22日
记录程序的重启次数
摘要: File file = new File("b.txt"); int count = 0; FileInputStream fis = null; FileOutputStream fos = null; if(!file.exists()) { try { file.createNewFile()
阅读全文
posted @ 2019-05-22 10:06 高木子
阅读(387)
评论(0)
推荐(0)
2019年5月21日
MongoDB使用总结
摘要: 个人原创,注意版权 参考文档 https://docs.spring.io/spring-data/data-mongo/docs/1.7.0.RC1/reference/html/#mongodb-connectorsSpringData MongoDB: https://docs.spring.
阅读全文
posted @ 2019-05-21 10:51 高木子
阅读(962)
评论(0)
推荐(0)
2019年5月14日
JWTToken 工具类和并发ThreadLocal的使用
摘要: <dependency> <groupId>com.auth0</groupId> <artifactId>java-jwt</artifactId> <version>3.2.0</version></dependency><dependency> <groupId>io.jsonwebtoken
阅读全文
posted @ 2019-05-14 18:34 高木子
阅读(1629)
评论(0)
推荐(0)
上一页
1
2
3
4
5
6
7
8
···
15
下一页
公告