SpringBoot里多个url对应一个方法 写法如下: @RequestMapping(value = { "{prodNo}/detail", "{prodNo}/{stationNo}/detail" }) public ModelAndV... 2018年8月23日 SpringBoot 浏览量:1,352 次 发表评论 阅读全文
thymeleaf中的字符串和变量拼接 首先看看thymeleaf官方文档里的描述,写得很清楚。 4.8 Literal substitutions Literal substitutions allow for an easy forma... 2018年8月22日 Spring 浏览量:4,599 次 发表评论 阅读全文
jQuery检查某个元素在页面上是否存在 用jQuery检查某个元素在网页上是否存在时,应该根据获取元素的长度来判断,代码如下: if($("#tt").length > 0) { //元素存在时执行的代码 } (更多…) 2018年8月21日 jquery 浏览量:642 次 发表评论 阅读全文
SpringBoot以form形式接受单值 controller里: @PostMapping("{prodNo}/edit") @RequestMapping(value = "/{prodNo}/edit", method = { Requ... 2018年8月21日 SpringBoot 浏览量:892 次 发表评论 阅读全文
Springspring静态代理和动态代理 本节要点: Java静态代理 Jdk动态代理 1 面向对象设计思想遇到的问题 在传统OOP编程里以对象为核心,并通过对象之间的协作来形成一个完整的软件功能,由于对象可以继承,因此我们可以把具... 2018年8月16日 浏览量:660 次 发表评论 阅读全文
thymeleaf button提交时的bug 当一个form中有多个button,比如button1,button2。form里指定了th:action,这时button1和button2默认提交都是到th:action的地址里,但是如果我想bu... 2018年8月14日 Spring 浏览量:1,285 次 发表评论 阅读全文
Caused by: org.springframework.expression.spel.SpelParseException: EL1041E: After parsing a valid expression, there is still more data in the expression: ‘rparen())’ Caused by: org.springframework.expression.spel.SpelParseException: EL1041E: After parsing a valid ex... 2018年8月14日 Spring 浏览量:6,587 次 发表评论 阅读全文
jquery中each函数的bug 由于项目中checkbox的勾中效果是用css来实现的,这样一来从后台传回来的初期值check为true,但是看起来是没有被勾中的。所以需要在初值的jquery里遍历所有checkbox,如果勾中,则... 2018年8月13日 jquery 浏览量:709 次 发表评论 阅读全文
thymeleaf list中的checkbox表单提交 画面上的list中第一列为checkbox,需要传递提交整个list的值给后台。 写法如下: 前台: <tr th:each="item, stat : *{orderInfoList}">... 2018年8月13日 Spring 浏览量:4,341 次 发表评论 阅读全文