spring项目跑起来,只需要spring-context这1个依赖项就行,参考下面:

 一、pom.xml

 1 <?xml version="1.0" encoding="UTF-8"?>
 2 <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
 3          xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd">
 4     <modelVersion>4.0.0</modelVersion>
 5 
 6     <groupId>com.cnblogs.yjmyzz</groupId>
 7     <artifactId>spring-boot-demo</artifactId>
 8     <version>0.0.1-SNAPSHOT</version>
 9 
10     <properties>
11         <java.version>1.8</java.version>
12     </properties>
13 
14     <dependencies>
15         <dependency>
16             <groupId>org.springframework</groupId>
17             <artifactId>spring-context</artifactId>
18             <version>5.2.4.RELEASE</version>
19         </dependency>
20     </dependencies>
21 
22     <build>
23         <plugins>
24             <plugin>
25                 <artifactId>maven-compiler-plugin</artifactId>
26                 <version>3.1</version>
27                 <configuration>
28                     <source>1.8</source>
29                     <target>1.8</target>
30                 </configuration>
31             </plugin>
32         </plugins>
33     </build>
34 
35 </project>
View Code

相关文章:

  • 2021-07-02
  • 2022-01-27
  • 2021-07-02
  • 2021-04-19
  • 2021-05-08
  • 2022-01-20
  • 2022-12-23
  • 2021-11-22
猜你喜欢
  • 2021-06-27
  • 2021-06-09
  • 2021-09-05
  • 2021-11-06
  • 2021-08-08
  • 2022-12-23
  • 2021-05-27
相关资源
相似解决方案