maven

   <build>
		<plugins>
			<plugin>
				<groupId>org.springframework.boot</groupId>
				<artifactId>spring-boot-maven-plugin</artifactId>
			</plugin>
			<!-- 指定JDK编译版本 -->
			<plugin>
				<groupId>org.apache.maven.plugins</groupId>
				<artifactId>maven-compiler-plugin</artifactId>
				<configuration>
					<source>1.8</source>
					<target>1.8</target>
					<encoding>UTF-8</encoding>
				</configuration>
			</plugin>
		</plugins>
  </build>

eclipse -> Run as -> Maven build..

spingboot 打包jar

然后在target下找到.jar文件

运行 java -jar xxx.jar

 

https://cloud.tencent.com/developer/support-plan?invite_code=jykf9t9jq2zu

相关文章:

  • 2021-06-20
  • 2022-01-05
  • 2021-06-30
  • 2021-06-30
  • 2021-07-03
  • 2022-01-29
  • 2021-12-25
猜你喜欢
  • 2022-12-23
  • 2021-09-27
  • 2021-10-25
  • 2021-04-13
  • 2021-09-24
  • 2021-12-31
  • 2022-12-23
相关资源
相似解决方案