
Eclipse
孟夏草木长
程序
展开
-
eclipse中,Springboot项目打jar包时,静态资源没有打入jar包
1.以前静态资源是放在webapp中,然后打jar包,静态资源始终打不进jar包2.后来把静态页面放在了resources下面的templates里面,css、img、js放在了resources下面的static下面3.application.properties里面添加下面这句代码spring.resources.static-locations=classpath:/te...原创 2020-03-10 11:22:51 · 1917 阅读 · 0 评论 -
No compiler is provided in this environment. Perhaps you are running on a JRE rather than a JDK?
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.1:compile (default-compile) on project miweb: Compilation failure[ERROR] No compiler is provided in this environment...原创 2020-03-10 09:18:46 · 1809 阅读 · 0 评论 -
Eclipse中,将Maven项目打成jar包,然后放到服务器运行
1.打包pom.xml中packaging必须是jarcleanpackage-Dmaven.test.skip=true项目右击:Run As--->Mavenbuild设置完后,然后就项目右击:Run As--->Mavenbuild就可以了注:打完的包放在了项目所在文件夹的target里面2将生成的jar放到服务器你想要的位置中...原创 2019-11-20 17:38:19 · 1929 阅读 · 0 评论 -
移除maven dependencies里面的某个jar
找到要移除的jar,右击-->Maven-->Exclude Maven Artifact原创 2019-12-04 18:11:21 · 4350 阅读 · 0 评论 -
Description Resource Path Location Type Classpath entry org.eclipse.m2e.MAVEN2_CLASSPATH_CONTAINER w
Classpath entry org.eclipse.m2e.MAVEN2_CLASSPATH_CONTAINER will not be exported or published. Runtime ClassNotFoundExceptions may result. human-resources P/human-resources Classpath Dependency Val...原创 2019-12-03 10:41:57 · 1258 阅读 · 1 评论 -
Eclipse中,Maven install的时候报错:
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.7.0:compile (default-compile) on project jeesite-module-cms: Compilation failure[ERROR] No compiler is provided in this...原创 2019-11-22 09:51:23 · 715 阅读 · 0 评论 -
Eclipse中,No grammar constraints (DTD or XML Schema) referenced in the document.
解决:Window--->Preference--->XML--->XML Files--->Validation将右边的Warning改为Ignore二:或者加如下代码:<!DOCTYPE xml>原创 2019-11-21 09:13:29 · 3331 阅读 · 0 评论 -
Eclipse中,HTTP包找不到
解决:项目右键:build path ----->Configurebuild path -----> add library----->server runtime--->apache tomcat8.0就可以了原创 2019-11-19 11:06:11 · 482 阅读 · 0 评论 -
Eclipse中,项目下面没有Java Resources文件夹,也没有Maven Dependencies
1.项目右击 --> properties,找到左侧的Project Facets,勾选右侧的Dynamic Web Module ,去掉Utility Module前面的√然后在pom.xml中引入,就可以了<parent> <groupId>org.springframework.boot</groupId> ...原创 2019-11-18 21:05:08 · 8659 阅读 · 3 评论 -
Eclipse配置JDK
1.Window -> Preference选择自己的JDK原创 2019-10-15 09:13:03 · 270 阅读 · 1 评论 -
Eclipse上集成Maven
1.Window -> Preference,搜索Maven,找到Installations,然后Add,添加自己的Maven2.找到User Settings,选择修改好的Maven的Settings.xml配置,然后Apply原创 2019-10-15 09:08:17 · 118 阅读 · 0 评论 -
Eclipse上调整字体
1.Window -> Preference ,然后输入font,找到Colors and Fonts 再在右侧找到Basic下面的Text Font ,然后Edit原创 2019-10-15 09:02:38 · 164 阅读 · 0 评论