![](https://img-blog.csdnimg.cn/20201014180756923.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
springMVC
bladeandmaster88
好好奋斗
展开
-
springMVC接收json数组的三种方式
代码见https://gitee.com/bladeandmaster/freemarkerDemo1、第一种,后端采用String接收$("#confirm1").click(function (){ var jsonArr=[{"count":1,"name":"aa"},{"count":2,"name":"bb"}]; $.ajax({ type:...原创 2019-08-17 20:58:21 · 9509 阅读 · 6 评论 -
form表单提交FormData数据
代码见https://gitee.com/bladeandmaster/freemarkerDemo1、第一种直接使用form表单的submit提交2、第二种采用ajax提交,需要设置contentype:"application/x-www-form-urlencoded"<!DOCTYPE html><html lang="en"><head&g...原创 2019-08-17 22:23:26 · 2335 阅读 · 3 评论 -
读取resources目录下文件方式
//spring方式 Resource resource = new ClassPathResource("application.properties"); String path = ((ClassPathResource) resource).getURL().getPath(); System.out.println(pat...原创 2019-08-26 22:49:20 · 1158 阅读 · 0 评论