自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(11)
  • 收藏
  • 关注

原创 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 143

原创 Integer和int以及==和equals的问题总结

最近老是在==和equals上出问题,看了一点资料,==在运算时比较的是内存的地址,对于类来说,单例模式时结果是true。对于==,如果作用于基本数据类型的变量,则直接比较其存储的 “值”是否相等; 如果作用于引用类型的变量,则比较的是所指向的对象的地址。关于拆箱装箱有个问题需要注意,valueof()函数在初始化时会维护一个缓存池,范围是l >= -128 && l <= 127,所以Integer i03=Integer.valueOf(59); Intege.

2021-05-14 12:39:45 298

原创 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 1559

原创 token和jwt的异同

看了很多关于token和jwt的资料,还是有点迷糊,说点自己的理解吧。jwt最大的特点是密码的自我解译,自己分成三段,前后端使用通用的秘钥确认是否正确,按自己的理解jwt是token的一种,现在网上很多人认为token和jwt是不同的,最大的区别点是token可以存在后台的redis中,设置过期时间,作为中心化控制的工具,而jwt由于自身的特点,更灵活。...

2021-05-12 22:37:34 1136

原创 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 60

原创 proxyBeanMethods

以上就是我们要说的proxyBeanMethods属性的作用。而且,该属性还另外引申出了这样一个概念,Spring Boot在底层对@Configuration注解有两种配置,它们分别是:Full:即@Configuration(proxyBeanMethods = true),一般称为全配置Lite:即@Configuration(proxyBeanMethods = false),一般称为轻量级配置也就是说,以后我们想要给容器中添加组件的时候,不是会编写一个配置类嘛,然后,如果@Configura

2021-05-10 10:23:40 729

原创 给定星号total打印菱形

给定星号打印总数可以进行数字的大概推断,假定第n次打印菱形,则总的数是nn+(n-1)*(n-1),根据这个关系可以计算出Math.pow(n,2)+Math.pow((n-1),2)<total 直接上代码public class Tringle { public static void main(String[] args) { //draw(1); tringle(); } public static void tringle(){

2021-04-25 16:28:43 48

原创 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 109

原创 关于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 781

原创 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 345

原创 关于 Column 'lkm_cust_id' cannot be null

关于 Column ‘lkm_cust_id’ cannot be null练习hibernate导航时发现了一个问题,表外键不能为空,按照黑马程序员给的代码测试时发现一直不能顺利运行Hibernate: insert into cst_customer (cust_name, cust_source, cust_industry, cus...

2019-06-06 23:02:40 3125 2

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除