上一页 1 2 3 4 5 6 ··· 11 下一页
摘要: 原文链接:https://blog.csdn.net/qq_42269354/article/details/100589640 首先声明:ON DUPLICATE KEY UPDATE 为MySQL特有语法; 语句的作用:当insert已经存在的记录时,执行update 用法举个栗子: table 阅读全文
posted @ 2020-03-26 15:55 丁昆 阅读(243) 评论(0) 推荐(0) 编辑
摘要: 批量插入 定义字段,方便调用 <sql id="MaterialsInColumns"> materialsId,materialsName,materialsType,unitName,unitId,classfiyName, classfiyId,saveLocation,saveLocatio 阅读全文
posted @ 2020-03-26 15:45 丁昆 阅读(191) 评论(0) 推荐(0) 编辑
摘要: 原文链接:https://www.cnblogs.com/zjfjava/p/9963958.html 学习 报错:No transaction aspect-managed TransactionStatus in scope 当希望在某个方法中添加事务时,我们常常在方法头上添加@Transact 阅读全文
posted @ 2020-03-26 15:39 丁昆 阅读(1542) 评论(0) 推荐(0) 编辑
摘要: 1、页面跳转 window.location.href='back.html'; 2、页面跳转传值 localStorage.setItem('userId',ret.Info.userId);//传值 localStorage.getItem('userId'),//取值 3、关闭页面 //关闭页 阅读全文
posted @ 2020-01-21 09:11 丁昆 阅读(113) 评论(0) 推荐(0) 编辑
摘要: spring boot 项目搭建 pom.xml <?xml version="1.0" encoding="UTF-8"?> <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/X 阅读全文
posted @ 2019-08-15 14:57 丁昆 阅读(4029) 评论(0) 推荐(0) 编辑
摘要: <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>Title</title> <script type="text/javascript" src="js/vue.js"></script> </head> < 阅读全文
posted @ 2019-08-15 14:37 丁昆 阅读(1916) 评论(0) 推荐(0) 编辑
摘要: dom4j <?xml version="1.0" encoding="GB2312"?> <RESULT> <VALUE> <NO>A1234</NO> <ADDR>河南省郑州市</ADDR> </VALUE> <VALUE> <NO>B1234</NO> <ADDR>河南省郑州市二七区</ADD 阅读全文
posted @ 2019-05-20 09:13 丁昆 阅读(135) 评论(0) 推荐(0) 编辑
摘要: 记录Druid 连接池简单用法 package Utils; import com.alibaba.druid.pool.DruidDataSourceFactory; import javax.sql.DataSource; import java.io.InputStream; import j 阅读全文
posted @ 2019-05-15 16:23 丁昆 阅读(150) 评论(0) 推荐(0) 编辑
摘要: preparedstatement和statement的区别 当不需要预编译时(不需要占位符)可以选用statement,存在不安全 当有占位符(?)时,需要选用preparedstatement select 查询语句,选用executeQuery()方法 执行后返回代表查询结果的ResultSe 阅读全文
posted @ 2019-05-15 16:00 丁昆 阅读(245) 评论(0) 推荐(0) 编辑
摘要: Mysql数据库 String driver=“com.mysql.jdbc.Driver”; String url="jdbc:mysql://127.0.0.1:3306/test"; String user="root"; String password="root"; Class.forNa 阅读全文
posted @ 2019-05-14 11:43 丁昆 阅读(495) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 ··· 11 下一页