- 博客(13)
- 收藏
- 关注
原创 gateway集成nacos实现动态网关
1.将gateway注册至nacosspring cloud 版本:Hoxton.SR3spring boot 版本:2.2.5.RELEASEspring cloud alibaba版本:2.2.1.RELEASE–其他版本对应可以自行相关文档对应(手动滑稽)bootstrap.yml的内容spring: application: name: gateway-service cloud: gateway: discovery: locator
2021-10-22 13:05:03
1731
原创 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
1839
原创 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
1494
原创 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
1215
1
原创 org.springframework.beans.factory.NoSuchBeanDefinitionException: No bean named 'aaaa' available
由于粗心,应该在实现类加上注解@Service(“xxxxx”)然后在接口加上了,所有报错了。
2019-07-13 00:11:56
1075
原创 spring boot 模板解析错误
打开控制台2019-05-07 00:35:13.125 ERROR 11860 --- [nio-8080-exec-1] o.a.c.c.C.[.[.[/].[dispatcherServlet] : Servlet.service() for servlet [dispatcherServlet] in context with path [] threw exception [Re...
2019-05-07 00:47:33
2048
原创 jquery错误锦集
1.事件不生效,时间选择器不正确<script> $(function(){ $("#btn1").click(function(){ $("tr:even").css("background-color","lightgreen"); }); }); $('table').on('click','#btn22',...
2019-05-05 00:24:21
250
原创 html js表格行颜色不生效
原因bgColor 写成 bgcolor 且浏览器并未报错<script> function init(){ var tab=document.getElementById("tbl"); var row=tab.rows; for(var i=1;i<row.length;i++){ var row2=row[i]; if(...
2019-05-03 01:06:27
654
原创 概率
网上看到的概率,先做标记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
179
1
原创 frameset
首页不要body分别创建三个html,<!DOCTYPE html><html> <head> <meta charset="utf-8" /> <title></title> </head> <frameset rows="10%,*"> <frame src="aaa...
2019-04-29 19:06:09
140
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人