- <profiles>
- <profile>
- <id>jdk-17id>
- <activation>
- <activeByDefault>trueactiveByDefault>
- <jdk>17jdk>
- activation>
- <properties>
- <maven.compiler.source>17maven.compiler.source>
- <maven.compiler.target>17maven.compiler.target>
- <maven.compiler.compilerVersion>17maven.compiler.compilerVersion>
- properties>
- profile>
- profiles>
- <mirror>
- <id>
- alimaven
- id>
- <mirrorOf>
- central
- mirrorOf>
- <name>
- aliyun maven
- name>
- <url>
- https://maven.aliyun.com/repository/central
- url>
- mirror>
jdk版本选择选择本地的jdk17 然后后面的java选项选17 如果17没出来要再点下 (idea bug或者是网的问题)
目前初步创建 父工程 名:juegejava
子模块名 :jjorder jjproduct jjuser
父工程 pom
- "1.0" encoding="UTF-8"?>
- <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 https://maven.apache.org/xsd/maven-4.0.0.xsd">
- <modelVersion>4.0.0modelVersion>
- <parent>
- <groupId>org.springframework.bootgroupId>
- <artifactId>spring-boot-starter-parentartifactId>
- <version>3.0.0-SNAPSHOTversion>
- <relativePath/>
- parent>
- <groupId>com.juege.javagroupId>
- <artifactId>juejue-userartifactId>
- <version>0.0.1-SNAPSHOTversion>
- <name>juegejavaname>
- <description>聚合服务description>
- <packaging>pompackaging>
-
- <modules>
- <module>jjusermodule>
- <module>jjproductmodule>
- <module>jjordermodule>
- modules>
- project>
子模块pom,不断更新中,springboot 3.0正式发布版还没出来 现在用的snapshot版本,springcloud
中的组件都是用的最新版本 (注释了某些组件的依赖 后面用到时再引入)
- "1.0" encoding="UTF-8"?>
- <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 https://maven.apache.org/xsd/maven-4.0.0.xsd">
- <modelVersion>4.0.0modelVersion>
- <parent>
- <groupId>org.springframework.bootgroupId>
- <artifactId>spring-boot-starter-parentartifactId>
- <version>3.0.0-SNAPSHOTversion>
- <relativePath/>
- parent>
- <groupId>com.juege.javagroupId>
- <artifactId>juejue-orderartifactId>
- <version>0.0.1-SNAPSHOTversion>
- <name>jjordername>
- <description>juegejavadescription>
- <properties>
- <java.version>17java.version>
- <spring-cloud.version>2022.0.0-RC1spring-cloud.version>
- <cloud-component.version>3.1.4cloud-component.version>
- properties>
- <dependencies>
- <dependency>
- <groupId>org.springframework.bootgroupId>
- <artifactId>spring-boot-starter-amqpartifactId>
- dependency>
- <dependency>
- <groupId>org.springframework.bootgroupId>
- <artifactId>spring-boot-starter-quartzartifactId>
- dependency>
- <dependency>
- <groupId>mysqlgroupId>
- <artifactId>mysql-connector-javaartifactId>
- dependency>
- <dependency>
- <groupId>org.springframework.bootgroupId>
- <artifactId>spring-boot-starter-securityartifactId>
- dependency>
- <dependency>
- <groupId>org.apache.kafkagroupId>
- <artifactId>kafka-streamsartifactId>
- dependency>
- <dependency>
- <groupId>org.springframework.cloudgroupId>
- <artifactId>spring-cloud-starter-openfeignartifactId>
- <version>${cloud-component.version}version>
- dependency>
- <dependency>
- <groupId>org.springframework.kafkagroupId>
- <artifactId>spring-kafkaartifactId>
- dependency>
-
- <dependency>
- <groupId>org.springframework.bootgroupId>
- <artifactId>spring-boot-devtoolsartifactId>
- <scope>runtimescope>
- <optional>trueoptional>
- dependency>
- <dependency>
- <groupId>org.springframework.bootgroupId>
- <artifactId>spring-boot-configuration-processorartifactId>
- <optional>trueoptional>
- dependency>
- <dependency>
- <groupId>org.projectlombokgroupId>
- <artifactId>lombokartifactId>
- <optional>trueoptional>
- dependency>
- <dependency>
- <groupId>org.springframework.bootgroupId>
- <artifactId>spring-boot-starter-testartifactId>
- <scope>testscope>
- dependency>
- <dependency>
- <groupId>org.springframework.kafkagroupId>
- <artifactId>spring-kafka-testartifactId>
- <scope>testscope>
- dependency>
- <dependency>
- <groupId>org.springframework.securitygroupId>
- <artifactId>spring-security-testartifactId>
- <scope>testscope>
- dependency>
- dependencies>
- <dependencyManagement>
- <dependencies>
- <dependency>
- <groupId>org.springframework.cloudgroupId>
- <artifactId>spring-cloud-dependenciesartifactId>
- <version>${spring-cloud.version}version>
- <type>pomtype>
- <scope>importscope>
- dependency>
- dependencies>
- dependencyManagement>
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- <repositories>
- <repository>
- <id>spring-milestonesid>
- <name>Spring Milestonesname>
- <url>https://repo.spring.io/milestoneurl>
- <snapshots>
- <enabled>falseenabled>
- snapshots>
- repository>
- <repository>
- <id>spring-snapshotsid>
- <name>Spring Snapshotsname>
- <url>https://repo.spring.io/snapshoturl>
- <releases>
- <enabled>falseenabled>
- releases>
- repository>
- <repository>
- <id>netflix-candidatesid>
- <name>Netflix Candidatesname>
- <url>https://artifactory-oss.prod.netflix.net/artifactory/maven-oss-candidatesurl>
- <snapshots>
- <enabled>falseenabled>
- snapshots>
- repository>
- repositories>
- <pluginRepositories>
- <pluginRepository>
- <id>spring-milestonesid>
- <name>Spring Milestonesname>
- <url>https://repo.spring.io/milestoneurl>
- <snapshots>
- <enabled>falseenabled>
- snapshots>
- pluginRepository>
- <pluginRepository>
- <id>spring-snapshotsid>
- <name>Spring Snapshotsname>
- <url>https://repo.spring.io/snapshoturl>
- <releases>
- <enabled>falseenabled>
- releases>
- pluginRepository>
- pluginRepositories>
-
- project>
密钥,一般默认就有
- docker update mysql --restart=always
-
- docker update redis --restart=always
- [root@localhost ~]# docker exec -it mysqlaa bash
-
- root@31e36f35d688:/# mysql -uroot -p
-
- 输入密码root