会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
博主首页
笑~笑
博客园
新随笔
联系
管理
上一页
1
···
25
26
27
28
29
30
31
32
33
···
47
下一页
2020年11月10日
The dependencies of some of the beans in the application context form a cycle
摘要: Description: The dependencies of some of the beans in the application context form a cycle: ┌─────┐ | t1 defined in file [D:\yirui-supervisor\yirui-su
阅读全文
posted @ 2020-11-10 11:25 笑~笑
阅读(655)
评论(0)
推荐(0)
2020年11月6日
idea中的白线怎么去掉、idea屏幕上的线怎么去掉
摘要: 找到设置里面的箭头所指的位置,将对应的勾选去掉, 保存即可
阅读全文
posted @ 2020-11-06 10:47 笑~笑
阅读(1276)
评论(0)
推荐(0)
2020年11月4日
shiro中doGetAuthorizationInfo授权方法不执行问题
摘要: 方法一:添加依赖;对我没用 <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-aop</artifactId> </dependency> 方法二:有人说这个要放在最后面
阅读全文
posted @ 2020-11-04 13:32 笑~笑
阅读(4374)
评论(0)
推荐(0)
2020年10月29日
根据class对象判断是否为接口、根据class对象判断是否为抽象类
摘要: Field[] fields = TbRawMaterialController.class.getDeclaredFields(); Arrays.stream(fields).forEach(field -> { String fieldName = field.getName(); Class
阅读全文
posted @ 2020-10-29 15:13 笑~笑
阅读(1110)
评论(0)
推荐(0)
2020年10月28日
java.lang.NoSuchFieldException
摘要: 有时候使用反射进行Field相关操作的时候会出现这样异常,一般原因有两种: 1.本身就没有该Field; 2.有该Field,但是该Field是使用private修饰的,而在获取该Field的时候,需要使用getDeclaredField这个方法。
阅读全文
posted @ 2020-10-28 20:16 笑~笑
阅读(3434)
评论(0)
推荐(0)
反射获取所有属性名,判断属性上是否有此注解以及注解的值,
摘要: Field[] fields = TableMainAddVO.class.getDeclaredFields(); List<String> strList = new ArrayList<String>(); Arrays.stream(fields).forEach(f -> { if(f.i
阅读全文
posted @ 2020-10-28 13:37 笑~笑
阅读(2710)
评论(0)
推荐(0)
2020年10月23日
日常复习资料(保持更新,有错误的欢迎评论区反馈,谢谢!)
摘要: 第一章 java基础 第一节 java基本数据类型 Java语言提供了八种基本类型。六种数字类型(四个整数型,两个浮点型),一种字符类型,还有一种布尔型。 byte、short、int、long、float、doule、char、boolean; String 不是基本数据类型。 第二节 java访
阅读全文
posted @ 2020-10-23 16:15 笑~笑
阅读(173)
评论(3)
推荐(1)
2020年10月20日
mybatis有二级缓存,为什么还要用redis???
摘要: 1、mybatis一级缓存作用域是session,session在commit之后缓存就消失了。 2、mybatis二级缓存作用域是sessionfactory,该缓存是以namespace为单位的(也就是一个Mapper.xml文件),不同namespace下操作互不影响。 3、所有对数据表的改变
阅读全文
posted @ 2020-10-20 14:25 笑~笑
阅读(1828)
评论(0)
推荐(0)
优化Mysql数据库的8个方法
摘要: 通过8个方法优化Mysql数据库:创建索引、复核索引、索引不会包含含有NULL值的列、使用短索引、排序的索引问题、like语句操作、不要在列上进行运算、不使用NOT IN 和<>操作 1、创建索引 对于查询占主要的应用来说,索引显得尤为重要。很多时候性能问题很简单的就是因为我们忘了添加索引造成的,或
阅读全文
posted @ 2020-10-20 11:04 笑~笑
阅读(262)
评论(0)
推荐(0)
2020年10月16日
Data too long for column 'id' at row 1
摘要: 字段长度问题
阅读全文
posted @ 2020-10-16 17:23 笑~笑
阅读(513)
评论(2)
推荐(0)
上一页
1
···
25
26
27
28
29
30
31
32
33
···
47
下一页
公告