摘要:
通过以下可以改变浏览器中的url 跳转到home路径下: location.hash='home' 跳转到about路径下: history.pushState({},'','about') 向上回退: history.back() 向前进: history.forward() 使用test路径替换 阅读全文
摘要:
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 阅读全文
摘要:
一、配置环境1.安装VS Code官网下载 https://code.visualstudio.com/ 下载VS Code,按照步骤安装。 2.安装node.js(1)官网 https://nodejs.org/en/ 下载node.js,按照步骤安装即可,node.js安装完成之后会同步安装np 阅读全文
摘要:
添加依赖 <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-validation</artifactId> </dependency> 实体类上添加注解 常见的注解 @No 阅读全文
摘要:
引入场景启动器 阅读全文
摘要:
<dependencies> <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-web</artifactId> </dependency> <dependency> <g 阅读全文
摘要:
页面提交的请求数据(get,post)都可以和对象属性进行绑定 @PostMapping("/saveUser") public Person saveUser(Person person){ return person; } 阅读全文
摘要:
Map<String,Object> map、Model model、HttpServletRequest request都是可以给request域中放数据,再用request.getAttribute取数据 package com.java.boot.controller; import org. 阅读全文
摘要:
路径变量@PathVariable ①获取指定路径变量: @GetMapping("/car/{id}/owner/{userName}") public Map<String,Object> getCar(@PathVariable("id") int id, @PathVariable("use 阅读全文
摘要:
欢迎页 将index.html放入默认的静态资源路径下,会默认访问。 访问路径:http://localhost:8080/ 如下设置了项目的根访问路径,则欢迎页访问需使用:http://localhost:8080/my/ spring:# mvc:# static-path-pattern: / 阅读全文