随笔分类 - 重学Java
摘要:1 <?xml version="1.0" encoding="UTF-8"?> 2 <project xmlns="http://maven.apache.org/POM/4.0.0" 3 xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
阅读全文
摘要:userMapper.xml + <!--根据id进行查询--> <select id="findById" resultType="user" parameterType="int"> select * from user where id=#{id} </select> 1 MybatisTes
阅读全文
摘要:1 <?xml version="1.0" encoding="UTF-8" ?> 2 <!DOCTYPE configuration PUBLIC "-//mybatis.org//DTD Config 3.0//EN" "http://mybatis.org/dtd/mybatis-3-conf
阅读全文
摘要:1 <?xml version="1.0" encoding="UTF-8" ?> 2 <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"
阅读全文
摘要:简介 快速入门 1 <?xml version="1.0" encoding="UTF-8"?> 2 <project xmlns="http://maven.apache.org/POM/4.0.0" 3 xmlns:xsi="http://www.w3.org/2001/XMLSchema-in
阅读全文
摘要:代码+环境同10.2 以下仅说明不同的地方 1 package com.haifei.service; 2 3 import com.haifei.dao.AccountDao; 4 import org.springframework.beans.factory.annotation.Autowi
阅读全文
摘要:1 <?xml version="1.0" encoding="UTF-8"?> 2 <project xmlns="http://maven.apache.org/POM/4.0.0" 3 xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
阅读全文
摘要:快速入门 代码实现 1 package com.haifei.anno; 2 3 /** 4 * 目标接口 5 */ 6 public interface TargetInterface { 7 8 public void save(); 9 10 } 1 package com.haifei.an
阅读全文
摘要:快速入门 代码实现 1 <?xml version="1.0" encoding="UTF-8"?> 2 <project xmlns="http://maven.apache.org/POM/4.0.0" 3 xmlns:xsi="http://www.w3.org/2001/XMLSchema-
阅读全文
摘要:概述 JDK的动态代理 1 package com.haifei.proxy.jdk; 2 3 /** 4 * 目标类接口 5 */ 6 public interface TargetInterface { 7 8 public void save(); 9 10 } 1 package com.h
阅读全文
摘要:1 <?xml version="1.0" encoding="UTF-8"?> 2 <project xmlns="http://maven.apache.org/POM/4.0.0" 3 xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
阅读全文
摘要:1 package com.haifei.interceptor; 2 3 import com.haifei.domain.User; 4 import org.springframework.web.servlet.HandlerInterceptor; 5 6 import javax.ser
阅读全文
摘要:1 <%-- 2 Created by IntelliJ IDEA. 3 User: yubaby 4 Date: 2021/7/20 5 Time: 21:39 6 To change this template use File | Settings | File Templates. 7 --
阅读全文
摘要:用户列表展示 用户添加 用户删除 代码实现 1 package com.haifei.domain; 2 3 import java.util.List; 4 5 public class User { 6 7 private Long id; 8 private String username;
阅读全文
摘要:角色和用户关系分析 角色列表展示功能 角色添加功能 代码实现 1 package com.haifei.domain; 2 3 public class Role { 4 5 private Long id; 6 private String roleName; 7 private String r
阅读全文
摘要:1 <?xml version="1.0" encoding="UTF-8"?> 2 <project xmlns="http://maven.apache.org/POM/4.0.0" 3 xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
阅读全文
摘要:1 <?xml version="1.0" encoding="UTF-8"?> 2 <project xmlns="http://maven.apache.org/POM/4.0.0" 3 xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
阅读全文
摘要:文件上传客户端三要素&原理 单文件上传 1 pom.xml 2 3 + 4 5 <!--fileupload和io坐标,用于文件上传--> 6 <dependency> 7 <groupId>commons-fileupload</groupId> 8 <artifactId>commons-fil
阅读全文
摘要:自定义类型转换器 1 package com.haifei.converter; 2 3 import org.springframework.core.convert.converter.Converter; 4 5 import java.text.ParseException; 6 impor
阅读全文