随笔分类 - java
摘要:public static void ShellSort(int[] a, int Index) { int j, k; // 循环计数变量 int Temp; // 暂存变量 boolean Change; // 数据是否改变 int DataLength; // 分割集合的间隔长度 int Pointer; // 进行处理的位置 DataLength = (int) Index / 2; // 初始集合间隔长度 while (DataLength != 0) // 数列仍可进行分割 ...
阅读全文
摘要:注解代码:import java.util.List;import org.apache.ibatis.annotations.Select;import org.apache.ibatis.type.Alias;public interface UserMapper { @Select("SELECT * FROM user ") List selectAllUser(); }mybatis-config.xml中配置mapper java代码: BlogMapper mapper...
阅读全文
摘要:jdbc配置文件config.properties jdbc.driverClassName=com.mysql.jdbc.Driver jdbc.url=jdbc\:mysql\://localhost\:3307/test?autoReconnect\=true&useUnicode\=true&characterEncoding\=utf8 jdbc.username=root jdbc.password=rootmybatis配置文件mybatis-config.xml ...
阅读全文

浙公网安备 33010602011771号