上一页 1 ··· 21 22 23 24 25 26 27 28 29 ··· 44 下一页
摘要: 通过以下可以改变浏览器中的url 跳转到home路径下: location.hash='home' 跳转到about路径下: history.pushState({},'','about') 向上回退: history.back() 向前进: history.forward() 使用test路径替换 阅读全文
posted @ 2022-11-16 20:57 Mr_sven 阅读(14) 评论(0) 推荐(0) 编辑
摘要: 1. 安装element-ui npm i element-ui -S 2. main.js中配置 //1.导入组件库 import ElementUI from 'element-ui' //2.导入组件样式相关 import 'element-ui/lib/theme-chalk/index.c 阅读全文
posted @ 2022-11-03 21:44 Mr_sven 阅读(552) 评论(0) 推荐(0) 编辑
摘要: 一、配置环境1.安装VS Code官网下载 https://code.visualstudio.com/ 下载VS Code,按照步骤安装。 2.安装node.js(1)官网 https://nodejs.org/en/ 下载node.js,按照步骤安装即可,node.js安装完成之后会同步安装np 阅读全文
posted @ 2022-10-23 21:23 Mr_sven 阅读(1017) 评论(0) 推荐(0) 编辑
摘要: 添加依赖 <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-validation</artifactId> </dependency> 实体类上添加注解 常见的注解 @No 阅读全文
posted @ 2022-10-11 22:30 Mr_sven 阅读(72) 评论(0) 推荐(0) 编辑
摘要: 引入场景启动器 阅读全文
posted @ 2022-10-09 22:25 Mr_sven 阅读(14) 评论(0) 推荐(0) 编辑
摘要: <dependencies> <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-web</artifactId> </dependency> <dependency> <g 阅读全文
posted @ 2022-09-27 22:25 Mr_sven 阅读(132) 评论(0) 推荐(0) 编辑
摘要: 页面提交的请求数据(get,post)都可以和对象属性进行绑定 @PostMapping("/saveUser") public Person saveUser(Person person){ return person; } 阅读全文
posted @ 2022-09-25 22:28 Mr_sven 阅读(10) 评论(0) 推荐(0) 编辑
摘要: Map<String,Object> map、Model model、HttpServletRequest request都是可以给request域中放数据,再用request.getAttribute取数据 package com.java.boot.controller; import org. 阅读全文
posted @ 2022-09-25 21:11 Mr_sven 阅读(140) 评论(0) 推荐(0) 编辑
摘要: 路径变量@PathVariable ①获取指定路径变量: @GetMapping("/car/{id}/owner/{userName}") public Map<String,Object> getCar(@PathVariable("id") int id, @PathVariable("use 阅读全文
posted @ 2022-09-25 14:02 Mr_sven 阅读(112) 评论(0) 推荐(0) 编辑
摘要: 欢迎页 将index.html放入默认的静态资源路径下,会默认访问。 访问路径:http://localhost:8080/ 如下设置了项目的根访问路径,则欢迎页访问需使用:http://localhost:8080/my/ spring:# mvc:# static-path-pattern: / 阅读全文
posted @ 2022-09-24 22:50 Mr_sven 阅读(39) 评论(0) 推荐(0) 编辑
上一页 1 ··· 21 22 23 24 25 26 27 28 29 ··· 44 下一页