04 2020 档案
MyBatis - 打印SQL语句
摘要:方法一: 在mybatis-config.xml中配置加一个setting <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE configuration PUBLIC "-//mybatis.org//DTD Config 3.0//EN" "http 阅读全文
posted @ 2020-04-28 16:01 sunylat 阅读(1078) 评论(0) 推荐(0) 编辑
Eclipse - 如何添加JUnit进行单元测试?
摘要:也许你会觉得奇怪,这难道还需要写一篇博客吗?我也不知道,但是随着Eclipse的进步,有些东西弄得确实和以前不一样,让人真的昨摸不透!! 其实Eclipse已经带了JUnit,我使用当前最新的Eclipse,从JUnit3到JUnit5都有,经过各种研究之后,发现它们都有,但是每次添加之后,在new 阅读全文
posted @ 2020-04-26 10:58 sunylat 阅读(1293) 评论(0) 推荐(0) 编辑
MyBatis - typeAliases不能正确解析问题的处理方法
摘要:Mybatis配置文件中使用typeAliases竟然报错,错误提示: the content of element type "configuration" must match "(properties?,settings?,typeAliases?,typeHandlers?,objectFa 阅读全文
posted @ 2020-04-25 21:18 sunylat 阅读(2819) 评论(0) 推荐(2) 编辑
JAVA - xml文件中配置JDBC源遇到问题 : The reference to entity "characterEncoding" must end with the ';' delimiter
摘要:数据源配置时加上编码转换格式后出问题了: The reference to entity"characterEncoding" must end with the ';' delimiter 这个错误就是 context.xml中设置数据源链接URL的问题 <context-param> <para 阅读全文
posted @ 2020-04-25 16:28 sunylat 阅读(289) 评论(0) 推荐(0) 编辑
Eclipse - JDK11开发Tomcat工程时候遇到的错误!!
摘要:错误信息: 严重: Exception starting filter [Tomcat WebSocket (JSR356) Filter] java.lang.NoClassDefFoundError: javax/xml/ws/WebServiceRef 错误截图: 错误原因:缺少jaxws-a 阅读全文
posted @ 2020-04-25 11:53 sunylat 阅读(1306) 评论(0) 推荐(0) 编辑
JAVA - JDK14的安装问题
摘要:今天卸载了JDK8,随后安装了 JDK14,但是配置完环境变量之后,还是不行,出现问题如下: Error: opening registry key 'Software\JavaSoft\Java Runtime Environment 最终确定原因,因为path环境变量中,有在新安装的JDK14前 阅读全文
posted @ 2020-04-24 12:27 sunylat 阅读(2605) 评论(0) 推荐(1) 编辑
Android - Android Studio 中 Could not GET 'https://maven.fabric.io/public/io/fabric/tools/gradle/maven-metadata.xml'
摘要:错误提示: Could not resolve io.fabric.tools:gradle:1.31.2 错误原因: maven库被挡住了! 解决方法: 1,在AS里面打开build.gradle文件。 2,修改"repositories"->"maven"->"url"值 url 'http:/ 阅读全文
posted @ 2020-04-07 12:10 sunylat 阅读(2234) 评论(0) 推荐(0) 编辑
Android - Android Studio 3.6.2中Gradle使用版本无法下载问题的解决!!
摘要:当你用Android studio 打开一个新项目(一般是下载的工程),可能会报错 Error:Connection timed out: connect. If you are behind an HTTP proxy, please configure the proxy settings ei 阅读全文
posted @ 2020-04-07 12:00 sunylat 阅读(3304) 评论(0) 推荐(0) 编辑