sofastack / sofa-jraft

A production-grade java implementation of RAFT consensus algorithm.
https://www.sofastack.tech/projects/sofa-jraft/
Apache License 2.0
3.53k stars 1.12k forks source link

修复loader.getResources无法读取资源的问题 #1066

Closed SABERYJS closed 6 months ago

SABERYJS commented 6 months ago

Motivation:

解决jraft-core无法读取resources文件的问题

Modification:

修改 Thread.currentThread().getContextClassLoader()JRaftServiceLoader.class.getClassLoader()

Result:

Fixes #1065.

sofastack-cla[bot] commented 6 months ago

Hi @SABERYJS, welcome to SOFAStack community, Please sign Contributor License Agreement!

After you signed CLA, we will automatically sync the status of this pull request in 3 minutes.

fengjiachun commented 6 months ago

@SABERYJS 你能签一下 CLA 吗

SABERYJS commented 6 months ago

@SABERYJS 你能签一下 CLA 吗

9ca

fengjiachun commented 6 months ago

Thank you @SABERYJS