Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

项目中配置logback-spring.xml、启动项目后报错 #2504

Closed
viclee11 opened this issue Jan 12, 2022 · 8 comments
Closed

项目中配置logback-spring.xml、启动项目后报错 #2504

viclee11 opened this issue Jan 12, 2022 · 8 comments

Comments

@viclee11
Copy link

在项目中添加了logback-spring.xml配置文件后、启动项目报错(无法初始化Logback配置)
1.项目为Gradle构建
2.依赖版本为4.2.0(implementation group: 'com.github.binarywang', name: 'weixin-java-pay', version: '4.2.0')
3.删除依赖又启动成功
(不知道是不是依赖冲突的问题)
image

@viclee11
Copy link
Author

image

@binarywang
Copy link
Member

最后部分不是错误根源吗?

@yhan219
Copy link

yhan219 commented Jan 24, 2022

确实启不起来,添加本项目依赖后,spring boot只要配置了 logback.xml 都启动不起来。以为是java版本问题,从11换成8也是启动不起来。spring boot2.4版本可以启动,2.6不行

@kiddkyd2
Copy link

kiddkyd2 commented Feb 9, 2022

me too.
springboot 2.6.3

我找到了解决方案,只要导入这个包就可以
group: 'xerces', name: 'xercesImpl', version: '2.12.1'

@binarywang
Copy link
Member

#2530 是同一个问题吗?

@binarywang binarywang added this to the 4.2.9 milestone Mar 11, 2022
@binarywang
Copy link
Member

拿demo做了简单测试,没发现问题,楼上的几位,能否给个必然出现问题的demo项目代码?

@yhan219
Copy link

yhan219 commented Mar 24, 2022

是同一个问题,关闭吧,最新版可以使用了

@binarywang binarywang removed this from the 4.2.9 milestone Mar 24, 2022
@viclee11
Copy link
Author

viclee11 commented Oct 11, 2022 via email

@Wechat-Group Wechat-Group locked as too heated and limited conversation to collaborators Oct 31, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants