湖州卫健委项目管理平台后端
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

3.2 KiB

jeecg后台配置说明

第一步:安装jdk 17

  1. 从以下地址下载jdk 17
https://download.oracle.com/java/17/latest/jdk-17_windows-x64_bin.exe
  1. 设置java环境变量
    • 设置JAVA_HOME环境变量为jdk 17的安装路径
    • 在path中添加%JAVA_HOME%\bin,注意JAVA_HOME为大写
    • 在命令行窗口输入命令:java -version, 出现下面的显示,证明安装成功
     C:\Users\jinqi>java -version
      java version "17.0.9" 2023-10-17 LTS
      Java(TM) SE Runtime Environment (build 17.0.9+11-LTS-201)
      Java HotSpot(TM) 64-Bit Server VM (build 17.0.9+11-LTS-201, mixed mode, sharing)
    

第二步:安装maven

  1. 从以下地址下载maven
    https://dlcdn.apache.org/maven/maven-3/3.8.8/binaries/apache-maven-3.8.8-bin.zip
    
  2. 解压到D:\apache-maven-3.8.8(也可以是其他目录)
  3. 配置settings.xml,设置依赖
<settings xmlns="http://maven.apache.org/SETTINGS/1.0.0"
          xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
          xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.0.0
                      http://maven.apache.org/xsd/settings-1.0.0.xsd">
  <localRepository>D:\apache-maven-3.9.5\repository</localRepository>
  <interactiveMode/>
  <usePluginRegistry/>
  <offline/>
  <pluginGroups/>
  <servers/>
  <mirrors>
    <mirror>
      <id>alimaven</id>
      <mirrorOf>central</mirrorOf>
      <name>aliyun maven</name>
      <url>https://maven.aliyun.com/nexus/content/groups/public</url>
    </mirror>
    <mirror>
      <id>repo1</id>
      <mirrorOf>central</mirrorOf>
      <name>central repo</name>
      <url>http://repo1.maven.org/maven2/</url>
    </mirror>
    <mirror>
      <id>aliyunmaven</id>
      <mirrorOf>apache snapshots</mirrorOf>
      <name>阿里云阿帕奇仓库</name>
      <url>https://maven.aliyun.com/repository/apache-snapshots</url>
    </mirror>
  </mirrors>
  <proxies/>
  <activeProfiles/>
  <profiles>
	<profile>
	  <id>jdk-17</id>
	  <activation>
		<activeByDefault>true</activeByDefault>
		<jdk>17</jdk>
	  </activation>
	  <properties>
		<maven.compiler.source>1.8</maven.compiler.source>
		<maven.compiler.target>1.8</maven.compiler.target>
		<maven.compiler.compilerVersion>1.8</maven.compiler.compilerVersion>
	  </properties>
	</profile>
 
    <profile>
      <repositories>
        <repository>
          <id>aliyunmaven</id>
          <name>aliyunmaven</name>
          <url>https://maven.aliyun.com/repository/public</url>
          <layout>default</layout>
          <releases>
            <enabled>true</enabled>
          </releases>
          <snapshots>
            <enabled>true</enabled>
          </snapshots>
        </repository>
        <repository>
          <id>MavenCentral</id>
          <url>http://repo1.maven.org/maven2/</url>
        </repository>
        <repository>
          <id>aliyunmavenApache</id>
          <url>https://maven.aliyun.com/repository/apache-snapshots</url>
        </repository>
      </repositories>
    </profile>
  </profiles>
</settings>

第三步:安装redis

  1. 安装redis
$sudo apt-get update
$sudo apt-get install redis-server
  1. 启动 Redis
$ redis-server

第四步:安装idea

第五步:配置idea

第六步:下载jeecg后台源代码