xxl-sso 启动

tech2025-06-14  2

好久没写博客了,最近几个月学的、做的东西都是以word笔记记录,感觉更方便、效率更高一点,最后形成的每篇个人笔记大小都是几百M。之后看情况吧,or将这几个月做的笔记都copy到博客上来。

 

这篇博客主要记录:xxl-sso 启动失败:日志配置问题。

尝试使用 作者:许雪里https://gitee.com/xuxueli0323/xxl-sso?_from=gitee_search写的分布式单点登录框架,写的不错,里面有官方文档,上手也很容易。

启动项目时遇到了一个小问题,/resource/logback.xml配置报错,

解决:

【1】导入相关依赖:

<!-- slf4j+LOGBack依赖包 --> <dependency> <groupId>org.slf4j</groupId> <artifactId>slf4j-api</artifactId> <version>${slf4j.version}</version> </dependency> <dependency> <groupId>org.slf4j</groupId> <artifactId>log4j-over-slf4j</artifactId> <version>${slf4j.version}</version> </dependency> <dependency> <groupId>ch.qos.logback</groupId> <artifactId>logback-core</artifactId> <version>${logback.version}</version> </dependency> <dependency> <groupId>ch.qos.logback</groupId> <artifactId>logback-classic</artifactId> <version>${logback.version}</version> </dependency>

【2】将/resource/logback.xml放在 /resource/data/logback.xml

 

 

最新回复(0)