框架
Super_Cookies
s'z
展开
-
RedisTemplate一直为空
看了很多地方 发现都不是我的问题@Componentpublic class CountInterceptor implements HandlerInterceptor { @Resource(name = "stringRedisTemplate") StringRedisTemplate stringRedisTemplate; @Override public boolean preHandle(HttpServletRequest request, Http原创 2021-01-05 09:01:24 · 1603 阅读 · 1 评论 -
关于linux中redis不能连接远程服务器的问题
除了在网上搜的大部分都是调整配置文件的bind和保护配置之外 话要设置防火墙注册端口号1)执行firewall-cmd --permanent --zone=public --add-port=6379/tcp,提示FirewallD is not running2)尝试启动防火墙3)解除mask锁4)重新启动5)开启6379端口 标红说明成功了!!! 查了很久资料才成功 以下为我觉得最重要的方法https://www.cnblogs.com/rxbook/p/8110143.htm原创 2020-10-30 10:21:25 · 243 阅读 · 0 评论 -
在使用thymeleaf表达式时导致找不到引入的css样式的问题
在自己的configration类下重写addResourceHandlers类并且添加addResourceHandler将webjars下的请求映射到META-INF/resources/webjars/@Configurationpublic class myMvcConfig extends WebMvcConfigurationSupport{ @Override protected void addViewControllers(ViewControllerRegistry原创 2020-10-25 14:39:24 · 347 阅读 · 0 评论 -
关于JSP无法显示${pageScope.key1}域的值
是因为web.xml之中的版本声明太低 改成下面就好了<?xml version="1.0" encoding="UTF-8"?><web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://java.sun.com/xml/ns/javaee" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee htt原创 2020-10-16 10:58:47 · 239 阅读 · 0 评论 -
spring中添加xml文件时显示Module “xxx“ must not contain source root The root already belongs to module **这类错误
是因为上级模块或者工程包含了当前目录左边的位置把不属于上级模块的source或者Resource去掉就可以添加了原创 2020-10-10 20:03:42 · 802 阅读 · 0 评论