
eclipse
蟹蟹肉
快快快看看看
展开
-
tomcat启动报错:Address already in use: JVM_Bind
tomcat启动时出现Address already in use: JVM_Bind 的原因是因为端口被占用,有可能是因为多次启动tomcat或者启动了多个tomcat,或者是其他应用程序或者服务占用了。 错误日志如下:严重: StandardServer.await: create[8080]: java.net.BindException: Address already i...转载 2018-09-27 11:04:46 · 2474 阅读 · 0 评论 -
搭建SolrCloud: Error: Could not find or load main class org.apache.solr.cloud.ZkCLI
解决方法: 1、yum install -y unzip zip 2、在/root/solr-4.10.3/example目录下执行 java -jar start.jar 命令。 Ctrl+C或另打开一个连接窗口。 3、确保zookeeper集群已经启动...原创 2018-09-27 11:13:00 · 606 阅读 · 0 评论 -
后台报错: Error creating bean with name 'org.springframework.web.servlet.mvc.method.annotation.RequestMa
该异常表示@RequestMapping的注解中出现了重复,不能区分从哪个入口进入原创 2018-09-28 14:58:40 · 1250 阅读 · 0 评论 -
eclipse中,service locations 是灰色的,怎么修改
问题:想在service locations 中修改tomcat,但是双击tomcat后发现service locations是灰色的,无法修改。解决的办法是:1、先把tomcat下的项目移除掉2、然后右击 tomcat 点击 clean3、再次双击tomcat,就可以看到 service locations 下不是灰色的,可以修改了。...原创 2018-12-26 20:47:34 · 460 阅读 · 0 评论 -
Write operations are not allowed in read-only mode (FlushMode.MANUAL): Turn your Session into FlushM
当在修改用户操作的时候出现错误:Write operations are not allowed in read-only mode (FlushMode.MANUAL): Turn your Session into FlushMode.COMMIT/AUTO or remove 'readOnly' marker from transaction definition.原因是:只读模式...原创 2018-12-21 15:29:40 · 3163 阅读 · 0 评论 -
Illegal attempt to map a non collection as a @OneToMany, @ManyToMany or @CollectionOfElements: healt
使用SSH框架的时候:使用注解创建表格时出现错误:Illegal attempt to map a non collection as a @OneToMany, @ManyToMany or @CollectionOfElements: healt,是因为在对多对多或者一对多初始化对象的时候接收的类型不对:错误:正确: 【如果接着出现错误:】mapped...原创 2018-12-25 14:52:36 · 4214 阅读 · 0 评论 -
maven --在通过Controller后,return返回json到页面出现乱码
前提:(在windows--Preferences下的该设置的都已经设置成UTF-8了)return返回json到页面还是出现乱码:解决:添加:produces="text/html;charset=UTF-8"结果:...原创 2019-04-21 00:47:49 · 614 阅读 · 0 评论 -
maven pom.xml头文件报错:maven pom.xml Multiple annotations found at this line:...
右击项目,点击Build Path,点击Libraries,可以看到有很多jar包出错。解决:1、右键项目,选择maven,选择update project2、除默认选择外,再勾选Force Update of Snapshots/Releases,点击ok,等待maven依赖更新如果等待依赖的时间太长,可以自行在网上下载对应的jar包,放在本地仓库中。...原创 2019-04-20 11:07:10 · 911 阅读 · 0 评论 -
JDK12 的下载和没有jre的解决及环境配置
一、下载直接在官网上下载并点击安装即可,步骤省。jdk12下载中途已经没有跳出窗口下载jre的过程了,需要手动生成jre.二、没有jre的解决:1.cmd2.切换到jdk的安装目录,执行命令:bin\jlink.exe --module-path jmods --add-modules java.desktop --output jre三、环境配置:1....原创 2019-05-15 10:30:06 · 7699 阅读 · 5 评论