2020-02-05 00:31:51 +08:00
|
|
|
|
<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/xsd/maven-4.0.0.xsd">
|
|
|
|
|
|
<modelVersion>4.0.0</modelVersion>
|
|
|
|
|
|
<groupId>cn.dev33</groupId>
|
|
|
|
|
|
<artifactId>sa-token-demo-springboot</artifactId>
|
|
|
|
|
|
<version>0.0.1-SNAPSHOT</version>
|
|
|
|
|
|
|
|
|
|
|
|
<!-- SpringBoot -->
|
|
|
|
|
|
<parent>
|
|
|
|
|
|
<groupId>org.springframework.boot</groupId>
|
|
|
|
|
|
<artifactId>spring-boot-starter-parent</artifactId>
|
|
|
|
|
|
<version>2.0.0.RELEASE</version>
|
|
|
|
|
|
</parent>
|
|
|
|
|
|
|
|
|
|
|
|
<dependencies>
|
|
|
|
|
|
|
|
|
|
|
|
<!-- springboot依赖 -->
|
|
|
|
|
|
<dependency>
|
|
|
|
|
|
<groupId>org.springframework.boot</groupId>
|
|
|
|
|
|
<artifactId>spring-boot-starter-web</artifactId>
|
|
|
|
|
|
</dependency>
|
|
|
|
|
|
<dependency>
|
|
|
|
|
|
<groupId>org.springframework.boot</groupId>
|
|
|
|
|
|
<artifactId>spring-boot-starter-aop</artifactId>
|
|
|
|
|
|
</dependency>
|
|
|
|
|
|
|
2020-03-07 14:40:15 +08:00
|
|
|
|
<!-- sa-token 权限认证, 在线文档:http://sa-token.dev33.cn/ -->
|
2020-02-08 00:54:38 +08:00
|
|
|
|
<dependency>
|
|
|
|
|
|
<groupId>cn.dev33</groupId>
|
|
|
|
|
|
<artifactId>sa-token</artifactId>
|
2020-05-02 15:19:55 +08:00
|
|
|
|
<version>1.0.3</version>
|
2020-02-08 00:54:38 +08:00
|
|
|
|
</dependency>
|
2020-02-05 00:31:51 +08:00
|
|
|
|
|
|
|
|
|
|
<!-- SpringBoot整合redis -->
|
|
|
|
|
|
<dependency>
|
|
|
|
|
|
<groupId>org.springframework.boot</groupId>
|
|
|
|
|
|
<artifactId>spring-boot-starter-redis</artifactId>
|
|
|
|
|
|
<version>RELEASE</version>
|
|
|
|
|
|
</dependency>
|
|
|
|
|
|
|
|
|
|
|
|
</dependencies>
|
|
|
|
|
|
|
|
|
|
|
|
<!-- 配置打包 -->
|
|
|
|
|
|
<build>
|
|
|
|
|
|
<plugins>
|
|
|
|
|
|
<!-- 打包jar文件时,配置manifest文件,加入lib包的jar依赖 -->
|
|
|
|
|
|
<plugin>
|
|
|
|
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
|
|
|
|
<artifactId>maven-jar-plugin</artifactId>
|
|
|
|
|
|
<configuration>
|
|
|
|
|
|
<archive>
|
|
|
|
|
|
<manifest>
|
|
|
|
|
|
<addClasspath>true</addClasspath>
|
|
|
|
|
|
<classpathPrefix>lib/</classpathPrefix>
|
|
|
|
|
|
<mainClass>com.pj.SaTokenDemoApplication</mainClass>
|
|
|
|
|
|
</manifest>
|
|
|
|
|
|
</archive>
|
|
|
|
|
|
</configuration>
|
|
|
|
|
|
</plugin>
|
|
|
|
|
|
<!-- 拷贝依赖的jar包到lib目录 -->
|
|
|
|
|
|
<plugin>
|
|
|
|
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
|
|
|
|
<artifactId>maven-dependency-plugin</artifactId>
|
|
|
|
|
|
<executions>
|
|
|
|
|
|
<execution>
|
|
|
|
|
|
<id>copy</id>
|
|
|
|
|
|
<phase>package</phase>
|
|
|
|
|
|
<goals>
|
|
|
|
|
|
<goal>copy-dependencies</goal>
|
|
|
|
|
|
</goals>
|
|
|
|
|
|
<configuration>
|
|
|
|
|
|
<outputDirectory>
|
|
|
|
|
|
${project.build.directory}/lib
|
|
|
|
|
|
</outputDirectory>
|
|
|
|
|
|
</configuration>
|
|
|
|
|
|
</execution>
|
|
|
|
|
|
</executions>
|
|
|
|
|
|
</plugin>
|
|
|
|
|
|
</plugins>
|
|
|
|
|
|
</build>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</project>
|