摘要: 假设要将表user中的数据插入到user_model中, 然后将根据user中的age字段更新值, 更新的规则是: 如果user表中的age>26, 则将user_model表中的age字段设置为27; 否则, 设置为25. 首先, 将user中的数据先插入到user_model中. ```sql 阅读全文
posted @ 2023-05-26 20:51 GoXXIV 阅读(22) 评论(0) 推荐(0) 编辑
摘要: 参考自: SpringBoot 整合 webservice 示例 1. 添加依赖 不需要导入web依赖, 因为web-services中已包含此依赖. <dependencies> <dependency> <groupId>org.springframework.boot</groupId> <a 阅读全文
posted @ 2022-09-15 18:58 GoXXIV 阅读(271) 评论(0) 推荐(0) 编辑
摘要: Caused by: org.xml.sax.SAXParseException; lineNumber: 44; columnNumber: 65; cvc-complex-type.2.4.a: 发现了以元素 '{"http://www.springframework.org/schema/ao 阅读全文
posted @ 2022-09-05 09:58 GoXXIV 阅读(324) 评论(0) 推荐(0) 编辑
摘要: 引自: https://www.freesion.com/article/2829484943/ 报错信息 Exception in thread "main" java.lang.UnsatisfiedLinkError: org.apache.hadoop.io.nativeio.NativeI 阅读全文
posted @ 2022-08-31 21:00 GoXXIV 阅读(183) 评论(0) 推荐(0) 编辑
摘要: 在Spring Boot中使用RedisTemplate时, 出现了这样的情况: 当使用new ArrayList<String>(Arrays.asList("abc", "def"))创建List时, 可以正常存入Redis; 而使用new ArrayList<String>(){{add("a 阅读全文
posted @ 2022-06-13 15:08 GoXXIV 阅读(117) 评论(0) 推荐(0) 编辑
摘要: 环境搭建 依赖 <!--spring security--> <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-security</artifactId> </depend 阅读全文
posted @ 2022-06-08 11:36 GoXXIV 阅读(41) 评论(0) 推荐(0) 编辑
摘要: 问题: 使用IDEA连接远程主机上的Redis失败. 抛出redis.clients.jedis.exceptions.JedisConnectionException: Failed connecting to host xxx 解决方法: 在Redis的配置文件中注释掉bind 测试代码 imp 阅读全文
posted @ 2022-05-27 19:38 GoXXIV 阅读(348) 评论(0) 推荐(0) 编辑
摘要: IDEA的代码模板在"File and Code Templates"中. 对servlet的默认模板进行如下修改: 使用: 阅读全文
posted @ 2021-03-28 20:46 GoXXIV 阅读(74) 评论(0) 推荐(0) 编辑
摘要: https://www.cnblogs.com/dereen/p/ps_conda_env.html 阅读全文
posted @ 2021-03-17 19:24 GoXXIV 阅读(127) 评论(0) 推荐(0) 编辑
摘要: //JDBCUtils.java //依赖: mysql.jar, druid.jar import com.alibaba.druid.pool.DruidDataSourceFactory; import javax.sql.DataSource; import java.sql.*; impo 阅读全文
posted @ 2021-03-09 18:42 GoXXIV 阅读(250) 评论(0) 推荐(0) 编辑