摘要: 自定义枚举1: 注意构造函数是必须的并且是私有的,还有其中的value是必须的。上面是自定义的。 自定义枚举2: 阅读全文
posted @ 2019-01-24 09:24 echo314 阅读(434) 评论(0) 推荐(0) 编辑
摘要: 导包:jedis / spring-data-redis 注意缓存穿透问题及缓存穿透解决办法 需要 关闭Linux防火墙、将redis的配置文件中的protected-mode改为no,其Linux命令为:config set protected-mode no(进入配置文件命令:config ge 阅读全文
posted @ 2019-01-18 12:12 echo314 阅读(1622) 评论(0) 推荐(0) 编辑
摘要: 导包:shiro-core \ shiro-spring \shiro-web \ commons-logging 官网可以找到配置文件模板,还有数据库建表,需要按要求建表(三个) 1.spring-shiro.xml 2.web.xml 阅读全文
posted @ 2019-01-18 11:51 echo314 阅读(2938) 评论(0) 推荐(0) 编辑
摘要: 1.建立war包 2.将war包(再target目录下)放在Linux上tomcat中的webapps目录下(可以通过SSH客户端操作),运行tomcat,会自动解压war包生成项目。 3.建立数据库:打开数据库,右击目标数据库——转储SQL文件——结构和数据,生成目标数据库的sql格式文件,将它放 阅读全文
posted @ 2019-01-17 09:29 echo314 阅读(3270) 评论(0) 推荐(0) 编辑
摘要: 除了要注意子网掩码、网关等的修改,更要注意将/etc/resolv.conf中的地址改为自己设置的静态ip,否则不能连上网 阅读全文
posted @ 2019-01-15 20:56 echo314 阅读(313) 评论(0) 推荐(0) 编辑
摘要: 栗子:window.location.href="price.jsp?total="+sum+"&deviceId="+deviceId; 阅读全文
posted @ 2019-01-11 20:03 echo314 阅读(147) 评论(0) 推荐(0) 编辑
摘要: ${pageContext.request.contextPath}是JSP取得绝对路径的方法,等价于<%=request.getContextPath()%> , 也就是取出部署的应用程序名或者是当前的项目名称 阅读全文
posted @ 2019-01-03 09:30 echo314 阅读(120) 评论(0) 推荐(0) 编辑
摘要: 注意 1.类上面需要加两个注解 2:Caused by: java.lang.IllegalStateException: SpringJUnit4ClassRunner requires JUnit 4.12 or higher.举个栗子 1 package com.qianfeng.test; 2 3 import com.qianfeng.restfull.beans.... 阅读全文
posted @ 2018-12-28 20:57 echo314 阅读(180) 评论(0) 推荐(0) 编辑
摘要: 1 2 12 13 14 15 16 17 18 19 20 21 22 23 24 25 --> 26 --> 27 28 29 ... 阅读全文
posted @ 2018-12-28 20:37 echo314 阅读(323) 评论(0) 推荐(0) 编辑
摘要: 1 <?xml version="1.0" encoding="UTF-8" ?> 2 <!DOCTYPE mapper 3 PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" 4 "http://mybatis.org/dtd/mybatis-3-mapper. 阅读全文
posted @ 2018-12-28 20:31 echo314 阅读(289) 评论(0) 推荐(0) 编辑