apache / incubator-seata

:fire: Seata is an easy-to-use, high-performance, open source distributed transaction solution.
https://seata.apache.org/
Apache License 2.0
25.25k stars 8.77k forks source link

Read file.conf in wrong path after package seata server #6888

Open xjlgod opened 1 week ago

xjlgod commented 1 week ago

Ⅰ. Issue Description

When I use idea to read file.conf in resources. it is ok.

f4a5e259cb931496979e16d5ce4f5c22

When I package server, it can not read file.conf in right path.

4b3dd01a1638c4eab39e5cc9fc706d25

Ⅱ. Describe what happened

I think there are some errors after package, then change the result in here . image

Just paste your stack trace here!

Ⅲ. Describe what you expected to happen

Ⅳ. How to reproduce it (as minimally and precisely as possible)

  1. xxx
  2. xxx
  3. xxx

Minimal yet complete reproducer code (or URL to code):

Ⅴ. Anything else we need to know?

Ⅵ. Environment: