mirror of
https://github.com/continew-org/continew-starter.git
synced 2025-10-24 04:57:10 +08:00
refactor(auth): 调整 Redisson 模块为可选依赖
This commit is contained in:
@@ -23,5 +23,12 @@
|
|||||||
<groupId>com.xkcoding.justauth</groupId>
|
<groupId>com.xkcoding.justauth</groupId>
|
||||||
<artifactId>justauth-spring-boot-starter</artifactId>
|
<artifactId>justauth-spring-boot-starter</artifactId>
|
||||||
</dependency>
|
</dependency>
|
||||||
|
|
||||||
|
<!-- 缓存模块 - Redisson -->
|
||||||
|
<dependency>
|
||||||
|
<groupId>top.charles7c.continew</groupId>
|
||||||
|
<artifactId>continew-starter-cache-redisson</artifactId>
|
||||||
|
<optional>true</optional>
|
||||||
|
</dependency>
|
||||||
</dependencies>
|
</dependencies>
|
||||||
</project>
|
</project>
|
||||||
@@ -25,6 +25,13 @@
|
|||||||
<artifactId>sa-token-jwt</artifactId>
|
<artifactId>sa-token-jwt</artifactId>
|
||||||
</dependency>
|
</dependency>
|
||||||
|
|
||||||
|
<!-- 缓存模块 - Redisson -->
|
||||||
|
<dependency>
|
||||||
|
<groupId>top.charles7c.continew</groupId>
|
||||||
|
<artifactId>continew-starter-cache-redisson</artifactId>
|
||||||
|
<optional>true</optional>
|
||||||
|
</dependency>
|
||||||
|
|
||||||
<!-- Web 模块 -->
|
<!-- Web 模块 -->
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>top.charles7c.continew</groupId>
|
<groupId>top.charles7c.continew</groupId>
|
||||||
|
|||||||
@@ -47,8 +47,6 @@ public class SaTokenDaoConfiguration {
|
|||||||
* 自定义持久层实现-默认(内存)
|
* 自定义持久层实现-默认(内存)
|
||||||
*/
|
*/
|
||||||
@ConditionalOnMissingBean(SaTokenDao.class)
|
@ConditionalOnMissingBean(SaTokenDao.class)
|
||||||
@ConditionalOnClass(RedisClient.class)
|
|
||||||
@AutoConfigureBefore(RedissonAutoConfiguration.class)
|
|
||||||
@ConditionalOnProperty(name = "sa-token.extension.dao.type", havingValue = "default", matchIfMissing = true)
|
@ConditionalOnProperty(name = "sa-token.extension.dao.type", havingValue = "default", matchIfMissing = true)
|
||||||
public static class Default {
|
public static class Default {
|
||||||
static {
|
static {
|
||||||
|
|||||||
@@ -19,10 +19,10 @@
|
|||||||
</modules>
|
</modules>
|
||||||
|
|
||||||
<dependencies>
|
<dependencies>
|
||||||
<!-- 缓存模块 - Redisson -->
|
<!-- 核心模块 -->
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>top.charles7c.continew</groupId>
|
<groupId>top.charles7c.continew</groupId>
|
||||||
<artifactId>continew-starter-cache-redisson</artifactId>
|
<artifactId>continew-starter-core</artifactId>
|
||||||
</dependency>
|
</dependency>
|
||||||
</dependencies>
|
</dependencies>
|
||||||
</project>
|
</project>
|
||||||
Reference in New Issue
Block a user