SpringMVC的请求和响应 SpringMVC的数据响应 01-SpringMVC的数据响应-数据响应方式(理解) 页面跳转 直接返回字符串 通过ModelAndView对象返回 2) 回写数据 直接返回字符串 返回对象或集合 02-SpringMVC的数据响应-页面跳转-返回字符串形式(应用) ...
分类:
编程语言 时间:
2020-07-30 18:13:13
阅读次数:
69
SpringMVC的文件上传 1-SpringMVC的请求-文件上传-客户端表单实现(应用) 文件上传客户端表单需要满足: 表单项type=“file” 表单的提交方式是post 表单的enctype属性是多部分表单形式,及enctype=“multipart/form-data” <form ac ...
分类:
编程语言 时间:
2020-07-30 18:12:41
阅读次数:
81
PYNQ社区项目 http://www.pynq.io/embedded.html PYNQ硬件加速图像缩放--实例 https://github.com/Xilinx/PYNQ-HelloWorld PYNQ-视频加速器 https://github.com/Pieter-Berteloot/PY ...
分类:
其他好文 时间:
2020-07-30 14:41:02
阅读次数:
97
一、搭建基本环境(springboot++springmvc+mybatis) 引入cache、web、mysql、mybatis模块创建工程 导入数据库文件 创建出department和employee表 创建javaBean封装数据 public class Department { priva ...
分类:
编程语言 时间:
2020-07-29 21:30:03
阅读次数:
73
利用ref属性//父组件 <template> <div class="home"> <HelloWorld ref="mychild"></HelloWorld> <div @click="clickParent">click me</div> </div> </template> <script ...
分类:
其他好文 时间:
2020-07-29 14:32:24
阅读次数:
53
整合SpringMVC 1、在web.xml中配置前端控制器和中文乱码处理 <?xml version="1.0" encoding="UTF-8"?> <web-app xmlns="http://xmlns.jcp.org/xml/ns/javaee" xmlns:xsi="http://www ...
分类:
其他好文 时间:
2020-07-29 10:23:23
阅读次数:
64
整合spring和springmvc 1、在web.xml中添加spring监听器 <?xml version="1.0" encoding="UTF-8"?> <web-app xmlns="http://xmlns.jcp.org/xml/ns/javaee" xmlns:xsi="http:/ ...
分类:
其他好文 时间:
2020-07-29 10:18:29
阅读次数:
53
在这次项目升级过程中主要遇到了三个问题 1、使用Spring5.xx(或者Springboot2.xx)版本来配置WebMVC时,发现WebMvcConfigurerAdapter不能使用,查看源码后发现官方已经废弃了这个抽象类, 现在官方在源码中推荐的方式是直接实现WebMvcConfigurer ...
分类:
编程语言 时间:
2020-07-27 23:52:44
阅读次数:
98
HelloWorld 随便新建一个文件夹,存放代码 新建一个Java文件 文件后缀名为java Hello.java 【注意点】系统可能没有显示文件后缀名,我们需要手动打开 编写代码 public class Hello{ public static void main(String[] arg){ ...
分类:
其他好文 时间:
2020-07-27 23:39:52
阅读次数:
101
一、Controller相关注解 1、@Controller与@RestController注解 ①@Controller:添加在Controller 类上,指定Spring类的实例是一个控制器。 ②@RestController:添加在Controller 类上,是一个复合注解,它包含了@Cont ...
分类:
编程语言 时间:
2020-07-27 15:56:17
阅读次数:
68