摘要:
1、File-->Setting-->Compiler--> build process heap size 阅读全文
摘要:
跨域配置完成以后,又进行拦截器的配置,发现跨域配置失效,以下是原配置 @Configuration public class CORSConfig implements WebMvcConfigurer { @Bean public WebMvcConfigurer corsConfigurer() 阅读全文
摘要:
进行文件上传测试时候: org.apache.tomcat.util.http.fileupload.FileUploadBase$FileSizeLimitExceededException: The field file exceeds its maximum permitted size of 阅读全文
摘要:
// 拦截所有请求,通过判断token是否合法来决定是否需要登录 registry.addInterceptor(jwtInterceptor()). addPathPatterns("/**"). excludePathPatterns( "/api/sysUser/login", "/api/s 阅读全文
摘要:
spring 1.x 版本及以前版本 server.context-path=/test spring 2.x 版本及以后版本 server.servlet.context-path=/test 阅读全文
摘要:
一、下载插件速度慢的原因 在使用Intellij IDEA下载插件时,常常会遇到插件市场和插件详情加载失败、插件下载速度太慢导致下载失败等等。这并不是因为Jetbrains的服务器在国外,导致访问速度很慢。实际上,Jetbrains在世界各地都有下载加速服务器,不过因为电脑自动查询到的网站服务器可能 阅读全文
摘要:
1、生成GUID https://www.guidgen.com/ 生成GUID 2、服务器地址 http://idea.javatiku.cn/{GUID} 阅读全文
摘要:
1、将手机号码中间四位隐藏 select REPLACE(mobile, SUBSTR(mobile,4,4), '****') from users 2、将手机号码中间四位隐藏(推荐使用) select insert(mobile, 4, 4, '****') from users ; 参考:ht 阅读全文
摘要:
String value = ""; double numValue = Double.valueOf(value); //保留6位小数,并四舍五入 BigDecimal decimal = new BigDecimal(String.valueOf(value)).setScale(6, BigD 阅读全文
摘要:
stringObj.split([separator,[limit]]) separator: 可选项。字符串或正则表达式对象,它标识了分隔字符串时使用的是一个还是多个字符。如果忽略该选项,返回包含整个字符串的单一元素数组。 limit: 参数控制separator应用的次数,因此影响所得数组的长度 阅读全文