摘要: 异常如下: [INFO] Scanning for projects...[INFO] [INFO] [INFO] Building ssm 0.0.1-SNAPSHOT[INFO] [INFO] [INFO] >>> tomcat7-maven-plugin:2.1:run (default-cl 阅读全文
posted @ 2017-12-25 21:52 newXin 阅读(765) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2017-12-25 18:48 newXin 阅读(153) 评论(0) 推荐(0) 编辑
摘要: 该问题需要使用异常管理: <!-- 无权访问跳转的页面 --> <bean class="org.springframework.web.servlet.handler.SimpleMappingExceptionResolver"> <property name="exceptionMapping 阅读全文
posted @ 2017-12-25 09:04 newXin 阅读(18894) 评论(1) 推荐(0) 编辑
摘要: 解决方案: pom 文件添加: <!-- 解决shiro注解(shiro 使用 aop) --> <dependency> <groupId>aspectj</groupId> <artifactId>aspectjweaver</artifactId> <version>1.5.4</versio 阅读全文
posted @ 2017-12-25 09:02 newXin 阅读(2794) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2017-12-23 13:29 newXin 阅读(181) 评论(0) 推荐(0) 编辑
摘要: 问题所在: 这一段配置,不要写在 SpringMVC 文件中,要写在 Spring 配置文件! <!-- kaptcha 验证码 --> <bean id="captchaProducer" class="com.google.code.kaptcha.impl.DefaultKaptcha"> < 阅读全文
posted @ 2017-12-19 19:16 newXin 阅读(2294) 评论(0) 推荐(0) 编辑
摘要: 注意 jar 包路径,和版本号 mvn install:install-file -Dfile=E:\ChromeBox\box\kaptcha-2.3.2\kaptcha-2.3.2.jar -DgroupId=com.google.code -DartifactId=kaptcha -Dvers 阅读全文
posted @ 2017-12-19 18:38 newXin 阅读(175) 评论(0) 推荐(0) 编辑
摘要: <dependencies><dependency><groupId>javax.servlet</groupId><artifactId>servlet-api</artifactId><scope>provided</scope><version>2.5</version></dependenc 阅读全文
posted @ 2017-12-19 09:13 newXin 阅读(1289) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2017-12-18 20:58 newXin 阅读(459) 评论(0) 推荐(0) 编辑
摘要: MSDN 我告诉你 https://msdn.itellyou.cn/ 阅读全文
posted @ 2017-12-15 09:27 newXin 阅读(130) 评论(0) 推荐(0) 编辑
摘要: File file = new File("D:\\javaClass\\image"); // 测试此抽象路径名表示的文件或目录是否存在。 // 当且仅当此抽象路径名表示的文件或目录存在时,返回 true;否则返回 false file.exists(); // 且仅当不存在具有此抽象路径名指定名称的文件时,不可分地创建一个新的空文件。 // 如果指定的文件不... 阅读全文
posted @ 2017-12-11 15:30 newXin 阅读(214) 评论(0) 推荐(0) 编辑
摘要: public static void main(String[] argv) {// 使用默认时区和语言环境获得一个日历Calendar cale = Calendar.getInstance();// 将 Calendar 类型转换成 Date 类型Date tasktime = cale.get 阅读全文
posted @ 2017-12-11 15:07 newXin 阅读(5905) 评论(0) 推荐(0) 编辑
摘要: 因为 java 中所有类都继承自 Object,所以任何一个类都有默认的 equals 方法,但是只能判断两个对象是否引用。可根据自己的需求重载 equals 方法。例如 String 类就重写了 equals 方法。 基本功能:判断两个对象是否为引用 阅读全文
posted @ 2017-12-09 11:01 newXin 阅读(135) 评论(0) 推荐(0) 编辑
摘要: 网上看了一些使用异或交换两数,不是很好理解。现在写一下自己的理解。 首先是 异或原则,对于任意 x: x ^ x == 0; x ^ 0 == x; 思路: 根据原则,可以得到两个公式: 求a: a^b^a=b 求b: a^b^b=a 交换两个数: 定义两个数:a b a = a ^ b; // 保 阅读全文
posted @ 2017-12-07 14:32 newXin 阅读(983) 评论(0) 推荐(1) 编辑
摘要: /* 表单验证 */ var signupFormValidator = $("#signupForm").validate({ /* 自定义验证规则 */ rules : { originalPwd : { required : true, minlength : 6 }, newPwd : { required : t... 阅读全文
posted @ 2017-12-05 16:23 newXin 阅读(154) 评论(0) 推荐(0) 编辑
摘要: 解决方案: 添加 commons-fileupload-1.2.jar <!-- https://mvnrepository.com/artifact/commons-fileupload/commons-fileupload --><dependency> <groupId>commons-fil 阅读全文
posted @ 2017-12-05 09:59 newXin 阅读(3624) 评论(0) 推荐(0) 编辑
摘要: maven聚合工程子项目无法构建:父工程未 install <dependency> <groupId>javax.servlet</groupId> <artifactId>servlet-api</artifactId> <version>2.5</version> <scope>provide 阅读全文
posted @ 2017-12-04 11:00 newXin 阅读(1219) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2017-11-30 22:00 newXin 阅读(387) 评论(0) 推荐(0) 编辑
摘要: 和搜狗输入法快捷键冲突! 阅读全文
posted @ 2017-11-30 21:47 newXin 阅读(214) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2017-11-30 21:47 newXin 阅读(149) 评论(0) 推荐(0) 编辑