- 博客(14)
- 收藏
- 关注
原创 MySQL: Client does not support authentication protocol requested by server
因为版本不一致use mysqlALTER USER 'root'@'%' IDENTIFIED WITH mysql_native_password BY '密码';
2021-01-22 15:57:37
166
原创 使用thymeleaf模板根据当前路径动态动态更改样式
前提在使用多个界面时 因为有很多一样的界面 例如 上下框 搜索框 所以会提取一个commons界面 但是不同的界面不同的标题高亮的标签 则需要通过判断当前路径 则通过以下方法th:classappend="${#strings.contains(#httpServletRequest.requestURL,'types')} ? 'active':''"通过判断有没有包括某个字符串来判断是否添加激活状态...
2021-01-20 14:52:30
726
原创 RedisTemplate一直为空
看了很多地方 发现都不是我的问题@Componentpublic class CountInterceptor implements HandlerInterceptor { @Resource(name = "stringRedisTemplate") StringRedisTemplate stringRedisTemplate; @Override public boolean preHandle(HttpServletRequest request, Http
2021-01-05 09:01:24
1697
1
原创 java.io.FileNotFoundException: C:\Users\Administrator\AppData\Local\Temp
是springboot在使用transferTo方法的时候的错误改成:导入maven<dependency> <groupId>commons-io</groupId> <artifactId>commons-io</artifactId> <version>2.5</version></dependency>FileUtils.copyInputStreamToFile(he
2020-12-30 10:29:02
8334
原创 mybatis.config-location=classpath*:/mybatis/*.xml 无法使用
同时导入了mybatis-plus和mybatis 不能使用mybatis.config-location=classpath*:/mybatis/*.xml只能使用mybatis-plus配置文件mybatis-plus: mapper-locations: classpath*:/mybatis/*.xmlhttps://blog.youkuaiyun.com/qq920447939/article/details/83988676...
2020-12-29 17:15:34
1047
1
原创 SpringBoot使用@MatrixVariable
1:实现WebMvcConfigurer实现configurePathMatch方法@Overridepublic void configurePathMatch(PathMatchConfigurer configurer) { UrlPathHelper urlPathHelper = new UrlPathHelper(); //不移除后面的变量 是的矩阵变量功能可以使用 urlPathHelper.setRemoveSemicolonContent(false);
2020-12-26 11:32:06
299
原创 关于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
267
原创 在使用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
375
原创 org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter
大部分愿意是因为导入的包的版本问题我是把jackson的包换成了高版本的就没有报错了
2020-10-20 10:20:37
833
原创 关于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
274
原创 spring中添加xml文件时显示Module “xxx“ must not contain source root The root already belongs to module **这类错误
是因为上级模块或者工程包含了当前目录左边的位置把不属于上级模块的source或者Resource去掉就可以添加了
2020-10-10 20:03:42
866
原创 关于页面使用base标签导致样式丢失的问题
当我使用base标签后 后面的相对路径是根据base标签来获取路径的 所以一定要看清实在哪个目录下 看不出来的话就运行工程通过f12来获取哪个样式除了问题 从而来具体的改 我建议base标签写到当前目录<base href="http://localhost:8080/book2/pages/user/login.html">...
2020-08-17 11:33:31
394
原创 2020-08-15
```15-Aug-2020 20:29:47.005 信息 [http-nio-8080-exec-7] org.apache.catalina.core.ApplicationContext.log 将servlet[registrationServlet]标记为不可用15-Aug-2020 20:29:47.005 严重 [http-nio-8080-exec-7] org.apache.catalina.core.StandardWrapperValve.invoke 分配异常的servlet [
2020-08-15 20:50:27
338
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人