变更包名
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
# [seq](https://gitea.yanghuanglin.com/yhl452493373/seq) 使用示例
|
||||
|
||||
### 具体查看com.yang.springseq.config,其中SeqGeneratorConfig为配置信息,Startup为项目启动后执行的代码
|
||||
### 具体查看com.yanghuanglin.springseq.config,其中SeqGeneratorConfig为配置信息,Startup为项目启动后执行的代码
|
||||
|
||||
*项目新建时,执行下mvn clean来安装包到本地maven库,如果其他地方已经执行过这个操作,可以不用,而且pom中也可以直接引用,无需安装*
|
||||
@@ -2,7 +2,7 @@
|
||||
<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.0</modelVersion>
|
||||
<groupId>com.cdhncy</groupId>
|
||||
<groupId>com.yanghuanglin</groupId>
|
||||
<artifactId>seq</artifactId>
|
||||
<version>1.0.0</version>
|
||||
<name>seq</name>
|
||||
@@ -21,5 +21,38 @@
|
||||
<artifactId>mysql-connector-java</artifactId>
|
||||
<version>8.0.28</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>junit</groupId>
|
||||
<artifactId>junit</artifactId>
|
||||
<version>4.12</version>
|
||||
<scope>test</scope>
|
||||
</dependency>
|
||||
</dependencies>
|
||||
|
||||
<build>
|
||||
<plugins>
|
||||
<plugin>
|
||||
<groupId>org.apache.maven.plugins</groupId>
|
||||
<artifactId>maven-compiler-plugin</artifactId>
|
||||
<version>3.1</version>
|
||||
<configuration>
|
||||
<source>8</source>
|
||||
<target>8</target>
|
||||
</configuration>
|
||||
</plugin>
|
||||
<plugin>
|
||||
<groupId>org.apache.maven.plugins</groupId>
|
||||
<artifactId>maven-source-plugin</artifactId>
|
||||
<version>3.2.1</version>
|
||||
<executions>
|
||||
<execution>
|
||||
<id>attach-sources</id>
|
||||
<goals>
|
||||
<goal>jar</goal>
|
||||
</goals>
|
||||
</execution>
|
||||
</executions>
|
||||
</plugin>
|
||||
</plugins>
|
||||
</build>
|
||||
</project>
|
||||
|
||||
7
pom.xml
7
pom.xml
@@ -8,7 +8,7 @@
|
||||
<version>2.6.3</version>
|
||||
<relativePath/> <!-- lookup parent from repository -->
|
||||
</parent>
|
||||
<groupId>com.yang</groupId>
|
||||
<groupId>com.yanghuanglin</groupId>
|
||||
<artifactId>spring-seq</artifactId>
|
||||
<version>0.0.1-SNAPSHOT</version>
|
||||
<name>spring-seq</name>
|
||||
@@ -37,7 +37,7 @@
|
||||
</dependency>
|
||||
|
||||
<dependency>
|
||||
<groupId>com.cdhncy</groupId>
|
||||
<groupId>com.yanghuanglin</groupId>
|
||||
<artifactId>seq</artifactId>
|
||||
<version>1.0.0</version>
|
||||
<exclusions>
|
||||
@@ -69,6 +69,7 @@
|
||||
<plugin>
|
||||
<groupId>org.springframework.boot</groupId>
|
||||
<artifactId>spring-boot-maven-plugin</artifactId>
|
||||
<version>2.6.3</version>
|
||||
<configuration>
|
||||
<excludes>
|
||||
<exclude>
|
||||
@@ -95,7 +96,7 @@
|
||||
<pomFile>${pom.basedir}/lib/seq-1.0.0-pom.xml</pomFile>
|
||||
<sources>${project.basedir}/lib/seq-1.0.0-sources.jar</sources>
|
||||
<repositoryLayout>default</repositoryLayout>
|
||||
<groupId>com.cdhncy</groupId>
|
||||
<groupId>com.yanghuanglin</groupId>
|
||||
<artifactId>seq</artifactId>
|
||||
<version>1.0.0</version>
|
||||
<packaging>jar</packaging>
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
package com.yang.springseq;
|
||||
package com.yanghuanglin.springseq;
|
||||
|
||||
import org.springframework.boot.SpringApplication;
|
||||
import org.springframework.boot.autoconfigure.SpringBootApplication;
|
||||
@@ -1,9 +1,9 @@
|
||||
package com.yang.springseq.config;
|
||||
package com.yanghuanglin.springseq.config;
|
||||
|
||||
import com.cdhncy.seq.config.GeneratorConfig;
|
||||
import com.cdhncy.seq.config.TableConfig;
|
||||
import com.cdhncy.seq.generator.Generator;
|
||||
import com.cdhncy.seq.generator.impl.SequencesGenerator;
|
||||
import com.yanghuanglin.seq.config.GeneratorConfig;
|
||||
import com.yanghuanglin.seq.config.TableConfig;
|
||||
import com.yanghuanglin.seq.generator.Generator;
|
||||
import com.yanghuanglin.seq.generator.impl.SequencesGenerator;
|
||||
import org.springframework.context.annotation.Bean;
|
||||
import org.springframework.context.annotation.Configuration;
|
||||
import org.springframework.jdbc.core.JdbcTemplate;
|
||||
@@ -1,7 +1,7 @@
|
||||
package com.yang.springseq.config;
|
||||
package com.yanghuanglin.springseq.config;
|
||||
|
||||
import com.cdhncy.seq.generator.Generator;
|
||||
import com.cdhncy.seq.po.Sequences;
|
||||
import com.yanghuanglin.seq.generator.Generator;
|
||||
import com.yanghuanglin.seq.po.Sequences;
|
||||
import org.springframework.boot.ApplicationArguments;
|
||||
import org.springframework.boot.ApplicationRunner;
|
||||
import org.springframework.stereotype.Component;
|
||||
@@ -1,4 +1,4 @@
|
||||
package com.yang.springseq;
|
||||
package com.yanghuanglin.springseq;
|
||||
|
||||
import org.junit.jupiter.api.Test;
|
||||
import org.springframework.boot.test.context.SpringBootTest;
|
||||
Reference in New Issue
Block a user