- 博客(20)
- 资源 (17)
- 收藏
- 关注
原创 MyEclipse - 通过Maven创建WebApp项目时,生成的项目名中总是包含Maven Webapp的问题
问题 创建Maven的项目选择WebApp项目时项目名中总是含有Maven Webapp字样方案在填写项目参数时,在Advanced中的Name template对应的输入框中填入入和Artifact Id即项目名一样的内容 ...
2018-08-27 23:40:48 351
原创 MyEclipse - Retrieving archetypes: has encountered a problem An internal error occurred during
一、异常弹框 Retrieving archetypes: has encountered a problem An internal error occurred during:"Retrieving archetypes:"二、解决办法 1. 首先去maven官网下载http://repo1.maven.org/maven2/archetype-catalog....
2018-08-27 23:40:46 792
原创 MyEclipse - Updating index central|http://central.maven.org/maven2/
一、问题 MyEclipse启动后一直 Updating indexes:Updating index central|http://central.maven.org/maven2/ 二、方案 Window --> Preferences --> Maven --> 去除Download repository index updates on sta...
2018-08-27 23:40:41 1763
原创 Struts - NotUtf8Exception: Not valid UTF8! byte Bf in state 0
一、异常 使用IE浏览器从页面传中文到action时,抛出该异常 二、方案 Jsp页面设置为UTF-8编码即可
2018-08-27 23:40:38 1863
原创 J2SE - Lombok自动生成实体方法的工具类库的使用
一、相关说明 Lombok是一个可以通过注解形式在编译源码的时候生成对应getter、setter、equals、hashcode、toString等方法的工具类库,帮助我们消除重复工作和简化相关代码 官方地址:https://projectlombok.org/;Github地址:https://github.com/rzwitserloot/lombok二、插件安装下载l...
2018-08-27 23:39:44 243
原创 J2SE - 关于Commons-Logging、Slf4j、Log4j、Logback的整理
一、Commons-Logging 是Apache提供的一个通用的日志接口。用户可以自由选择第三方的日志框架如Log4j作为具体实现。Commons-Logging通过动态查找的机制,在程序运行时自动找出真正使用的日志库。好处就是代码依赖是Common-Logging而Log4j,避免了和具体的日志方案直接耦合import org.apache.commons.logging.Lo...
2018-08-27 23:39:41 323
原创 J2SE - Access restriction: The type XMLSerializer is not API (restriction on required library rt.jar
问题 使用 com.sun.org.apache.xml.internal.serialize.OutputFormat 生成XML时找不到这个类,显示受限制的rt.jar包方案 右键项目 --> properties --> java Build path --> Libraries -> 删除JRE System Library , 然后重新 a...
2018-08-27 23:39:38 344
原创 J2SE - Could not find the main class: xxx.xxx.Program will exit
问题 在Windows下,直接执行jar文件时,无法运行并报错 Could not find the main class: xxx.xxx.Program will exit 但在命令行下通过 java -jar jar_name.jar 命令可以运行 方案 系统开始装的是Jdk1.8,后开发需要装过Jdk1.6,但环境变量还是1.8的...
2018-08-27 23:39:36 498
原创 SSL - SSLHandshakeException: Unrecognized SSL message, plaintext connection?
一、异常日志 javax.net.ssl.SSLHandshakeException: SSL handshake failed. Caused by: javax.net.ssl.SSLException: Unrecognized SSL message, plaintext connection? at com.sun.net.ssl.internal.ss...
2018-08-27 23:38:47 2544
原创 SSL - SSLHandshakeException: unable to find valid certification path to requested target
一、异常日志javax.net.ssl.SSLHandshakeException Caused by: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target at sun.security.pro...
2018-08-27 23:38:36 1111
原创 SSL - SSLHandshakeException: No subject alternative names present
一、异常日志javax.net.ssl.SSLHandshakeException: Caused by: java.security.cert.CertificateException: No subject alternative names present at sun.security.util.HostnameChecker.matchIP(Unknown ...
2018-08-08 21:37:45 3983 2
原创 SSL - SSLHandshakeException: No subject alternative names matching IP address <ip> found
一、异常日志javax.net.ssl.SSLHandshakeException: Caused by: java.security.cert.CertificateException: No subject alternative names matching IP address 110.75.244.16 found at sun.security.util....
2018-08-08 21:37:37 25239 4
原创 MyBatis - java.sql.SQLException: 无效的列类型: 1111
异常org.springframework.jdbc.UncategorizedSQLException: Error setting null parameter. Most JDBC drivers require that the JdbcType must be specified for all nullable parameters. Caused b...
2018-08-08 21:36:47 3125
原创 MyBatis - java.sql.SQLSyntaxErrorException: ORA-00911: 无效字符
一、异常org.springframework.jdbc.BadSqlGrammarException: Error updating database. Caused by: java.sql.SQLSyntaxErrorException: ORA-00911: 无效字符 at oracle.jdbc.driver.SQLStateMapping.newSQLE...
2018-08-08 21:36:33 2700
原创 Spring - 配置文件中的classpath: 和 classpath*: 的区别
一、概念 classpath是指WEB-INF文件夹下的classes目录,对应源代码src目录,用于存放从src中拷贝过去的各种配置文件,以及编译过后的class文件。 classpath是spring的写法,Spring可以通过指定classpath*:与classpath:前缀加上路径的方式从classpath加载配置文件。二、区别 classpath:只会到...
2018-08-08 21:36:19 3105
原创 Spring - 获取ApplicationContext的几种方式
一、在Spirng容器初始化时保存ApplicationContext对象 1、通过ClassPathXmlApplicationContext加载,默认获取的是classes即源代码路径下的配置文件import org.springframework.context.support.ClassPathXmlApplicationContext; ApplicationCo...
2018-08-08 21:35:51 2363
原创 Jaxb - 生成带命名空间和节点前缀的Xml的方式
一、生成带命名空间的Xml Xml效果<Order xmlns="http://www.xl.com.cn/msg"> Java代码/*** Entity*/@XmlRootElement(name="Order", namespace="http://www.xl.com.cn/msg")public class Order{}二、声明带...
2018-08-08 21:33:25 7632
原创 Jaxb - com.sun.xml.bind.v2.runtime.IllegalAnnotationsException: 8 counts of IllegalAnnotationExcepti
一、异常com.sun.xml.bind.v2.runtime.IllegalAnnotationsException: 8 counts of IllegalAnnotationExceptions类的两个属性具有相同名称 "orderName" his problem is related to the following location: at public java.lan...
2018-08-08 21:33:23 6996 2
原创 J2SE - 在BAT中指定临时使用的JDK环境
# BAT开头指定临时的JDK set JAVA_HOME=C:/Develop/Jdk-1.6.0 set PATH=%JAVA_HOME%/bin;%JAVA_HOME%/jre/bin set CLASSPATH=.;%JAVA_HOME%/lib/dt.jar;%JAVA_HOME%/lib/tools.jar;ar;lib/run.jar # 执行Main方法 java...
2018-08-08 21:33:09 1969
原创 J2SE - JDK环境变量的说明和设置
一、说明 JAVA_HOME:指向Jdk的安装路径,Eclipse/NetBeans/Tomcat等软件就是通过搜索JAVA_HOME变量来找到并使用安装好的Jdk CLASSPATH:指定类的搜索路径,是javac编译器的一个环境变量,与import、package关键字有关,JVM就是通过CLASSPATH来寻找类的.class文件 PATH:指定命令的搜索路径,在命...
2018-08-08 21:33:05 280
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人