JAVA
xianshigudu
这个作者很懒,什么都没留下…
展开
-
Spring 随笔
//配置类==配置文件 @Configuration //告诉Spring这是一个配置类 @ComponentScan(value="com.springframework",excludeFilters= { @Filter(type=FilterType.ANNOTATION,classes= {Controller.class,Service.class}) }) ...原创 2018-08-25 20:24:27 · 248 阅读 · 0 评论 -
Spring Cloud中遇到的Error creating bean with name 'hystrixCommandAspect' defined in class path resource
Error starting ApplicationContext. To display the auto-configuration report re-run your application with ‘debug’ enabled.[2m2019-02-11 22:54:44.521[0;39m [31mERROR[0;39m [35m5060[0;39m [2m—[...原创 2019-02-11 23:59:16 · 2221 阅读 · 1 评论 -
Spring Boot的错误The Bean Validation API is on the classpath but no implementation could be found
之前我是直接全部删除org的springframework文件夹,这篇写着删除这三个文件夹,也可以。参考博文:https://blog.csdn.net/u012903926/article/details/79291739转载 2019-02-09 23:03:15 · 923 阅读 · 0 评论 -
JDK 1.6 和 1.8 中文api
JDK 1.6 https://blog.csdn.net/qq_42208305/article/details/82528173JDK 1.8 https://blog.csdn.net/weixin_37012881/article/details/80499067转载 2019-01-22 09:03:19 · 552 阅读 · 0 评论 -
Maven
命令行进入到pom.xml的文件目录,执行mvn compile,编译源码。添加依赖到pom文件之后,执行mvn package使用mvn archetype:generate,生成,命令如下:mvn archetype:generate -DgroupId=com.xxx.xxx -DartifactId=XXX -DarchetypeArtifactId=maven-archetype-...原创 2019-01-09 13:37:23 · 107 阅读 · 0 评论 -
查看rt.jar的源码方法,下载openjdk8源码方法
教程:https://blog.csdn.net/qq_30496695/article/details/80247850正确的openjdk8链接:https://www.imooc.com/article/71052转载 2018-09-29 12:48:45 · 2168 阅读 · 0 评论 -
Druid Mysql的坑
1、Mysql8.0版本记得在pom.xml中更新一下驱动版本,例如:<dependency> <groupId>mysql</groupId> <artifactId>mysql-connector-java</artifactId> <!--<scope>runtime</scope>--原创 2018-09-23 01:48:22 · 4859 阅读 · 0 评论 -
Spring Boot2的坑
https://blog.csdn.net/canon_in_d_major/article/details/79675033https://stackoverflow.com/questions/38413594/org-springframework-boot-web-support-does-not-exist转载 2018-09-15 17:31:31 · 409 阅读 · 0 评论 -
无法导入import org.apache.http.client.HttpClient;而自动导入sun.net.www.httpClient
今天在IDEA做项目时,需要导入import org.apache.http.client.HttpClient;而且我在pom.xml中已经了引入了依赖只是没有指定版本,查看了一下导入的jar包的版本org.apache.http.client.HttpClient.jar是4.5.3,然后疯狂地报错,找不到import org.apache.http.client.HttpClie...原创 2018-08-13 00:18:08 · 19946 阅读 · 9 评论 -
IDEA,Eclipse重命名文件时 提示 “指定的设备名无效”的解决办法
https://www.cnblogs.com/sixiweb/archive/2013/08/05/3238068.html转载 2018-08-13 09:30:44 · 586 阅读 · 0 评论 -
eclipse怎么新建resoures,IDEA怎么将一个目录转为java源文件,可以新建java.class
Eclipse:在src目录的main目录下新建一个resource目录,右键选择build path,选择Use as a source floder,就可以添加到上面了IDEA:新建多module的maven工程时,如果选择空模板,就只有src没有java文件夹,选择新建时,也没有java.class可选,所以,应该选择这里:再选择source:即可新建java.class类...原创 2018-08-13 13:03:38 · 2280 阅读 · 0 评论 -
c3p0学习-JdbcUtil工具类
https://www.cnblogs.com/jonny-xu/p/6374163.html转载 2018-09-10 15:13:45 · 320 阅读 · 0 评论 -
配置邮件服务器的错误
(1)将apache-james-3.0-beta4-app.zip安装到非中文,非空格目录下“D:\Server\apache-james-3.0-beta4-app” ;将“jaxb-impl-2.1.3.jar”拷贝到“.\apache-james-3.0-beta4-app\conf\lib\jaxb-impl-2.1.3.jar” ;JDK1.6不需要拷贝这个jar包;JDK1.7,1....原创 2019-02-20 20:36:43 · 1779 阅读 · 0 评论