添加 JustAuth 自动配置支持,更新 pom.xml 以包含 jeecg-boot-starter-job 依赖,并修改 application.yml 中的 nacos 服务器地址配置

springboot3_sas
JEECG 2025-09-24 16:06:54 +08:00
parent 19b7f2cb29
commit 80749098bd
3 changed files with 9 additions and 1 deletions

View File

@ -1,16 +1,19 @@
package org.jeecg; package org.jeecg;
import com.xkcoding.justauth.autoconfigure.JustAuthAutoConfiguration;
import org.jeecg.common.base.BaseMap; import org.jeecg.common.base.BaseMap;
import org.jeecg.common.constant.GlobalConstants; import org.jeecg.common.constant.GlobalConstants;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.CommandLineRunner; import org.springframework.boot.CommandLineRunner;
import org.springframework.boot.SpringApplication; import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.ImportAutoConfiguration;
import org.springframework.boot.autoconfigure.SpringBootApplication; import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.openfeign.EnableFeignClients; import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.data.redis.core.RedisTemplate; import org.springframework.data.redis.core.RedisTemplate;
@SpringBootApplication @SpringBootApplication
@EnableFeignClients @EnableFeignClients
@ImportAutoConfiguration(JustAuthAutoConfiguration.class) // spring boot 3.x justauth 兼容性处理
public class JeecgDemoCloudApplication implements CommandLineRunner { public class JeecgDemoCloudApplication implements CommandLineRunner {
@Autowired @Autowired
private RedisTemplate<String, Object> redisTemplate; private RedisTemplate<String, Object> redisTemplate;

View File

@ -37,6 +37,11 @@
</exclusions> </exclusions>
</dependency> </dependency>
<dependency>
<groupId>org.jeecgframework.boot3</groupId>
<artifactId>jeecg-boot-starter-job</artifactId>
</dependency>
<!-- feign 熔断限流、分布式锁、xxljob示例 <!-- feign 熔断限流、分布式锁、xxljob示例
<dependency> <dependency>
<groupId>org.jeecgframework.boot3</groupId> <groupId>org.jeecgframework.boot3</groupId>

View File

@ -29,7 +29,7 @@ logging:
name: ${user.home}/logs/csp/sentinel-dashboard.log name: ${user.home}/logs/csp/sentinel-dashboard.log
nacos: nacos:
server: server:
ip: localhost:8848 ip: @config.server-addr@
sentinel: sentinel:
dashboard: dashboard:
version: 1.8.2 version: 1.8.2