Hi,
how can I get with "Spring" the machine-IP where a spring-application is installed?
Thanks,
Julio
Hi,
how can I get with "Spring" the machine-IP where a spring-application is installed?
Thanks,
Julio
java.net.InetAddress.getLocalHost() might be what you need. Nothing to do with Spring.
And if you want to inject this value into some bean, you can always use the MethodInvokingFactoryBean to call the method. See the documentation for more information.
blog: http://pveentjer.wordpress.com project: STM Implementation http://multiverse.googlecode.com