Golden Looly
Golden Looly
## Current behavior Hello, I found the class: [LRUCache](https://github.com/oblac/jodd/blob/master/jodd-core/src/main/java/jodd/cache/LRUCache.java) use `LinkedHashMap` and use read lock for get, but the `LinkedHashMap` `get` method is not thread safe, the element will move...
https://github.com/jeecgboot/autopoi/blob/d5f5a7e66ca7f09273386db791a616f299d4adcd/autopoi/src/main/java/org/jeecgframework/poi/util/PoiFunctionUtil.java#L44
This implementation contains a sign-extension bug in the finalization step of any bytes left over from dividing the length by 4. https://github.com/xlturing/Simhash4J/blob/master/src/main/java/bee/simhash/main/Murmur3.java#L62 fix please see: https://github.com/apache/commons-codec/blob/master/src/main/java/org/apache/commons/codec/digest/MurmurHash3.java#L397
文件:sdk.py # -_\- encoding: utf-8 -_- 应改为 # -_\- coding: utf-8 -_-
源码在这里: https://github.com/opensolon/solon/blob/main/__hatch/solon-boot-tomcat/src/main/java/org/noear/solon/boot/tomcat/TomcatServerBase.java 现在不支持HTTPS,Hutool在封装简单的Server门面时,做了实现,可以参考: https://github.com/dromara/hutool/blob/v6-dev/hutool-http/src/main/java/org/dromara/hutool/http/server/engine/tomcat/TomcatEngine.java#L125 懒得提PR了,哈哈,做个参考吧。 Hutool中所有HTTPS的启用都是基于`javax.net.ssl.SSLContext`的,在配置文件中,如果用户传入了这个对象,表示要启用HTTPS,则核心代码为: ```java final Http11NioProtocol protocol = new Http11NioProtocol(); protocol.setSSLEnabled(true); protocol.setSecure(true); protocol.addSslHostConfig(createSSLHostConfig(sslContext)); ``` createSSLHostConfig就是将`SSLContext`构建为`SSLHostConfig`。 tomcat本身提供了一个`org.apache.tomcat.util.net.SSLContext`,因此我弄了一个`JSSESSLContext`将javax的转为tomcat的(PS:tomcat真恶心……),tomcat本身也提供了一个`org.apache.tomcat.util.net.jsse.JSSESSLContext`,不能传`SSLContext`,只能传`KeyManager`之类的,因此我自己写了一个…… 希望对你有用。 > PS:Hutool-6.x在http模块中提供了一个简单的`ServerEngine`接口,用于提供http服务器的门面,类似solon中的`ServerLifecycle`,都是为了简化服务创建和启动差异,也参考了solon的很多实现,在此感谢~~