随笔分类 -  JAVA

上一页 1 2 3 下一页
JAVA - java11:NoClassDefFoundError: javax/activation/MimetypesFileTypeMap
摘要:错误描述: 之前是使用的java8,但是java9+对Java实行了模块化处理,有一些模块没有默认加载,所以在使用这些模块时,需要我们主动的引入。 错误信息:NoClassDefFoundError: javax/activation/MimetypesFileTypeMap。 注:笔者用的是jav 阅读全文
posted @ 2020-08-14 17:17 sunylat 阅读(709) 评论(0) 推荐(0)
Spring boot - IDEA实现热部署
摘要:学习目标 快速学会在项目中使用热部署插件运行项目,提高开发效率。 快速查阅 相关教程: IDEA快速入门教程(2018图文版) 专题阅读:《SpringBoot 布道系列》 具体步骤 注意:IDEA2022.1版本,只需下面的第一步和第四步就可以了,老版本的IDEA需要四个步骤全部完成。 一、开启I 阅读全文
posted @ 2020-08-12 22:12 sunylat 阅读(339) 评论(0) 推荐(0)
Maven - 配置好的配置文件!
摘要:这是我正在使用的已经配置好的配置文件: <?xml version="1.0" encoding="UTF-8"?> <!-- Licensed to the Apache Software Foundation (ASF) under one or more contributor license 阅读全文
posted @ 2020-08-12 21:49 sunylat 阅读(438) 评论(0) 推荐(0)
Spring boot - IDEA如何调试Spring boot工程
摘要:1、打开Run/Debug Configurations, 2、选择Spring Boot 下要进行debug调试的服务, 3、在VM options:的填写框中写入: -Xms512m -Xmx512m -Xmn164m -XX:MaxPermSize=250m -XX:ReservedCodeC 阅读全文
posted @ 2020-08-12 21:45 sunylat 阅读(5100) 评论(0) 推荐(0)
Maven - 安装、各种工具中的配置
摘要:介绍得非常详细的文章!! https://blog.csdn.net/huo920/article/details/82082403 https://blog.csdn.net/lovequanquqn/article/details/81627807 阅读全文
posted @ 2020-08-12 21:00 sunylat 阅读(97) 评论(0) 推荐(0)
Mybatis - Column 'status' in where clause is ambiguous
摘要:查询数据的时候提示错误: Column 'CREATE_TIME' in where clause is ambiguous 错误原因:查询语句是对多表数据联合查询,其它表中有相同字段! 解决方法:在出错字段前面加上表的别名即可! 参考: https://blog.csdn.net/iteye_89 阅读全文
posted @ 2020-08-12 15:27 sunylat 阅读(1069) 评论(0) 推荐(0)
JAVA - Maven的阿里源配置
摘要:由于Maven国内下载速度太慢,所以将仓库源换为国内 但大多帖子(我找到的所有帖子)提供的阿里仓库源只有Central或者Public源 而像Spring Boot项目大多依赖还是会从repo.spring.io下载,还是很慢 于是在一番搜索后,发现阿里官方仓库服务站点:https://maven. 阅读全文
posted @ 2020-08-05 22:41 sunylat 阅读(1049) 评论(0) 推荐(0)
Spring boot - 打印Mybatis的SQL语句
摘要:在Spring boot的配置文件中加入下面配置项,我当前是在开发状态中,所以配置文件是application-dev.properties,在里面加入: #打印mybatis的SQL语句 logging.level.com.basicData.api.mapper=debug 注意:com.bas 阅读全文
posted @ 2020-07-27 17:57 sunylat 阅读(526) 评论(0) 推荐(0)
JAVA - 解决:Java.lang.NoClassDefFoundError: javax/xml/bind/JAXBException
摘要:问题原因: 高版本的JDK中不包含javax.xml.bind包了! 解决方法: 1,如果是maven管理依赖,则在pom.xml中加入: <dependency> <groupId>javax.xml.bind</groupId> <artifactId>jaxb-api</artifactId> 阅读全文
posted @ 2020-07-19 13:52 sunylat 阅读(11796) 评论(1) 推荐(0)
Tomcat - web.xml的xml错误解决方法!!
摘要:错误信息: cvc-complex-type.2.4.a: Invalid content was found starting with element 'display-name'. One of '{"http://xmlns.jcp.org/xml/ns/javaee":servlet-cl 阅读全文
posted @ 2020-05-24 11:22 sunylat 阅读(1505) 评论(0) 推荐(0)
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 阅读(1095) 评论(0) 推荐(0)
Eclipse - 如何添加JUnit进行单元测试?
摘要:也许你会觉得奇怪,这难道还需要写一篇博客吗?我也不知道,但是随着Eclipse的进步,有些东西弄得确实和以前不一样,让人真的昨摸不透!! 其实Eclipse已经带了JUnit,我使用当前最新的Eclipse,从JUnit3到JUnit5都有,经过各种研究之后,发现它们都有,但是每次添加之后,在new 阅读全文
posted @ 2020-04-26 10:58 sunylat 阅读(1334) 评论(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 阅读(2872) 评论(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 阅读(299) 评论(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 阅读(1344) 评论(0) 推荐(0)

上一页 1 2 3 下一页