Parsing @Context UriInfo to java thread

后端 未结 1 502
名媛妹妹
名媛妹妹 2021-01-16 01:57

I\'m trying to parse @Context UriInfo to another thread and do some task. But when i try to run it, it gives the error as

Exception in thread \         


        
相关标签:
1条回答
  • 2021-01-16 02:39

    Just make the UriInfo parameter final and you will be able to access it from your run() method.

    public void thread(@Context final UriInfo url){
    

    I've no idea what you are actually trying to achieve here though. I doubt you actually want to do this.

    0 讨论(0)
提交回复
热议问题