spring框架
文章平均质量分 91
spring框架
zjjhwzl
这个作者很懒,什么都没留下…
展开
-
Reason: The elements [server.ssl.enabled-protocols[3]] were left unbound.
今天突然扫出漏洞来了,漏洞是ssl的 SSL/TLS 服务器瞬时 Diffie-Hellman 公共密钥过弱 引起的,上网搜索结果,但是这次网上的大神真的是往坑里带,说要在springboot的配置文件中添加配置如下(错误的配置):server.ssl.enabled-protocols[3]=TLSv1,TLSv1.1,TLSv1.2server.ssl.ciphers[10]=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256,TLS_ECDHE_RSA_WITH_AES.原创 2020-10-26 18:01:53 · 1680 阅读 · 0 评论 -
java.lang.NullPointerException at org.springframework.data.redis.core.Abstr... springboot整合redis报错
java.lang.NullPointerException at org.springframework.data.redis.core.Abstr... springboot整合redis以后向redis写入值突然报空指针异常我的tokenUtil类里的方法全部是用静态方法写的,网上有人说把@Autowiredprivate RedisTemplate<String, String> redisTemplate;里面的@Autowired更改为@Resource,但是我的问.原创 2020-08-21 23:08:32 · 1421 阅读 · 0 评论 -
ClassNotFoundException: io.netty.util.internal.logging.InternalLoggerFactory
Java的springboot整合redis,前面的时候引用没有问题,同样的配置类,但是今天使用springboot2.2.5.RELEASE的时候 ,项目启动突然就报错ClassNotFoundException: io.netty.util.internal.logging.InternalLoggerFactory折腾半天,引入下面的依赖,解决问题<dependency> <groupId>io.netty</groupId> <ar原创 2020-08-21 22:27:16 · 3105 阅读 · 0 评论 -
java Spring调试 ApplicationContext cannot be resolved to a type
今天开发过程中遇到了不能识别导入的Spring jar包的情况:ApplicationContext cannot be resolved to a type本人分析情况为两种:1.导入的包错误;2.本人遇到的情况,就是jre版本过高,将jre删除,然后重新导入相应的jre包...原创 2019-10-09 16:24:56 · 1779 阅读 · 0 评论 -
springboot错误: 找不到或无法加载主类
解决方案引用自https://www.cnblogs.com/wqsbk/p/8661141.html在目录下打开cmd的方法是找到目录,然后在路径框中输入cmd即可转载 2020-01-14 18:05:10 · 144 阅读 · 0 评论 -
记spring mvc中/和/*的区别
总结/和/*的区别:< url-pattern > / </ url-pattern > 不会匹配到*.jsp,即:*.jsp不会进入spring的 DispatcherServlet类 。< url-pattern > /* </ url-pattern > 会匹配*.jsp,会出现返回jsp视图时再次进入spring的Dispatcher...原创 2019-10-25 20:07:55 · 270 阅读 · 0 评论 -
Caused by: java.io.FileNotFoundException: class path resource [applicationContext] cannot be opened
要被自己蠢哭了导致异常的主要毛病是这样的:ApplicationContext ctx = new ClassPathXmlApplicationContext("applicationContext");应该改成:ApplicationContext ctx = new ClassPathXmlApplicationContext("applicationContext.xml"...原创 2019-10-21 01:26:27 · 1216 阅读 · 1 评论