Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
616 views
in Technique[技术] by (71.8m points)

Spring Cloud Config Server - error: java.lang.IllegalStateException: No thread-bound request found

Small question on Spring Cloud Config Server please.

When starting the app, the app starts fine and can serve traffic. Clients can even get configuration from it, very happy.

However, I'm seeing this issue, and this error is puzzling me:

error: java.lang.IllegalStateException: No thread-bound request found: Are you referring to request attributes outside of an actual web request, or processing a request outside of the originally receiving thread? If you are actually operating within a web request and still receive this message, your code is probably running outside of DispatcherServlet: In this case, use RequestContextListener or RequestContextFilter to expose the current request. 

I do not understand what is the issue, what is the root cause, and how to solve it please?

Currently, the app "looks ok", but I would like to be sure what is this error message about.

Thank you

question from:https://stackoverflow.com/questions/65884300/spring-cloud-config-server-error-java-lang-illegalstateexception-no-thread-b

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)
Waitting for answers

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...