- 博客(6)
- 收藏
- 关注
原创 【无标题】
Windows10下安装mysql8正常使用,某次断电重启后无法启动的问题1、使用场景:已正常使用很久,某次windows电脑断电重启,或者正常关机后,下次开机widnows,mysql服务无法启动,查看.error文件报错,类似如下The error means that another program is using InnoDB's files. This might be a backup or antivirus software or another instance of MySQL.
2022-02-10 10:22:12 957 1
原创 nginx配置proxy_cache_path之inactive和proxy_cache_valid对比
nginx配置proxy_cache_path之inactive和proxy_cache_valid对比https://stackoverflow.com/questions/64151378/nginx-cache-inactive-vs-proxy-cache-validhttps://serverfault.com/questions/583570/understanding-the-nginx-proxy-cache-path-directive/641572#641572上面是两个Stack
2021-03-24 11:32:36 5040 1
原创 springboot+thymeleaf页面跳转坑点小结
1、html中是用来thymeleaf标签,则必须要放在template目录下,否则不解析。同理如果使用了thymeleaf额外集成了shiro标签也一样,都是模板解析器解析就要放在temlpate下。2、地址解析器如果要使用通配符注意最好使用/**,/*只匹配这一级目录,/**匹配所有子目录及以下。3、th:src或者th:href使用@{},中间加不加“/”区别就在于@{/xxx.css}代表static目录下的xxx.css。而不加/会读取当前路径在拼接xxx.css。4、跳转地址写templa
2020-07-20 18:14:38 576
原创 springboot2.x整合shiro使用自定义过滤器解决session过期跳转login问题
1、问题出现原因:问题一:后台springboot+shiro,前端使用iframe版layui。由于是iframe版是前端页面跳转不经过后台,session过期不会引起重定向到login。部分跳转页面session过期后可以重定向。问题二:大量button事件触发走的ajax,返回的是login页面html形式的json串,解析有错误,显示parseerror。那么多ajax一个一个写错误重定向太麻烦不现实。2、解决方法:使用shiro自定义过滤器+前端设置全局的ajax过滤。3、首先,shiro
2020-07-20 14:08:37 1286 1
原创 springboot整合shiro到前端支持shiro标签的方法
第一步:两个依赖<!-- https://mvnrepository.com/artifact/org.apache.shiro/shiro-spring --><!-- springboot 集成shiro依赖--> <dependency> <groupId>org.apache.shiro</groupId> <artifactId>shiro-spring<
2020-07-17 14:24:46 939
原创 cronolog对tomcat的catalina.out进行切割(附踩过的坑)
1、环境:ubuntu 14.042、安装cronologtar zxvf cronolog-1.6.2.tar.gzcd cronolog-1.6.2./configure --prefix=/usr/local/cronologmake && make install包随便找找:https://files.cnblogs.com/files/crazyzero/cr...
2020-02-21 15:41:31 417 1
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人