摘要:
git --version 查看版本 git config --list 查看配置信息 查看当前使用的remote url地址: git remote -v 从https修改成ssh: git remote set-url origin git@github.com:892847858/spring 阅读全文
摘要:
操作经过:1. 某个模块和另外一个模块循环依赖,然后将两个模块整合成一个模块2. 删除原来的模块3. 启动报错,扫描到com.item.a.bean, com.item.b.bean解决方案:因为使用过maven install 过 , 虽然模块移除了, 但是jar包还存在找到之前移除的模块的jar 阅读全文
摘要:
参考: 我是属车的:springboot2.0 如何异步操作,@Async失效,无法进入异步标了注解@Async 在同类中调用会导致不生效,eg: @Async是A类中的方法,在A类的另一个方法中调用该异步方法,该方法不生效。 阅读全文
摘要:
import com.alibaba.fastjson.JSON; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.data.redis.core.StringRedisTemplate; import org.springframework.stereotype.... 阅读全文
摘要:
数值类型: 无符号整型语法:field_name BIGINT UNSIGNED ; 在处理含小数数据的时候,可以将该数乘以相应的分为 , 仍然用整型来存储; 例如数据是有三个小数点的 2.123 仍然可以选用整数类型 , 2.123 * 1000 = 2123 这样来存储 ; 例如数据是有三个小数 阅读全文
摘要:
@Configuration public class SessionConfig implements WebMvcConfigurer{ @Override public void configureMessageConverters(List> converters) { FastJsonHttpMessageConverter fastJsonC... 阅读全文
摘要:
for循环快捷键: fori foreach选中代码 ctr + alt + t 可以快速生成包围该选中代码的代码块 idea 格式化: ctrl + alt + L快速打开实现类:选中方法 -- ctrl + alt + B 或者 Ctrl + T查看方法在哪儿被调用 ctrl + G关闭文件 s 阅读全文
摘要:
本文出自:《疯狂java讲义第3版本》第十七章 下载url文件,并不是线程越多,下载的越快,一定是有一个最佳的方案。测试经过:path为20M的MP3文件 , 用1个线程用时:13197ms;用2个线程用时8560ms;用3个线程用时:13894ms;用4个线程用时16648ms;具体还是要根据项目 阅读全文
摘要:
加一个需求:将从url读取到的.wav转换成mp3文件 //创建临时文件 File temp = File.createTempFile(filename, ".wav"); BufferedOutputStream bos = new BufferedOutputStream(new FileOu 阅读全文
摘要:
$(function(){ $.ajax({ type: 'post', url: 'aaa/bbb.do', contentType: 'application/json;charset=utf-8', data: '... 阅读全文