上一页 1 ··· 7 8 9 10 11
摘要: 1、pom.xml导包 1 <dependencies> 2 <dependency> 3 <groupId>log4j</groupId> 4 <artifactId>log4j</artifactId> 5 <version>1.2.17</version> 6 </dependency> 7 阅读全文
posted @ 2020-07-05 10:52 Spring_Xian 阅读(167) 评论(0) 推荐(0)
摘要: 在User Mapper.xml文件下 1 <select id="getUserById" resultType="com.xian.pojo.User"> 2 select * from testdb.test001 where id=#{id} 3 </select> com.xian.poj 阅读全文
posted @ 2020-07-04 15:24 Spring_Xian 阅读(148) 评论(0) 推荐(0)
摘要: 入门的时候感觉写了很多的代码,其实这些并不多 接下来对之前写的代码进行优化 首先Mybatis-config.xml 1 <?xml version="1.0" encoding="UTF-8" ?> 2 <!DOCTYPE configuration 3 PUBLIC "-//mybatis.or 阅读全文
posted @ 2020-07-03 16:24 Spring_Xian 阅读(140) 评论(0) 推荐(0)
摘要: 1.浏览器打开Mybatis官网,跟着入门教程走 1.1 新建maven项目 删除src文件作为父项目 1.2 在pom.xml文件下导入依赖 1 <?xml version="1.0" encoding="UTF-8"?> 2 <project xmlns="http://maven.apache 阅读全文
posted @ 2020-07-01 19:48 Spring_Xian 阅读(214) 评论(0) 推荐(0)
摘要: <build> <resources> <resource> <directory>src/main/java</directory> <includes> <include>**/*.properties</include> <include>**/*.xml</include> </includ 阅读全文
posted @ 2020-07-01 19:13 Spring_Xian 阅读(1622) 评论(0) 推荐(1)
摘要: 冒泡排序 基础排序算法 1 public class maopao { 2 public static void main(String[] args) { 3 int[] arr={123,4,8,6,3,7,8,9,10,45,89,57,45,75,26,78}; 4 for (int i = 阅读全文
posted @ 2020-06-14 12:03 Spring_Xian 阅读(156) 评论(0) 推荐(0)
上一页 1 ··· 7 8 9 10 11