亚洲在线久爱草,狠狠天天香蕉网,天天搞日日干久草,伊人亚洲日本欧美

為了賬號安全,請及時綁定郵箱和手機立即綁定

mvn jetty:run 運行出現錯誤

[INFO] Scanning for projects...

[INFO]

[INFO] ------------------------------------------------------------------------

[INFO] Building spring-mvc-study Maven Webapp 1.0-SNAPSHOT

[INFO] ------------------------------------------------------------------------

[INFO]

[INFO] >>> jetty-maven-plugin:9.2.2.v20140723:run (default-cli) @ spring-mvc-study >>>

[INFO]

[INFO] --- maven-resources-plugin:2.5:resources (default-resources) @ spring-mvc-study ---

[debug] execute contextualize

[WARNING] Using platform encoding (GBK actually) to copy filtered resources, i.e. build is platform dependent!

[INFO] Copying 1 resource

[INFO]

[INFO] --- maven-compiler-plugin:2.3.2:compile (default-compile) @ spring-mvc-study ---

[WARNING] File encoding has not been set, using platform encoding GBK, i.e. build is platform dependent!

[INFO] Compiling 5 source files to D:\Code\imooc\spring-mvc-study\target\classes

[INFO] -------------------------------------------------------------

[ERROR] COMPILATION ERROR :

[INFO] -------------------------------------------------------------

[ERROR] \Code\imooc\spring-mvc-study\src\main\java\com\imooc\mvcdemo\service\impl\CourseServiceImpl.java:[1,0] : ?class, interfaceenum

[INFO] 1 error

[INFO] -------------------------------------------------------------

[INFO] ------------------------------------------------------------------------

[INFO] BUILD FAILURE

[INFO] ------------------------------------------------------------------------

[INFO] Total time: 1.100s

[INFO] Finished at: Tue Mar 03 17:47:19 CST 2020

[INFO] Final Memory: 8M/229M

[INFO] ------------------------------------------------------------------------

[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:2.3.2:compile (default-compile) on project spring-mvc-study: Compilation failure

[ERROR] \Code\imooc\spring-mvc-study\src\main\java\com\imooc\mvcdemo\service\impl\CourseServiceImpl.java:[1,0] : ?class, interfaceenum

[ERROR] -> [Help 1]

[ERROR]

[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.

[ERROR] Re-run Maven using the -X switch to enable full debug logging.

[ERROR]

[ERROR] For more information about the errors and possible solutions, please read the following articles:

[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException


正在回答

1 回答

已解決

在pom.xml中添加

<dependency>
??<groupId>org.apache.maven.plugins</groupId>
??<artifactId>maven-compiler-plugin</artifactId>
??<version>2.3.2</version>
</dependency>

之后還會出現由于用IDEA打開eclipse java項目編譯時,出現以下錯誤:

Error:(1,?1)?java:?非法字符:?‘\ufeff’?
Error:(1,?10)?java:?需要class,?interface或enum

點擊指定的工程,右鍵,“Remove BOM”

0 回復 有任何疑惑可以回復我~

舉報

0/150
提交
取消
Spring MVC起步
  • 參與學習       195952    人
  • 解答問題       609    個

Java中Spring MVC框架入門教程,快來看最易用的MVC框架

進入課程

mvn jetty:run 運行出現錯誤

我要回答 關注問題
微信客服

購課補貼
聯系客服咨詢優惠詳情

幫助反饋 APP下載

慕課網APP
您的移動學習伙伴

公眾號

掃描二維碼
關注慕課網微信公眾號