上一页 1 ··· 21 22 23 24 25 26 27 28 29 ··· 45 下一页
摘要: 1.数据库建立ssm库,建立user表 2.user实体类 public class User { private int id; private String name; private String password; public int getId() { return id; } publ 阅读全文
posted @ 2022-10-19 11:35 lwx_R 阅读(32) 评论(0) 推荐(0)
摘要: 1. pom.xml <dependencies> <!-- junit 测试--> <dependency> <groupId>junit</groupId> <artifactId>junit</artifactId> <version>4.12</version> <scope>test</s 阅读全文
posted @ 2022-10-19 10:35 lwx_R 阅读(40) 评论(0) 推荐(0)
摘要: 1.Restful风格 模型-视图-控制器(MVC) 是一个众所周知的以设计界面应用程序为基础的设计思想。 Restful风格的API是一种软件架构风格, 设计风格而不是标准,只是提供了一组设计原则和约束条件。 它主要用于客户端和服务器交互类的软件。基于这个风格设计的软件可以更简洁,更有层次,更易于 阅读全文
posted @ 2022-10-17 20:46 lwx_R 阅读(39) 评论(0) 推荐(0)
摘要: 1.文件上传 1.1 pom.xml <dependency> <groupId>commons-fileupload</groupId> <artifactId>commons-fileupload</artifactId> <version>1.3.2</version> </dependenc 阅读全文
posted @ 2022-10-15 19:42 lwx_R 阅读(33) 评论(0) 推荐(0)
摘要: window.location.href = "login.html" 定时效果 3000毫秒 setTimeout(function(){ },3000); 阅读全文
posted @ 2022-10-14 19:48 lwx_R 阅读(23) 评论(0) 推荐(0)
摘要: <!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title></title> </head> <body> <p>this is p</p> <button type="button">click</button> <script type 阅读全文
posted @ 2022-10-14 19:43 lwx_R 阅读(28) 评论(0) 推荐(0)
摘要: mvc配置文件 1.全部拦截 <!-- 使用bean定义一个Interceptor --> <mvc:interceptors> <!-- 直接定义在根下面的Interceptor拦截所有请求--> <bean class="org.xxx.springmvc.interceptors.inter1 阅读全文
posted @ 2022-10-13 13:02 lwx_R 阅读(56) 评论(0) 推荐(0)
摘要: @Controller public class ProductController { /** * 用于将Controller方法返回的对象,通过HttpMessageConverter转化为指定格式 * 写入到Response对象的body数据区 */ @RequestMapping("prod 阅读全文
posted @ 2022-10-13 12:52 lwx_R 阅读(21) 评论(0) 推荐(0)
摘要: @Controller public class ViewController { //页面重定向 @RequestMapping("v1") public String queryView1(){ return "redirect:v1.jsp?a=123"; } //中文乱码 @RequestM 阅读全文
posted @ 2022-10-13 12:51 lwx_R 阅读(29) 评论(0) 推荐(0)
摘要: public boolean isSymmetric(TreeNode root) { if(root == null){ return true; } return judge(root.left,root.right); } //左节点的left = 右节点的right 左节点的right = 阅读全文
posted @ 2022-10-11 12:24 lwx_R 阅读(16) 评论(0) 推荐(0)
上一页 1 ··· 21 22 23 24 25 26 27 28 29 ··· 45 下一页