2017年12月20日

spring boot项目打包成war并在tomcat上运行的步骤(转载)

摘要: 一、修改打包形式在pom.xml里设置 war二.修改启动类,并重写初始化方法我们平常用main方法启动的方式,都有一个App的启动类,代码如下:@SpringBootApplicationpublic class Application { public static void main(String[] args) { SpringApplication.run... 阅读全文

posted @ 2017-12-20 19:48 丛林摄影狮 阅读(117) 评论(0) 推荐(0) 编辑

2017年12月7日

ORACLE——ROWNUM解析(使用ROWNUM大于条件,无法得到任何查询结果)(转载)

摘要: 标题:Oracle中的rownum不能使用大于>的问题转自网络,稍做修改:一、对rownum的说明 关于Oracle 的 rownum 问题,很多资料都说不支持SQL语句中的“>、>=、=、between...and”运算符,只能用如下运算符号“、>=、=、between..and”时会提示SQL语法错误,而是经常是查不出一条记录来,还会出现似乎是莫名其妙的结果来。 其实,只要理解好了这个... 阅读全文

posted @ 2017-12-07 10:30 丛林摄影狮 阅读(409) 评论(0) 推荐(0) 编辑

2017年11月20日

Spring 解决Circular view path 问题

摘要: 未添加依赖 org.springframework.boot spring-boot-starter-thymeleaf 阅读全文

posted @ 2017-11-20 14:25 丛林摄影狮 阅读(256) 评论(0) 推荐(0) 编辑

2017年9月5日

centos7 用户和用户组

摘要: 用户列表文件:/etc/passwd用户组列表文件:/etc/group查看系统中有哪些用户:cut -d : -f 1 /etc/passwd查看可以登录系统的用户:cat /etc/passwd | grep -v /sbin/nologin | cut -d : -f 1查看用户操作:w命令(需要root权限)查看某一用户:w 用户名查看登录用户:who查看用户登录历史记录:last 阅读全文

posted @ 2017-09-05 20:02 丛林摄影狮 阅读(202) 评论(0) 推荐(0) 编辑

2017年9月1日

<!-- org.apache.ibatis.transaction.TransactionException: Error configuring AutoCommit -->

摘要: 阅读全文

posted @ 2017-09-01 16:59 丛林摄影狮 阅读(201) 评论(0) 推荐(0) 编辑

2017年8月30日

spring rememberme safari 不起做作用 出现Invalid remember-me token (Series/token) mismatch. Implies previous cookie theft attack

摘要: Just so that we are on the same page I will first take a minute to explain how I understand this persistent token mechanism to work.Starting from scratch (no entries in the persistent_logins table):On... 阅读全文

posted @ 2017-08-30 19:16 丛林摄影狮 阅读(1136) 评论(0) 推荐(0) 编辑

2017年8月29日

spring security rememberme 配置好后不起作用

摘要: 如果发现System.out.println(this.getClass() + ": login:" + SecurityContextHolder.getContext().getAuthentication().getName()); System.out.println(this.getClass() + ": login:" + SecurityContextHolder... 阅读全文

posted @ 2017-08-29 20:19 丛林摄影狮 阅读(625) 评论(0) 推荐(0) 编辑

2017年8月26日

centos7.2 启动卡在部署 manager 上 -Djava.security.egd=file:/dev/./urandom

摘要: 将$JAVA_HOME/jre/lib/security/Java.security内,将securerandom.source的内容改为file:/dev/./urandom即可 Linux或者部分unix系统提供随机数设备是/dev/random 和/dev/urandom ,两个有区别,ura 阅读全文

posted @ 2017-08-26 20:27 丛林摄影狮 阅读(3244) 评论(0) 推荐(0) 编辑

2017年8月24日

Thymeleaf &报错

摘要: 用&amp; 阅读全文

posted @ 2017-08-24 16:58 丛林摄影狮 阅读(246) 评论(0) 推荐(0) 编辑

2017年8月22日

thymeleaf th:each 获取索引

摘要: userStat是状态变量,有 index,count,size,current,even,odd,first,last等属性,如果没有显示设置状态变量,thymeleaf会默 认给个“变量名+Stat"的状态变量。 阅读全文

posted @ 2017-08-22 12:01 丛林摄影狮 阅读(1356) 评论(0) 推荐(0) 编辑

导航