![](https://img-blog.csdnimg.cn/20201014180756925.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
备忘录
weixin_42475411
这个作者很懒,什么都没留下…
展开
-
Vue eCharts Cannot read property ‘init‘ of undefined 报错问题
vue项目中出现了这个问题,在网上看到了大佬@vologovologo的博客_CSDN博客-前端工具,课时领域博主 https://blog.csdn.net/vologo的解答,记录一下5.0的报这个错,是引入方式不对。import * as echarts from ‘echarts’;...原创 2021-05-19 16:35:21 · 138 阅读 · 0 评论 -
Integer和int以及==和equals的问题总结
最近老是在==和equals上出问题,看了一点资料,==在运算时比较的是内存的地址,对于类来说,单例模式时结果是true。对于==,如果作用于基本数据类型的变量,则直接比较其存储的 “值”是否相等; 如果作用于引用类型的变量,则比较的是所指向的对象的地址。关于拆箱装箱有个问题需要注意,valueof()函数在初始化时会维护一个缓存池,范围是l >= -128 && l <= 127,所以Integer i03=Integer.valueOf(59); Intege.原创 2021-05-14 12:39:45 · 281 阅读 · 0 评论 -
Unterminated regular expression 和正则表达式
vue手机验证时报了这个错误发现解决方法是在const regMobile = /^1[3|4|5]\d{8}修改成const regMobile = /^1[3|4|5]\d{8}/ 这样就解决问题了原创 2021-05-13 17:44:04 · 1520 阅读 · 0 评论 -
token和jwt的异同
看了很多关于token和jwt的资料,还是有点迷糊,说点自己的理解吧。jwt最大的特点是密码的自我解译,自己分成三段,前后端使用通用的秘钥确认是否正确,按自己的理解jwt是token的一种,现在网上很多人认为token和jwt是不同的,最大的区别点是token可以存在后台的redis中,设置过期时间,作为中心化控制的工具,而jwt由于自身的特点,更灵活。...原创 2021-05-12 22:37:34 · 1125 阅读 · 0 评论 -
vue+springboot的跨域问题
springboot端@Configurationpublic class CorsConfig implements WebMvcConfigurer { static final String ORIGINS[] = new String[] { "GET", "POST", "PUT", "DELETE" }; @Override public void addCorsMappings(CorsRegistry registry) { registry.ad原创 2021-05-12 22:23:18 · 57 阅读 · 0 评论 -
proxyBeanMethods
以上就是我们要说的proxyBeanMethods属性的作用。而且,该属性还另外引申出了这样一个概念,Spring Boot在底层对@Configuration注解有两种配置,它们分别是:Full:即@Configuration(proxyBeanMethods = true),一般称为全配置Lite:即@Configuration(proxyBeanMethods = false),一般称为轻量级配置也就是说,以后我们想要给容器中添加组件的时候,不是会编写一个配置类嘛,然后,如果@Configura原创 2021-05-10 10:23:40 · 710 阅读 · 0 评论 -
java浅克隆中成员变量直接赋值和通过构造方法赋值的不同的记录
java浅克隆中成员变量直接赋值和通过构造方法赋值的不同的记录public class Person implements Cloneable { public String pname; public int page; public Address address; public Person() {} public Integer integer=20; public String str="jjjjjj"; public Person(St原创 2020-10-10 20:37:31 · 103 阅读 · 0 评论 -
关于The errors below were detected when validating the file "spring-aop.xsd" via the file "application
The errors below were detected when validating the file “spring-aop.xsd” via the file “applicationContext.xml”. In most cases these errors can be detected by validating “spring-aop.xsd” directly. Ho...原创 2019-06-27 18:37:14 · 772 阅读 · 0 评论 -
cvc-elt.1: Cannot find the declaration of element 'beans'.
cvc-elt.1: Cannot find the declaration of element ‘beans’.一个报错,记录一下今天测试代码时老是出现cvc-elt.1: Cannot find the declaration of element ‘beans’.的错误,约束加载了没有,卸了也没用,最后eclipse关了重启几次就没有保存了,估计是关了以后系统重新启动加载了什么东西,暂...原创 2019-06-17 20:29:14 · 339 阅读 · 0 评论