2014-07-26 40 views
0

這是正確的在Web應用程序中有多個ServerEndpoint?就像這樣:Java WebSocket API

@ServerEndpoint("/users") 
public class UsersEndPoint{ 
    //some impl 
} 

@ServerEndpoint("https://stackoverflow.com/users/{userId}") 
public class UserEndPoint{ 
    //some impl 
} 

@ServerEndpoint("/articles") 
public class ArticleEndPoint{ 
    //some impl 
} 

感謝

回答

0

是的,它是。

(如果您在詢問之前嘗試,會更好)