会员
周边
新闻
博问
闪存
众包
赞助商
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
星小梦
用百度不如用必应:
https://rewards.bing.com
博客园
首页
新随笔
联系
管理
上一页
1
···
36
37
38
39
40
41
42
43
44
···
50
下一页
2019年9月14日
jpa CriteriaQueryNo explicit selection and an implicit one could not be determined
摘要: 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)
2019年9月10日
Spring ModelAttribute注解失效原因
摘要: public String test(@RequestParam(value = "test") @ModelAttribute("test") String plateId)通过实验,RequestParam和ModelAttribute注解互斥,即添加了RequestParam注解会导致Mode
阅读全文
posted @ 2019-09-10 06:01 星小梦
阅读(1146)
评论(0)
推荐(0)
2019年9月4日
Spring Data Jpa 更新操作
摘要: 第一步,通过Repository对象把实体根据ID查询出来 第二部,往查出来的实体对象进行set各个字段 第三步,通过Repository接口的save方法进行保存 保存和更新方式(已知两种) 第一种是通过@Query和@Modify注解进行更新,自己可在@Query注解的HQL或SQL片段中指定更
阅读全文
posted @ 2019-09-04 14:31 星小梦
阅读(7433)
评论(1)
推荐(2)
2019年9月3日
Spring根据路径前缀获取不同Resource
摘要: 相关文章: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)
Spring Bean生命周期回调方法
摘要: 参阅官方文档: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)
Spring Bean生命周期回调
摘要: 参阅官方文档: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)
2019年9月1日
SpringBoot 自定义配置文件不会自动提示问题
摘要: 参阅:https://www.jianshu.com/p/ec3f0b0371e6
阅读全文
posted @ 2019-09-01 21:12 星小梦
阅读(1065)
评论(0)
推荐(0)
2019年8月31日
Formatter和IStandardConversionService的使用方式
摘要: Thymeleaf 1.Formatter接口是当进行请求参数的封装时,会根据Formatter的泛型进行调用Parse方法进行格式化类型 2.IStandardConversionService是Thymeleaf的一个接口,进行数据转换或格式化的操作,使用需要通过${{}}或*{{}}进行使用,
阅读全文
posted @ 2019-08-31 22:35 星小梦
阅读(303)
评论(0)
推荐(0)
JS的箭头函数this作用域
摘要: 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)
2019年8月25日
thymeleaf调用静态类
摘要: 为啥需要调用本地静态方法 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
下一页
公告