POITest excel 操作
摘要:记着层次 //记着层次 excel ->sheet ->row ->cell package com.sky.config; import org.apache.poi.xssf.usermodel.XSSFRow; import org.apache.poi.xssf.usermodel.XSSF
阅读全文
posted @
2023-09-12 19:50
mljqqh
阅读(7)
推荐(0) 编辑
builder模式
摘要:package study; import lombok.Data; @Data public class Student { Integer age; String name; String address ; public Student() { } public Student(Builder
阅读全文
posted @
2023-09-08 23:30
mljqqh
阅读(6)
推荐(0) 编辑
购物车的实现 前端按钮 , 一次就是加一次数量吧 以后查询都可以采用动态sql where标签
摘要:后端实现都是查询list集合 ,查询list集合条件是userID 物品id ,list集合其实查询出的就是一个 因为 物品id是唯一的 。。, 另外思想有点像批量删除,和单个删除有点类似 用in来实现 in里面传入的也是list集合, 非常的类似 看了淘宝,美团外卖,多多买菜的基本都是查询list
阅读全文
posted @
2023-09-05 16:28
mljqqh
阅读(10)
推荐(0) 编辑
Failed to start bean 'documentationPluginsBootstrapper'; nested exception is java.lang.NullPointerException 转载哈!!
摘要:2023-09-03 22:53:53.622 WARN 20788 [ main] ConfigServletWebServerApplicationContext : Exception encountered during context initialization - cancelling
阅读全文
posted @
2023-09-03 23:01
mljqqh
阅读(73)
推荐(0) 编辑
EnableConfigurationProperties 转载
摘要:可以参考下 https://blog.csdn.net/AlbenXie/article/details/105709976 使用方法1 @ConfigurationProperties(prefix = "mljqqh.jwt") 初始化 @EnableConfigurationPropertie
阅读全文
posted @
2023-08-10 00:04
mljqqh
阅读(13)
推荐(0) 编辑
hibernate少了@Entity
摘要:Use of @OneToMany or @ManyToMany targeting an unmapped class: com.mljqqh.pojo.Customer.contactMans[com.mljqqh.pojo.ContactMan]
阅读全文
posted @
2021-06-18 11:40
mljqqh
阅读(34)
推荐(0) 编辑
Unregistering JMX-exposed beans on shutdown
摘要:这里提示你没有需要运行的东西了 ,我要关闭了 ,也没有端口 原因是你没有导入web包,没有web包也就不要运行了,也没有端口显示。 <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-sta
阅读全文
posted @
2020-12-17 22:18
mljqqh
阅读(341)
推荐(0) 编辑
spring boot测试的时候 测试类要跟main的路径一致 不然@Autowired无法注入
摘要:测试 redisTemplate jdbcTemplate elasticsearchTemplate等待Template要注意了注意这个过时的帖子了哈
阅读全文
posted @
2020-12-17 22:11
mljqqh
阅读(252)
推荐(0) 编辑
String value(); String[] value(); 比较
摘要:[]是个数组 String数组包含String ,单个参数用string,多个参数用数组 比如 public @interface Param { String value(); } public @interface Insert { String[] value(); }
阅读全文
posted @
2020-12-13 13:17
mljqqh
阅读(320)
推荐(0) 编辑
return; 用法
摘要:用于jvm退出栈,看代码 public class Test { public static void fun(){ System.out.println("a"); int a =1; if (a>0.1) return; System.out.println("b"); } public sta
阅读全文
posted @
2020-12-10 13:22
mljqqh
阅读(94)
推荐(0) 编辑
java.lang.AbstractMethodError: org.mybatis.spring.transaction.SpringManagedTransaction.getTimeout()Ljava/lang/Integer;
摘要:java.lang.AbstractMethodError: org.mybatis.spring.transaction.SpringManagedTransaction.getTimeout()Ljava/lang/Integer;
阅读全文
posted @
2019-01-20 00:40
mljqqh
阅读(81)
推荐(0) 编辑
HTTP Status 500 java.lang.NoClassDefFoundError: org/springframework/jdbc/core/RowMapper_
摘要:org.springframework.beans.BeanInstantiationException: Failed to instantiate [demo.Words]: No default constructor found; nested exception is java.lang.
阅读全文
posted @
2018-10-22 22:27
mljqqh
阅读(828)
推荐(0) 编辑
克隆对象之浅克隆和深克隆
摘要:下面这个是很好的例子 ,解释清楚了, 浅克隆和深克隆 百度经验 浅克隆只能用于克隆对象成员变量没有引用的时候. 深克隆可以完美的克隆含有引用变量的对象 . 实现深克隆的两种方式: 第一种:必须实现实现Cloneable接口(是一个标记接口,里面没有任何方法),然后使用clone()方法 第二种:使用
阅读全文
posted @
2018-09-27 02:00
mljqqh
阅读(172)
推荐(2) 编辑
反射跳过泛型检查
摘要:@Testpublic void method() throws NoSuchMethodException, InvocationTargetException, IllegalAccessException { //创建集合ArrayList list = new ArrayList(); //通过对象获取字节码对象Class aClass = list.getC...
阅读全文
posted @
2018-09-23 02:45
mljqqh
阅读(183)
推荐(1) 编辑
java中字符串和其他数据类型之间使用“+”号连接
摘要:int i1=100; int i2=2; System.out.println(i1+"*"+i2+"="+i1*i2);//100*2=200 System.out.println(i1+"+"+i2+"="+i1+i2);//100+2=1002 System.out.println(i1+"
阅读全文
posted @
2018-09-18 20:18
mljqqh
阅读(295)
推荐(0) 编辑
java中api的各种排序(更新中,欢迎大佬指点)
摘要:1. 基本数组: //直接通过Arrays.sort工具类 int[] arr = new int[]{1,2,6,24,5,68,9,0}; Arrays.sort(arr); 2.对象数组: //通过实现Comparable接口来排序 public class student implement
阅读全文
posted @
2018-09-12 00:18
mljqqh
阅读(2103)
推荐(1) 编辑
java 中 == 与 equals引出的字符串比较
摘要:==基本类型:比较的是值引用类型:比较的是地址 equals方法Object上帝类中比较的是对象的地址String 类对equals进行了重写(自己看看源码),比较的是字符串的值 有了这个做铺垫,然后就是字符串拼接原理: String字符串拼接符 “+”底层原理 剖析java的字符串拼接机制 举个栗
阅读全文
posted @
2017-05-08 00:13
mljqqh
阅读(135)
推荐(0) 编辑