![](https://img-blog.csdnimg.cn/20201014180756927.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
java
西河扛霸子
做最酷的人
展开
-
easy code模板设置
1.Idea插件搜索easy code并安装2.在idea设置找到easy code,其中本文中主要用到Global Config(全局配置)和 Template(模板)3.由于设计业务,表名很多都有前缀及类名有时会有内部规定,所有先在Global Config里面的define.vm申明全局变量,easy code的语法是velotity。define.vm##由于表名存在下划线,先进行截取下划线后面的内容#set($className = $tool.getClassName($tableIn原创 2021-10-18 17:16:50 · 1662 阅读 · 0 评论 -
invoke():java.lang.IllegalArgumentException: argument type mismatch
writeMethod.invoke()java.lang.IllegalArgumentException: argument type mismatch利用spring的反射将xml数据应入实体类,导入数据库,显示参数不匹配,debug定位到Integer的属性对应不上,灵机一动实体类改成String竟然好了,可知底层并没有帮我们拆装箱,默认String类型。解决办法:writeMethod.invoke(t, value)的value强制转为实体类类型。1.手写一个转换方法先获取实体类当前属性的原创 2021-10-14 14:53:44 · 1364 阅读 · 0 评论 -
flowable自定义属性取不到值
List<CustomProperty> customProperties = new ArrayList<>();CustomProperty customProperty = new CustomProperty(); customProperty.setName("approvalType"); customProperty.setSimpleValue(approvalType.toString()); customProperties.add(custo原创 2020-08-05 09:16:18 · 1119 阅读 · 1 评论 -
feign调用传List接不到值
改为传数组 List<Long> 改为 Long[] 再用Arrays.asList()变成集合原创 2020-06-20 10:55:54 · 2384 阅读 · 3 评论 -
概率
网上看到的概率,先做标记package com.test;import java.text.DecimalFormat;import java.util.Random;/* * 概率问题 */public class Test_7 { public static void main(String[] args) { // TODO Auto-generated meth...原创 2019-05-01 00:39:10 · 155 阅读 · 1 评论 -
org.springframework.beans.factory.NoSuchBeanDefinitionException: No bean named 'aaaa' available
由于粗心,应该在实现类加上注解@Service(“xxxxx”)然后在接口加上了,所有报错了。原创 2019-07-13 00:11:56 · 1050 阅读 · 0 评论 -
mybatis无法找到mapper
要文件路径要对 。。。。。。。ssl报错,不然每次百度= 。=原创 2019-07-05 23:14:25 · 379 阅读 · 0 评论