会员
周边
新闻
博问
闪存
众包
赞助商
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
new_boys
博客园
首页
新随笔
联系
订阅
管理
上一页
1
2
3
4
5
6
下一页
2019年7月20日
Git
摘要: git --version 查看版本 git config --list 查看配置信息 查看当前使用的remote url地址: git remote -v 从https修改成ssh: git remote set-url origin git@github.com:892847858/spring
阅读全文
posted @ 2019-07-20 10:36 new_boys
阅读(106)
评论(0)
推荐(0)
2019年7月17日
idea springboot 多模块项目,将某个模块的内容迁移到其他模块,然后删除该模块,项目启动报错
摘要: 操作经过:1. 某个模块和另外一个模块循环依赖,然后将两个模块整合成一个模块2. 删除原来的模块3. 启动报错,扫描到com.item.a.bean, com.item.b.bean解决方案:因为使用过maven install 过 , 虽然模块移除了, 但是jar包还存在找到之前移除的模块的jar
阅读全文
posted @ 2019-07-17 12:11 new_boys
阅读(2039)
评论(0)
推荐(1)
springboot 异步不生效
摘要: 参考: 我是属车的:springboot2.0 如何异步操作,@Async失效,无法进入异步标了注解@Async 在同类中调用会导致不生效,eg: @Async是A类中的方法,在A类的另一个方法中调用该异步方法,该方法不生效。
阅读全文
posted @ 2019-07-17 09:55 new_boys
阅读(1557)
评论(0)
推荐(0)
2019年6月6日
springboot redisTemplate 外部反序列化
摘要: import com.alibaba.fastjson.JSON; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.data.redis.core.StringRedisTemplate; import org.springframework.stereotype....
阅读全文
posted @ 2019-06-06 16:10 new_boys
阅读(1730)
评论(0)
推荐(1)
2019年3月5日
mysql 数据类型
摘要: 数值类型: 无符号整型语法:field_name BIGINT UNSIGNED ; 在处理含小数数据的时候,可以将该数乘以相应的分为 , 仍然用整型来存储; 例如数据是有三个小数点的 2.123 仍然可以选用整数类型 , 2.123 * 1000 = 2123 这样来存储 ; 例如数据是有三个小数
阅读全文
posted @ 2019-03-05 21:19 new_boys
阅读(226)
评论(0)
推荐(0)
2019年1月22日
FastJson 配置Long转String类型 , 解决前后端交互, id过长,失去精度的问题
摘要: @Configuration public class SessionConfig implements WebMvcConfigurer{ @Override public void configureMessageConverters(List> converters) { FastJsonHttpMessageConverter fastJsonC...
阅读全文
posted @ 2019-01-22 16:28 new_boys
阅读(4298)
评论(0)
推荐(2)
2019年1月20日
idea使用技巧大全
摘要: for循环快捷键: fori foreach选中代码 ctr + alt + t 可以快速生成包围该选中代码的代码块 idea 格式化: ctrl + alt + L快速打开实现类:选中方法 -- ctrl + alt + B 或者 Ctrl + T查看方法在哪儿被调用 ctrl + G关闭文件 s
阅读全文
posted @ 2019-01-20 20:08 new_boys
阅读(391)
评论(0)
推荐(0)
多线程下载工具
摘要: 本文出自:《疯狂java讲义第3版本》第十七章 下载url文件,并不是线程越多,下载的越快,一定是有一个最佳的方案。测试经过:path为20M的MP3文件 , 用1个线程用时:13197ms;用2个线程用时8560ms;用3个线程用时:13894ms;用4个线程用时16648ms;具体还是要根据项目
阅读全文
posted @ 2019-01-20 19:18 new_boys
阅读(653)
评论(0)
推荐(0)
2019年1月15日
https url 下载
摘要: 加一个需求:将从url读取到的.wav转换成mp3文件 //创建临时文件 File temp = File.createTempFile(filename, ".wav"); BufferedOutputStream bos = new BufferedOutputStream(new FileOu
阅读全文
posted @ 2019-01-15 17:51 new_boys
阅读(1596)
评论(0)
推荐(0)
2019年1月11日
Jquery ajax请求格式
摘要: $(function(){ $.ajax({ type: 'post', url: 'aaa/bbb.do', contentType: 'application/json;charset=utf-8', data: '...
阅读全文
posted @ 2019-01-11 17:39 new_boys
阅读(1263)
评论(0)
推荐(0)
上一页
1
2
3
4
5
6
下一页
公告