java
玉雨钰瑜
这个作者很懒,什么都没留下…
展开
-
记录项目spring boot GC日志输出信息
spring boot gc日志打印记录转载 2022-06-24 17:38:37 · 1136 阅读 · 0 评论 -
Spring data jpa查询出来list转换为page
首先说明下这个方法不行,错误Page<String> page = new PageImpl<String>(strings, pageable, strings.size());正确的转换方法 public Object page( @PageableDefault(direction = Sort.Direction.DESC) Pageable pageable ) { List<T> list = new ArrayL原创 2021-07-07 10:22:26 · 1003 阅读 · 0 评论 -
LDAPException: Unwilling To Perform (53) Unwilling To Perform
LDAP 修改密码报错在ldap上使用Java代码直接修改对应的principle密码时候出现LDAPException: Unwilling To Perform (53) Unwilling To PerformLDAPException: Server Message: 0000001F: SvcErr: DSID-031A12D2, problem 5003 (WILL_NOT_PERFORM), data 0 LDAPException: Matched DN: at com.nov原创 2021-06-07 15:19:14 · 4116 阅读 · 0 评论 -
spring data 报错Failure while trying to resolve exception
错误信息: .w.s.m.s.DefaultHandlerExceptionResolver : Failure while trying to resolve exception [org.springframework.http.converter.HttpMessageNotWritableException]java.lang.IllegalStateException: Cannot call sendError() after the response has been committed使原创 2020-08-21 19:23:39 · 5344 阅读 · 0 评论 -
hashmap获取所有的key
public class MapKey { static HashMap<Object, Object> hashMap; static { hashMap = new HashMap<>(); hashMap.put(1, "name"); hashMap.put("na", "tackew"); hashMap.put("tom", "123"); hashMap.put(1121,原创 2020-05-27 19:28:04 · 3172 阅读 · 0 评论