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.
有没有办法通过代码覆盖axis2.xml中指定的轴默认端口?
我想用一个动态值初始化它,保持所有其他设置不变。
我认为你应该使用AxisServletListener#setPort(int)
AxisServletListener#setPort(int)
在此处阅读 javadoc:
http://axis.apache.org/axis2/java/core/api/org/apache/axis2/transport/http/AxisServletListener.html#setPort(int )
AxisConfiguration您可以在运行时使用和更改任何内容 ConfigurationContext。
AxisConfiguration
ConfigurationContext