日常问题记录
文章平均质量分 79
元澈
日月忽其不淹兮,春与秋其代序。
展开
-
Nginx配置
#usernobody;worker_processes1;#error_loglogs/error.log;#error_loglogs/error.lognotice;#error_loglogs/error.loginfo;#pidlogs/nginx.pid;events{worker_connections1024;}http{includem...原创 2021-01-08 00:41:25 · 225 阅读 · 0 评论 -
Jenkins执行shell重启tomcat
附shell源码 #!/bin/bashexport BUILD_ID=dontkillme #必须加TOMCATTHREAD=`ps aux | grep 'tomcat_user' | grep -v grep`if test -z "$TOMCATTHREAD"then echo "TOMCAT NOT START"else THREADLIST=(${TOM原创 2017-05-27 16:11:59 · 5727 阅读 · 1 评论 -
Mybatis在idea中错误:Invalid bound statement (not found)
1.项目在eclipse中可以正常运行2.IDEA的maven项目中,默认源代码目录下的xml等资源文件并不会在编译的时候一块打包进classes文件夹,而是直接舍弃掉。如果使用的是Eclipse,Eclipse的src目录下的xml等资源文件在编译的时候会自动打包进输出到classes文件夹。解决方法:将xml或properties文件 放到resource目录下注意使用ID原创 2017-06-26 20:23:24 · 351 阅读 · 0 评论 -
IntelliJ IDEA 使用SSH Terminal
1.首先确认SSH Remote Run已启用2.Tools->Start SSH session3.Edit credentials ,填写IP、端口、用户名、密码、check out 保存密码,再次登录还是需要输入这些信息,那么重点来了,下一步设置登录信息4.Tools->Deployment->Configuration,看图PS:类型一定选择SFTP,端口号原创 2017-06-09 15:11:55 · 20685 阅读 · 7 评论 -
Spring MVC The request sent by the client was syntactically incorrect
错误原因:form表单提交时日期转换出错 解决方法:controller添加如下代码@InitBinder public void initBinder(WebDataBinder binder) { SimpleDateFormat dateFormat = new SimpleDateFormat("yyyy-MM-dd"); dateFormat.setLenient原创 2015-12-03 16:10:47 · 294 阅读 · 0 评论 -
sec:authorize-url标签不生效问题
问题描述: 我这里的项目使用spring cloud+thymeleaf+spring security,使用的thymeleaf和spring security整合的标签,网上的解决方法很多,很简单 sec:authorize="hasRole('ROLE_ADMIN')" 标签可以生效,但是我想控制button的显示与隐藏,sec:authorize-url 无效,下原创 2017-07-20 10:18:53 · 2189 阅读 · 0 评论