上一页 1 ··· 36 37 38 39 40 41 42 43 44 ··· 50 下一页
摘要: java.lang.IllegalArgumentException: Error occurred validating the Criteria 。。。 Caused by: java.lang.IllegalStateException: No explicit selection and a 阅读全文
posted @ 2019-09-14 11:53 星小梦 阅读(1314) 评论(0) 推荐(0)
摘要: public String test(@RequestParam(value = "test") @ModelAttribute("test") String plateId)通过实验,RequestParam和ModelAttribute注解互斥,即添加了RequestParam注解会导致Mode 阅读全文
posted @ 2019-09-10 06:01 星小梦 阅读(1146) 评论(0) 推荐(0)
摘要: 第一步,通过Repository对象把实体根据ID查询出来 第二部,往查出来的实体对象进行set各个字段 第三步,通过Repository接口的save方法进行保存 保存和更新方式(已知两种) 第一种是通过@Query和@Modify注解进行更新,自己可在@Query注解的HQL或SQL片段中指定更 阅读全文
posted @ 2019-09-04 14:31 星小梦 阅读(7433) 评论(1) 推荐(2)
摘要: 相关文章:https://www.jianshu.com/p/5bab9e03ab92 官方文档:https://docs.spring.io/spring/docs/current/spring-framework-reference/core.html#resources 阅读全文
posted @ 2019-09-03 21:36 星小梦 阅读(377) 评论(0) 推荐(0)
摘要: 参阅官方文档:https://docs.spring.io/spring/docs/current/spring-framework-reference/core.html#beans-factory-lifecycle 第一种方式:使用@PostConstruct注解,进行标注当前非init()名 阅读全文
posted @ 2019-09-03 21:25 星小梦 阅读(926) 评论(0) 推荐(0)
摘要: 参阅官方文档:https://docs.spring.io/spring/docs/current/spring-framework-reference/core.html#beans-factory-lifecycle 第一种方式:使用@PostConstruct注解,进行标注当前非init()名 阅读全文
posted @ 2019-09-03 21:23 星小梦 阅读(275) 评论(0) 推荐(0)
摘要: 参阅:https://www.jianshu.com/p/ec3f0b0371e6 阅读全文
posted @ 2019-09-01 21:12 星小梦 阅读(1065) 评论(0) 推荐(0)
摘要: Thymeleaf 1.Formatter接口是当进行请求参数的封装时,会根据Formatter的泛型进行调用Parse方法进行格式化类型 2.IStandardConversionService是Thymeleaf的一个接口,进行数据转换或格式化的操作,使用需要通过${{}}或*{{}}进行使用, 阅读全文
posted @ 2019-08-31 22:35 星小梦 阅读(303) 评论(0) 推荐(0)
摘要: function方法调用call和apply的使用方式:https://developer.mozilla.org/zh-CN/docs/Web/JavaScript/Reference/Global_Objects/Function/call 阅读全文
posted @ 2019-08-31 00:16 星小梦 阅读(1102) 评论(1) 推荐(0)
摘要: 为啥需要调用本地静态方法 Thymeleaf模板里面有时候需要使用本地静态常量,要是每次都在控制层传一遍很麻烦 我们需要在Thymeleaf模板我们使用比如 1代表一年级,2代表二年级,3代表三年级等,需要在便签的title上使用。当然可以使用switch语句,但是这样很麻烦,写一大堆标签。 简单的 阅读全文
posted @ 2019-08-25 22:07 星小梦 阅读(1522) 评论(0) 推荐(0)
上一页 1 ··· 36 37 38 39 40 41 42 43 44 ··· 50 下一页