![](https://img-blog.csdnimg.cn/20201014180756928.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
java
星辰离彬
这个作者很懒,什么都没留下…
展开
-
IDEA启动项目报Command line is too long. Shorten command line for XXXApplication or also for
问题描述:解决方法:1、打开项目所在位置,找到你的项目下面的.idea\workspace.xml2、关闭idea3、打开workspace.xml,在PropertiesComponent的最后添加:<property name="dynamic.classpath" value="true" />例如<component name="PropertiesComponent"> <property name="...原创 2022-05-03 13:38:11 · 660 阅读 · 0 评论 -
mysql查询并给每行添加自增序列,并解决在mybatis的xml中写mysql语句中的变量 如set @i=1
实例SELECT (@i :=@i + 1) AS seq, a.id AS id, a.name AS name, b.name AS deptNameFROM sys_user a LEFT JOIN sys_dept b ON b.id = a.dept_id ,(select @i:=0) as t要在mybatis的xml中写mysql语句中的变量 如set @i=1,需要在数据库相关的配置文件中设置允许多个sql执行 mysql的连接url + allow原创 2021-06-04 18:39:13 · 1293 阅读 · 0 评论 -
springboot引用jar包中的bean报错,需要特殊引用
错误信息Caused by: org.springframework.beans.factory.BeanCreationException:Error creating bean with name 'SpFilterWrapper' defined in class path resource [org/jeecg/config/shiro/SsoFilterRegistration.class]:Bean instantiation via factory method failed; ne原创 2021-06-04 18:25:49 · 675 阅读 · 0 评论 -
JAVA批量修改文件夹中的文件名
import java.io.File;/** * 批量重命名文件 * * @author YueYaobin * @create 2021/4/20 */public class updateFileName { public static void main(String[] args) { //文件所在路径,所有文件的根目录,记得修改为你电脑上的文件所在路径 String dir = "F:\\学习"; //新字符串,如果..原创 2021-04-20 15:22:13 · 764 阅读 · 4 评论 -
Hibernate中hql三种方式实现分页关联查询
1.用户实体类 User.classpackage com.system.user.entity.guard;import com.fasterxml.jackson.annotation.JsonIgnore;import lombok.Data;import org.hibernate.annotations.Cascade;import org.hibernate.ann...原创 2020-03-20 09:01:16 · 754 阅读 · 0 评论