上一页 1 ··· 18 19 20 21 22 23 24 25 26 ··· 47 下一页
摘要: controller @RequestMapping("/test?Hello/demo") public String test1(){ return "success"; } @RequestMapping("/test*/demo") public String test2(){ return 阅读全文
posted @ 2023-03-08 21:12 iTao0128 阅读(38) 评论(0) 推荐(0)
摘要: web.xml配置 <?xml version="1.0" encoding="UTF-8"?> <web-app xmlns="http://xmlns.jcp.org/xml/ns/javaee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-insta 阅读全文
posted @ 2023-03-06 22:39 iTao0128 阅读(146) 评论(0) 推荐(0)
摘要: <?xml version="1.0" encoding="UTF-8"?> <beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance 阅读全文
posted @ 2023-03-05 22:05 iTao0128 阅读(63) 评论(0) 推荐(0)
摘要: 1.创建项目,打包方式设置为war 2.配置web.xml路径:D:\Code\spring\ssm2023\ssm2023\spring_mvc\src\main\webapp\WEB-INF\web.xml 3.引入pom依赖 <project xmlns="http://maven.apach 阅读全文
posted @ 2023-03-05 19:21 iTao0128 阅读(23) 评论(0) 推荐(0)
摘要: 引入依赖 <dependency> <groupId>com.github.pagehelper</groupId> <artifactId>pagehelper</artifactId> <version>5.2.0</version> </dependency> mybatis-config.x 阅读全文
posted @ 2023-03-05 12:30 iTao0128 阅读(233) 评论(0) 推荐(0)
摘要: 一级缓存 二级缓存 二级缓存相关配置 mybatis缓存查询的顺序 阅读全文
posted @ 2023-03-04 19:41 iTao0128 阅读(13) 评论(0) 推荐(0)
摘要: mapper接口 Emp getEmpById(@Param("id") Integer id); mapper.xml <!-- sql片段:可以记录一段sql,在需要用的地方使用include标签进行引用 --> <sql id="empColumns"> emp_id,emp_name,age 阅读全文
posted @ 2023-03-03 23:03 iTao0128 阅读(39) 评论(0) 推荐(0)
摘要: <!-- 【foreach标签】 collection:设置要循环的数组或集合 item:用一个字符串表示数组或集合中的每一个数据 separator:设置每次循环的数据之间的分隔符 open:循环的所有内容以什么开始 close:循环的所有内容以什么结束 --> mapper接口 public i 阅读全文
posted @ 2023-03-03 22:54 iTao0128 阅读(1376) 评论(0) 推荐(0)
摘要: <?xml version="1.0" encoding="UTF-8" ?> <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> <m 阅读全文
posted @ 2023-03-03 21:56 iTao0128 阅读(350) 评论(0) 推荐(0)
摘要: <?xml version="1.0" encoding="UTF-8" ?> <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> <m 阅读全文
posted @ 2023-03-03 21:41 iTao0128 阅读(49) 评论(0) 推荐(0)
上一页 1 ··· 18 19 20 21 22 23 24 25 26 ··· 47 下一页