#ed

《Redis入门指南》第2版 读书笔记

读第二遍了,感觉和几年前读时的收获不一样了。送上门来当树洞的独自承担一切Redis以简洁为美Redis通信协议是Redis客户端与Redis之间交流的语言,通信协议规定了命令和返回值的格式。Redis支持两种难住协议,一种是二进制安全的统一请求(unifiedrequestprotocal),另一种是比较直观的便于在t...

synchronized原理及优化,(自旋锁,锁消除,锁粗化,偏向锁,轻量级锁)

 偏向锁:不占用CPU自旋锁:占用CPU。代码执行成本比较低且线程数少时,可以使用。不经过OS。内核态,效率偏低 理解Java对象头与Monitor在JVM中,对象在内存中的布局分为三块区域:对象头、实例数据和对齐填充。如下:   实例变量:存放类的属性数据信息,包括父...

Spring方法级别数据校验:@Validated + MethodValidationPostProcessor

 org.springframework.boot.autoconfigure.validation.ValidationAutoConfiguration  org.springframework.validation.beanvalidation.MethodValidationPos...

版本不匹配引发的坑:javax.validation.UnexpectedTypeException: HV000030: No validator could be found for constraint

发现一个API报了错:javax.validation.UnexpectedTypeException:HV000030:Novalidatorcouldbefoundforconstraint'javax.validation.constraints.NotEmpty'validatingtype'java.lang...

ProceedingJoinPoint获取实现类接口上的注解

 使用aspectj处理拦截aop,需要获取实现类接口上的注解  publicObjectaround(ProceedingJoinPointpjp)throwsThrowable{longtime1=System.currentTimeMillis();StringclassName=p...

ToDoList--HttpMediaTypeNotSupportedException

 org.springframework.web.HttpMediaTypeNotSupportedException:Contenttype'application/x-www-form-urlencoded;charset=UTF-8'notsupportedatorg.springframework.w...

limits the number of elements in an IN predicate to 2100 entries.

org.hibernate.engine.jdbc.spi.SqlExceptionHelper131-[TxId:f68db5f5b-qmgnc^1561639897640^271530,SpanId:360544073895766848]Theincomingtabulardatastream(TDS)remote...

Feign发送Get请求时,采用POJO对象传递参数的最终解决方案 Request method 'POST' not supported (附带其余好几个坑)

yml:feign:httpclient:enabled:trueproperties:#feignfeign.httpclient.enabled=true <!--https://mvnrepository.com/artifact/io.github.openfeign/feign-httpcli...

Tomcat:A cookie header was received[xxxxxx] that contained an invalid cookie. That cookie will be ignored.

 搬运来源:https://blogs.yahoo.co.jp/dk521123/36721868.html*从Tomcat8,Cookie的解析已经符合RFC6265。*由于RFC6265不再接受以前允许的逗号分隔符(例如RFC2109)"Cookie:KEY1=VAL1,KEY2=VAL2"的格式被视为非...

getOutputStream() has already been called for this response

 错误日志里偶尔会有getOutputStream()hasalreadybeencalledforthisresponse这个错误最近发现了高概率复现条件,所以顺手解决了一下: 首先根据这个错误关键信息,得知是错误产生原因是response.getWriter()和response.getOutp...

node.js – 服务器端的客户端证书验证,DEPTH_ZERO_SELF_SIGNED_CERT错误

我正在使用节点0.10.26并尝试建立与客户端验证的https连接. 服务器代码: varhttps=require('https');varfs=require('fs');process.env.NODE_TLS_REJECT_UNAUTHORIZED="0";varoptions={key:f...

Error creating bean with name 'tomcatEmbeddedServletContainerFactory ' (or a BeanPostProcessor involved) returned null

 org.springframework.boot.autoconfigure.web.EmbeddedServletContainerAutoConfiguration$EmbeddedTomcatorg.springframework.boot.autoconfigure.web.EmbeddedServ...

使用WireShark分析使用RedisTemplate取不到值的问题

现象:使用JavaRedis客户端将数据存放到Redis后,使用redisTemplate却不出来原因:JavaRedis客户端在将数据存放在Redis时,会对Key,Value,Field进行编码。从Redis中取数据时,如果Key、Field的编码和存放时不一样,就会取不出来。就像中文乱码一样,同样的中文字符串,存...

表达式拼接Expression<Func<IEntityMapper, bool>> predicate

///<summary>///重写以筛选出当前上下文的实体映射信息///</summary>protectedoverrideIEnumerable<IEntityMapper>EntityMappersFilter(IEnumerable<IEntityMapper>e...

trace enabled

<system.web><traceenabled="true"localOnly="true"pageOutput="true"/>...
代码星球 代码星球·2020-04-04
首页上一页...750751752753754...下一页尾页