Maven项目强制更新,解决Failed to read artifact descriptor for xxx.jar问题
摘要:导入的maven项目pom.xml现红叉 分析原因:在maven本地仓库中找不到相应的jar包。 解决方案:让maven强制更新依赖。 项目右击菜单,Maven -> Update Project... (eclipse快捷键为:Alt + F5) 打开Update Maven Project对话框
阅读全文
posted @
2018-06-03 16:21
god with us
下载安装 STS(Spring Tool Suite),推荐对应 Eclipse 版本号,适用于Windows32位(xp、2003)
摘要:sts下载地址:https://spring.io/tools/sts/legacy 虽然sts内置了版本对应的eclipse,仍推荐使用当前环境下稳定使用的eclipse版本。 Start 找到eclipse的版本号,例如:Mars2对应的eclipse版本号为4.5.2 打开sts下载站点(ht
阅读全文
posted @
2018-05-29 16:13
god with us
eclipse 启动 闪退
摘要:eclipse启动闪退 打开eclipse安装文件夹中的eclipse.ini文件。 把Xmx1024m修改为Xmx512m,可以解决闪退问题。
阅读全文
posted @
2018-05-29 14:12
god with us
eclipse工作区(workspace)常用设置(preferences)
摘要:切换工作区 新建一个作为工作区的文件夹 File -> Switch Workspace -> Other... -> browse,定位到新的指定工作区文件夹即可。 切换到新的工作区,eclipse会重启,显示welcome页。 通过eclipse菜单Window -> Preferences打开
阅读全文
posted @
2018-04-19 23:56
god with us
springmvc启动时报错:找不到类ContextLoaderListener:java.lang.ClassNotFoundException: org.springframework.web.context.ContextLoaderListener
摘要:严重: Error configuring application listener of class org.springframework.web.context.ContextLoaderListenerjava.lang.ClassNotFoundException: org.springf
阅读全文
posted @
2018-04-17 00:42
god with us
tomcat7修改tomcat-users.xml文件,但服务器重启后又自动还原了。
摘要:tomcat7配置用户管理权限,修改tomcat-users.xml文件 在%tomcat%目录中找到/conf/tomcat-users.xml,修改 <tomcat-users> <role rolename="manager-gui"/> <user username="tomcat" pas
阅读全文
posted @
2018-04-11 00:01
god with us
阅读(533)
推荐(0)
eclipse,import,导入项目显示红色叹号
摘要:【场景】eclipse导入项目后,该项目出现红色叹号。打开类文件,会有无数的“The type ... cannot be resolved.”等稀奇古怪的编译错误。 【分析】当前eclipse环境中找不到项目引用的类库。 【解决】重新引用类库,JRE System Library也会出此错误,重新
阅读全文
posted @
2017-02-08 22:45
god with us
阅读(2199)
推荐(0)
Java,AWTUtilities,eclipse报编译错误:Access restriction: The type 'AWTUtilities' is not API (restriction on required library 'C:\Program Files\Java\jre7\lib\rt.jar')
摘要:【场景】调用com.sun.awt.AWTUtilities时,eclipse提示编译错误: Access restriction: The type 'AWTUtilities' is not API (restriction on required library 'C:\Program Fil
阅读全文
posted @
2017-02-08 13:31
god with us
阅读(2372)
推荐(0)
eclipse技巧,快捷键
摘要:eclipse工作区切换 菜单:File->Switch WorkSpace->other... eclipse启动闪退 打开eclipse安装文件夹中的eclipse.ini文件。 把Xmx1024m修改为Xmx512m,可以解决闪退问题。 快捷键: ctrl + 1,快速修复 ctrl + d,
阅读全文
posted @
2016-11-11 00:11
god with us
eclipse中jsp文档无语法着色,安装Eclipse Java Web Developer Tools插件
摘要:一、安装Eclipse Java Web Developer Tools插件 1、eclipse菜单:help/install New Software,打开Available Software窗体; 2、Available Software窗体:Work with下拉框中选择mars - http
阅读全文
posted @
2016-11-10 23:54
god with us
阅读(2297)
推荐(0)
为eclipse添加tomcat插件(eclipse tomcat plugin)
摘要:打开站点:http://marketplace.eclipse.org/content/eclipse-tomcat-plugin 把Install拖到打开的eclipse的工作区中,即可下载安装。 安装后eclipse将重启,重新打开后可见工具栏上出现Tomcat的三个控制按钮: 随后,您需要配置
阅读全文
posted @
2016-11-10 22:11
god with us
阅读(22064)
推荐(0)