12 2017 档案

摘要:项目 : 普通的Maven Java Web 项目 操作记录: 使用 Maven 构建项目,指令 tomcat7:run 无异常 但使用 eclipse 的 tomcat 运行项目,报此异常。 后面从tomcat删除了此项目,重新运行则不报错了。 不明白原因,记录。 异常全文: 十二月 27, 20 阅读全文
posted @ 2017-12-27 23:16 newXin 阅读(623) 评论(0) 推荐(0)
摘要:查看tomcat发布地址发现和项目名称不一致 如果直接拷贝项目,可能也需要修改此选项 解决方案: 经过排查发现了原因: 首先说明一下项目 Maven+SSM 需要使用到 maven tomcat 7 编译项目。 这个插件配置是直接从网上拷贝的 这个 <finalName>ssm</finalName 阅读全文
posted @ 2017-12-27 23:09 newXin 阅读(4458) 评论(0) 推荐(0)
摘要:SELECT COLUMN_NAME 列名, COLUMN_TYPE 数据类型, DATA_TYPE 字段类型, CHARACTER_MAXIMUM_LENGTH 长度, IS_NULLABLE 是否为空, COLUMN_DEFAULT 默认值, COLUMN_COMMENT 备注 FROM INF 阅读全文
posted @ 2017-12-27 14:48 newXin 阅读(429) 评论(0) 推荐(0)
摘要:水晶头 无凸起的一面往上放。 线颜色: 左-右 橙白、橙、绿白、蓝、蓝白、绿、棕白、棕 阅读全文
posted @ 2017-12-27 12:05 newXin 阅读(320) 评论(0) 推荐(0)
摘要:首先想到的是 样式的问题。 阅读全文
posted @ 2017-12-26 22:15 newXin 阅读(642) 评论(0) 推荐(0)
摘要: 阅读全文
posted @ 2017-12-26 19:41 newXin 阅读(1099) 评论(0) 推荐(0)
摘要: 阅读全文
posted @ 2017-12-26 16:53 newXin 阅读(179) 评论(0) 推荐(0)
摘要:<ehcache xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../config/ehcache.xsd" updateCheck="false"> <diskStore p 阅读全文
posted @ 2017-12-26 16:20 newXin 阅读(672) 评论(0) 推荐(0)
摘要:添加 <!-- end MyBatis使用ehcache缓存 --> <cache:annotation-driven cache-manager="cacheManager" /> xml 文件报错 报错: The prefix "cache" for element "cache:annotat 阅读全文
posted @ 2017-12-26 16:18 newXin 阅读(786) 评论(0) 推荐(0)
摘要:异常: 十二月 26, 2017 3:38:05 下午 org.apache.jasper.servlet.TldScanner scanJars 信息: At least one JAR was scanned for TLDs yet contained no TLDs. Enable debu 阅读全文
posted @ 2017-12-26 15:42 newXin 阅读(1132) 评论(0) 推荐(0)
摘要:异常 十二月 26, 2017 1:44:49 下午 org.apache.tomcat.util.digester.SetPropertiesRule begin 警告: [SetPropertiesRule]{Server/Service/Engine/Host/Context} Setting 阅读全文
posted @ 2017-12-26 13:46 newXin 阅读(359) 评论(0) 推荐(0)
摘要:异常: DEBUG [net.sf.ehcache.CacheManager@295af581] - Checking for update...DEBUG [net.sf.ehcache.CacheManager@295af581] - Update check failed: java.io.I 阅读全文
posted @ 2017-12-26 13:34 newXin 阅读(891) 评论(0) 推荐(0)
摘要:异常: org.springframework.beans.factory.CannotLoadBeanClassException: Cannot find class [org.springframework.cache.ehcache.EhCacheManagerFactoryBean] fo 阅读全文
posted @ 2017-12-26 13:30 newXin 阅读(563) 评论(0) 推荐(0)
摘要:异常如下: 十二月 26, 2017 1:24:44 下午 org.apache.jasper.servlet.TldScanner scanJars 信息: At least one JAR was scanned for TLDs yet contained no TLDs. Enable de 阅读全文
posted @ 2017-12-26 13:29 newXin 阅读(255) 评论(0) 推荐(0)
摘要:异常如下: 十二月 25, 2017 11:37:14 下午 org.apache.tomcat.util.digester.SetPropertiesRule begin警告: [SetPropertiesRule]{Server/Service/Engine/Host/Context} Sett 阅读全文
posted @ 2017-12-25 23:39 newXin 阅读(349) 评论(0) 推荐(0)
摘要:异常: 十二月 25, 2017 11:04:41 下午 org.apache.tomcat.util.digester.SetPropertiesRule begin 警告: [SetPropertiesRule]{Server/Service/Engine/Host/Context} Setti 阅读全文
posted @ 2017-12-25 23:06 newXin 阅读(1700) 评论(0) 推荐(0)
摘要:异常如下: [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 阅读(797) 评论(0) 推荐(0)
摘要: 阅读全文
posted @ 2017-12-25 18:48 newXin 阅读(162) 评论(0) 推荐(0)
摘要:该问题需要使用异常管理: <!-- 无权访问跳转的页面 --> <bean class="org.springframework.web.servlet.handler.SimpleMappingExceptionResolver"> <property name="exceptionMapping 阅读全文
posted @ 2017-12-25 09:04 newXin 阅读(19066) 评论(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 阅读(2812) 评论(0) 推荐(0)
摘要: 阅读全文
posted @ 2017-12-23 13:29 newXin 阅读(185) 评论(0) 推荐(0)
摘要:问题所在: 这一段配置,不要写在 SpringMVC 文件中,要写在 Spring 配置文件! <!-- kaptcha 验证码 --> <bean id="captchaProducer" class="com.google.code.kaptcha.impl.DefaultKaptcha"> < 阅读全文
posted @ 2017-12-19 19:16 newXin 阅读(2337) 评论(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 阅读(184) 评论(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 阅读(1300) 评论(0) 推荐(0)
摘要: 阅读全文
posted @ 2017-12-18 20:58 newXin 阅读(466) 评论(0) 推荐(0)
摘要:MSDN 我告诉你 https://msdn.itellyou.cn/ 阅读全文
posted @ 2017-12-15 09:27 newXin 阅读(140) 评论(0) 推荐(0)
摘要:File file = new File("D:\\javaClass\\image"); // 测试此抽象路径名表示的文件或目录是否存在。 // 当且仅当此抽象路径名表示的文件或目录存在时,返回 true;否则返回 false file.exists(); // 且仅当不存在具有此抽象路径名指定名称的文件时,不可分地创建一个新的空文件。 // 如果指定的文件不... 阅读全文
posted @ 2017-12-11 15:30 newXin 阅读(222) 评论(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 阅读(5949) 评论(0) 推荐(0)
摘要:因为 java 中所有类都继承自 Object,所以任何一个类都有默认的 equals 方法,但是只能判断两个对象是否引用。可根据自己的需求重载 equals 方法。例如 String 类就重写了 equals 方法。 基本功能:判断两个对象是否为引用 阅读全文
posted @ 2017-12-09 11:01 newXin 阅读(146) 评论(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 阅读(1003) 评论(0) 推荐(1)
摘要:/* 表单验证 */ var signupFormValidator = $("#signupForm").validate({ /* 自定义验证规则 */ rules : { originalPwd : { required : true, minlength : 6 }, newPwd : { required : t... 阅读全文
posted @ 2017-12-05 16:23 newXin 阅读(170) 评论(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 阅读(3681) 评论(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 阅读(1229) 评论(0) 推荐(0)