学无先后,达者为师

网站首页 编程语言 正文

IDEA错误: 找不到或无法加载主类 com.atguigu.springcloud.EurekaServer7001_App

作者:Jothan Zhong 更新时间: 2024-01-09 编程语言

第一种方法:
可以手动点击maven中的compile编译一下,如下图:
在这里插入图片描述
第二种方法:
在pom.xml文件中加入编译插件:

<build>
	<plugins>
           <!-- 编译插件 -->
           <plugin>
               <artifactId>maven-compiler-plugin</artifactId>
               <!-- 插件的版本 -->
               <version>3.5.1</version>
               <!-- 编译级别 -->
               <configuration>
                   <source>1.8</source>
                   <target>1.8</target>
                   <!-- 编码格式 -->
                   <encoding>UTF-8</encoding>
               </configuration>
           </plugin>
	</plugins>
</build>
1234567891011121314151617

原文链接:https://blog.csdn.net/qq_43985303/article/details/135324742

  • 上一篇:没有了
  • 下一篇:没有了
栏目分类
最近更新