Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
在每次调用 ws 之前,我需要能够从 web.xml 文件中读取主机名和端口。那么我怎样才能在 JAX-WS 中做到这一点,或者不可能吗?
您可以像出于任何其他目的一样访问参数:
ServletContext.getInitParameter(String key)