💎一站式轻松地调用各大LLM模型接口,支持GPT4、智谱、星火、月之暗面及文生图 广告
1.安装JDK jdk-8u65-windows-x64 2.安装Maven apache-maven-3.5.3 https://pan.baidu.com/s/1irBWMoD2TmTWlhZr6qkKvQ 3.安装eclipse eclipse-inst-win64-photon * * * * * 1.通过maven创建一个Java Project, 工程名为springprj, 包名:com.oscar999 D:\devworkspace\ecpphoton\springPrj>mvn archetype:generate -DgroupId=com.oscar999 -DartifactId=springPrj -DarchetypeArtifactId=maven-archetype-quickstart -Dinte ractiveMode=false 2.在项目根路径执行 mvn eclipse:eclipse 3.导入eclipse 4.配置pom.xml, 加入spring依赖项 ~~~ <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd"> <modelVersion>4.0.0</modelVersion> <groupId>com.oscar999</groupId> <artifactId>springPrj</artifactId> <packaging>jar</packaging> <version>1.0-SNAPSHOT</version> <name>springPrj</name> <url>http://maven.apache.org</url> <properties> <spring.version>5.0.8.RELEASE</spring.version> </properties> <dependencies> <dependency> <groupId>junit</groupId> <artifactId>junit</artifactId> <version>3.8.1</version> <scope>test</scope> </dependency> <!-- Spring --> <dependency> <groupId>org.springframework</groupId> <artifactId>spring-core</artifactId> <version>${spring.version}</version> </dependency> <dependency> <groupId>org.springframework</groupId> <artifactId>spring-beans</artifactId> <version>${spring.version}</version> </dependency> <dependency> <groupId>org.springframework</groupId> <artifactId>spring-tx</artifactId> <version>${spring.version}</version> </dependency> <dependency> <groupId>org.springframework</groupId> <artifactId>spring-context</artifactId> <version>${spring.version}</version> </dependency> <dependency> <groupId>org.springframework</groupId> <artifactId>spring-context-support</artifactId> <version>${spring.version}</version> </dependency> <dependency> <groupId>org.springframework</groupId> <artifactId>spring-web</artifactId> <version>${spring.version}</version> </dependency> <dependency> <groupId>org.springframework</groupId> <artifactId>spring-webmvc</artifactId> <version>${spring.version}</version> </dependency> <dependency> <groupId>org.springframework</groupId> <artifactId>spring-aop</artifactId> <version>${spring.version}</version> </dependency> <dependency> <groupId>org.springframework</groupId> <artifactId>spring-aspects</artifactId> <version>${spring.version}</version> </dependency> <dependency> <groupId>org.springframework</groupId> <artifactId>spring-jdbc</artifactId> <version>${spring.version}</version> </dependency> </dependencies> </project> ~~~ 5.再一次执行mvn eclipse:eclipse