摘要: 自己写了一个spring boot starter用在项目里,结果引用后运行的时候出现java.lang.IllegalStateException: Unable to read meta-data for class xxx 异常,百度了一下,有的说是resources\META-INF\spr 阅读全文
posted @ 2021-05-26 09:37 潜水猫工厂 阅读(5871) 评论(0) 推荐(0)
摘要: java -jar启动jar包报错:YAMLException: java.nio.charset.MalformedInputException: Input length = 1 而在eclipse/idea中通过运行main函数启动则没有问题,且项目编码为UTF-8。 启动时使用命令:java 阅读全文
posted @ 2021-05-26 09:31 潜水猫工厂 阅读(503) 评论(0) 推荐(0)
摘要: 一、校验数字的表达式 数字:^[0-9]*$ n位的数字:^\d{n}$ 至少n位的数字:^\d{n,}$ m-n位的数字:^\d{m,n}$ 零和非零开头的数字:^(0|[1-9][0-9]*)$ 非零开头的最多带两位小数的数字:^([1-9][0-9]*)+(.[0-9]{1,2})?$ 带1- 阅读全文
posted @ 2021-04-15 10:18 潜水猫工厂 阅读(98) 评论(0) 推荐(0)
摘要: foreach的主要用在构建in条件中,它可以在SQL语句中进行迭代一个集合。 foreach元素的属性主要有 item,index,collection,open,separator,close。 item:表示集合中每一个元素进行迭代时的别名 index:指 定一个名字,用于表示在迭代过程中,每 阅读全文
posted @ 2021-04-14 10:44 潜水猫工厂 阅读(681) 评论(0) 推荐(0)
摘要: // 3DES加密 public static String getEnc3DES(String data, String key, String iv) throws Exception { Cipher cipher = Cipher.getInstance("DESede/CBC/PKCS5P 阅读全文
posted @ 2020-04-14 17:43 潜水猫工厂 阅读(1370) 评论(0) 推荐(0)
摘要: 1.SSM框架的,如下示例解析 1 @ResponseBody 2 @RequestMapping(value = "/PostInfo") 3 public void enter(@RequestBody Map map) throws Exception { 4 JSONObject jsonT 阅读全文
posted @ 2020-04-14 16:55 潜水猫工厂 阅读(8469) 评论(0) 推荐(1)
摘要: eclipse配置tomcat8.5时出错:The Apache Tomcat installation at this directory is version 8.5.4. A Tomcat 8.0 installation is expected. 可以选择使用tomcat8.0便可以去除这个 阅读全文
posted @ 2020-03-16 09:27 潜水猫工厂 阅读(1464) 评论(0) 推荐(0)
摘要: 1.在pom.xml中添加maven依赖 <!--Quartz任务调度 --> <!-- https://mvnrepository.com/artifact/org.quartz-scheduler/quartz --> <dependency> <groupId>org.quartz-sched 阅读全文
posted @ 2019-12-19 10:13 潜水猫工厂 阅读(3384) 评论(1) 推荐(0)