摘要:
1.$ref $ref用于数据之间的传递,如果ref用在子组件上能通过$ref获取到子组件节点、事件、数据、属性,主要还是父组件向子组件通信 $ref 着重于索引,主要用来调用子组件里的属性和方法,其实并不擅长数据传递。而且ref用在dom元素的时候,能使到选择器的作用,这个功能比作为索引更常有用到 阅读全文
摘要:
1.Scanner try(Scanner scanner = new Scanner(new FileReader(fileName))) { while (scanner.hasNextLine()) { String line = scanner.nextLine(); System.out. 阅读全文
摘要:
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 阅读全文