![](https://img-blog.csdnimg.cn/20201014180756927.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
Java
文章平均质量分 53
曾_坤
这个作者很懒,什么都没留下…
展开
-
第1天-ShardingSphere 源码阅读:运行example中的分库分表、读写分离、数据加密
1 分库分表与读写分离1 修改数据库配置:examples/shardingsphere-jdbc-example/sharding-example/sharding-raw-jdbc-example/src/main/resources/META-INF/sharding-readwrite-splitting.yaml改成自己的用户名和密码(需要改的地方有不少行,注意别漏改)examples/shardingsphere-jdbc-example/sharding..原创 2021-08-24 06:40:13 · 382 阅读 · 2 评论 -
Java并发编程-CountLatch
CountLatch的作用,是让其它线程执行完了再执行某个线程。就有点像老师组织学生春游的时候,会等所有的学生到齐了,才会出发。比如我在工作中用到这个知识点的时候是做一个类似于统计汇总的功能,需要封装四个查询接口,这四个接口是独立的,这时候就可以使用CountDownLatch,开4个线程并发地去调用这四个接口,主线程等待四个接口执行完了拿到结果之后才会将结果返回给前端。使用示例(转载于:http://www.cnblogs.com/dolphin0520/p/3920397.html)pub原创 2021-08-22 10:45:22 · 615 阅读 · 0 评论 -
RabbitMQ一Spring boot-An unexpected connection driver error occured
目录报错日志:解决方案以下为补充内容报错日志:java.net.SocketException: Socket Closed at java.net.SocketInputStream.socketRead0(Native Method) ~[na:1.8.0_275] at java.net.SocketInputStream.socketRead(SocketInputStream.java:116) ~[na:1.8.0_275] at java.net.原创 2021-08-07 06:19:45 · 518 阅读 · 0 评论 -
1、对象、空指针异常
1、发生了一件事:org.apache.catalina.core.StandardWrapperValve invoke 严重:Exceptionorg.springframework.web.util.NestedServletException: Request processing failed; nested exception is java.lang.Nu...原创 2019-11-29 10:33:20 · 211 阅读 · 0 评论 -
修改jsp编码方式
原创 2019-06-12 20:51:19 · 508 阅读 · 0 评论 -
Multiple annotations found at this line: - String cannot be resolved to a t
解决方案首先 右击该项目 - Build Path - Configure Build Path , 在 Libraries 选项下,会发现有个出错的jre Libraries,将其Remove掉。然后 右击该项目 - Build Path - Add Library, 选择JRE System Library,选择Workspace defaulr JRE(jdk1.6)(此前JDK已成...转载 2019-06-01 19:58:44 · 1567 阅读 · 1 评论 -
Could not calculate build plan: Plugin org.apache.maven.plugins:maven-resources-plugin:2.6 or one of
方法一:目单击右键,run as –> maven install【不行】方法二:在MyEclipse工程中创建web Project,会报一些包找不到,无法编译,pom.xml文件报错。对应的解决方案是在我们安装目录的conf\settings.xml文件中指定了本地仓库的具体位置,如下所示:<localRepository>D:\Repository\Maven3...转载 2019-06-19 16:27:23 · 491 阅读 · 0 评论 -
Multiple annotations found at this line: - cvc-complex-type.2.4.c: The matc
Multipleannotationsfoundatthisline:-cvc-complex-type.2.4.c:Thematchingwildcardisstrict,butnodeclarationcanbefoundforelement'dubbo:application'.-schema_reference.4:Failedtorea...转载 2019-06-22 15:43:33 · 4731 阅读 · 0 评论 -
maven No compiler is provided environment
https://blog.csdn.net/lslk9898/article/details/73836745转载 2019-06-22 15:47:53 · 103 阅读 · 0 评论 -
前端加载顺序
<!DOCTYPE html><html><head><meta charset="utf-8"><title>菜鸟教程(runoob.com)</title><script src="https://cdn.staticfile.org/jquery/1.10.2/jquery.min.js"><...原创 2019-07-15 21:53:54 · 362 阅读 · 0 评论 -
maven配置环境变量
MAVEN_HOME:G:\soft\idea-ssm\apache-maven-3.5.0-bin\apache-maven-3.5.0 是错的应该是:G:\soft\idea-ssm\apache-maven-3.5.0原创 2019-07-16 10:15:33 · 96 阅读 · 0 评论 -
wrapper | OpenSCManager failed - 拒绝访问。 (0x5)
使用管理员身份运行原创 2019-06-06 09:26:09 · 1998 阅读 · 0 评论 -
用Eclipse绘制类图、时序图
发生了一件事:论文中需要加入一些UML图,试用了网上的多种方法都没哟效果:提供的链接都不能用。我感觉:有点情绪。但其实:这并不是我的问题,不是我能控制的。平平淡淡的日子并不值得我追求,不断地遇到问题,解决问题才是。冷静分析一下为什么:1.我有没有操作失误:没有2.是不是一定要往这个方向走?考虑尝试其他的方法:知道怎么做,而自己有能力做到的事其实并不难,难的是自己不知道怎么做或者...转载 2019-05-13 14:44:43 · 3916 阅读 · 0 评论 -
The superclass "javax.servlet.http.HttpServlet" was not found on the Java Build Path
总结:1、右击web工程-》属性或Build Path-》Java Build Path->Libraries-> Add Libray...->Server Runtime -》Tomcat Server2、切换到Java Build Path界面中的Orader and Export,选择Tomcat。JavaWeb: 报错信息The superclass "...转载 2019-05-05 09:16:38 · 82 阅读 · 0 评论 -
Syntax error, parameterized types are only available if source level is 1.5 or greater
这个属于编译器版本的问题,解决方法:1、右击项目-->Properties-->Java Compiler-->去掉Use compliance from executeion enveronment··的复选框,将Compiler ··改为1.5以上2、Windows-->preferneces-->JAVA-->compiler-->右侧窗口"C...转载 2019-05-05 09:24:07 · 247 阅读 · 0 评论 -
Mac-使用nexus
1. 下载对应的安装包https://www.sonatype.com/oss-thank-you-mac-tgz或者:链接:https://pan.baidu.com/s/1f89vJQ2FEFnJv_osIo544g 密码:mx4x2.解压,我放到了:/Library/nexus/文 件夹下启动nexus在终端输入:/Library/nexus/nexus-3.16...原创 2019-05-08 11:41:06 · 343 阅读 · 0 评论 -
可复用的代码
XMLmybatis全剧配置文件<!DOCTYPE configuration PUBLIC "-//mybatis.org//DTD Config 3.0//EN" "http://mybatis.org/dtd/mybatis-3-config.dtd">mapper<!DOCTYPE mapper PUBLIC "-//mybatis...原创 2019-05-01 15:37:35 · 397 阅读 · 0 评论 -
Mac 下安装Tomcat
总结:将解压出来的文件重命名为Tomcat,移动至/Library下 在终端下输入以下指令:cd /Library/Tomcat/binls -al *.shchmod +x *.shls -al *.sh./startup.sh http://localhost:8080/./shutdown.shhttps://www.youtube.com/watc...转载 2019-05-01 14:26:56 · 88 阅读 · 0 评论 -
创建Maven项目时提示Invalid project description. OK C:\eclipse-workspace overlaps the workspace location
问题现象:创建Maven项目时提示Invalid project description.OK C:\eclipse-workspace overlaps the workspace location问题分析:创建项目,空的文件夹。问题原因:在创建项目时候 去掉了 use default workspace l...转载 2019-05-09 10:17:06 · 1608 阅读 · 0 评论 -
解决eclipse启动tomcat报错:Could not load the Tomcat server configuration at \Servers\Tomcat v6.0 Server at
解决方案总结:删除此服务器,重新选一个安装。原创 2019-05-06 17:19:01 · 1588 阅读 · 0 评论 -
Mac:Client does not support authentication protocol requested by server
Mac 不是windows发生了一件事:MyEclipse访问Mysql时:Client does not support authentication protocol requested by server使用了其他各种方面都不行。我感觉:今天就到这了,比较晚了,网速有点慢。冷静分析一下为什么:搜索策略不对:搜索关键词应该是最少关键词:搜索和点击的时候,并没有太在意是m...转载 2019-05-09 22:33:50 · 1897 阅读 · 2 评论 -
Could not calculate build plan: Plugin org.apache.maven.plugins:maven-resources-plugin:2.6 【已转存】
发生了一件事:Could not calculate build plan: Plugin org.apache.maven.plugins:maven-resources-plugin:2.6 or one of its dependencies could not be resolved: Failed to read artifact descriptor for org.apache....转载 2019-05-10 09:49:53 · 304 阅读 · 0 评论 -
Mac Access denied for user 'root'@'localhost'【已转存】
发生了一件事:在MyEclipse中运行项目,出现Access denied for user 'root'@'localhost' 尝试了方法:https://blog.csdn.net/lijilong_/article/details/70991809 ()里面的为shell中输入的命令,一定要输全包括;&等符号 第一步:苹果->系统偏好设置->最下...原创 2019-05-10 14:07:09 · 2076 阅读 · 1 评论 -
Unknown initial character set index '255' received from server. Initial client character set can be
发生了一件事:Unknown initial character set index '255' received from server. Initial client character set can be forced via the 'characterEncoding' property.我感觉:我已经习惯报错了。但其实:这是最后一个错误了,把这个错误改掉之后,就成功运行了。突...原创 2019-05-11 15:05:10 · 173 阅读 · 0 评论 -
editor does not contain a main type" 错误解决方法
在eclipse下运行一个java程序,但是出现"editor does not contain a main type"错误。后来是因为为的java程序没有放在src目录下,而是另外建立了一个文件夹,在那个文件夹下run程序就会出现前面所提示的错误。解决方法 是在src下创建一个package,包名可以同刚才的文件夹名,然后将java程序拷贝过去再run,这时就没有错误了。转载 2017-08-07 16:53:41 · 968 阅读 · 0 评论