Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.java.programmer > #31971

Re: invoke method and get data from properties file

From Jeff Higgins <jeff@invalid.invalid>
Newsgroups comp.lang.java.programmer
Subject Re: invoke method and get data from properties file
Date 2015-07-07 06:36 -0400
Organization A noiseless patient Spider
Message-ID <mnga69$18u$1@dont-email.me> (permalink)
References <570ab58c-71e2-43f3-8ce6-a8c4261322dc@googlegroups.com>

Show all headers | View raw


On 07/07/2015 03:59 AM, kahwei.cheng@xynapse-asia.com wrote:
>   String host = environment.getRequiredProperty("host.server");
> returning nullpointer for host
>
<http://docs.spring.io/spring/docs/current/javadoc-api/org/springframework/core/env/PropertyResolver.html#getRequiredProperty-java.lang.String->

String getRequiredProperty(String key)
                     throws IllegalStateException

Return the property value associated with the given key (never null).

Throws:
     IllegalStateException - if the key cannot be resolved

<http://www.xynapse-asia.com/en_GB/web/xynapse/software-developer>

Back to comp.lang.java.programmer | Previous | Next — Previous in thread | Find similar | Unroll thread


Thread

invoke method and get data from properties file kahwei.cheng@xynapse-asia.com - 2015-07-07 00:59 -0700
  Re: invoke method and get data from properties file Jeff Higgins <jeff@invalid.invalid> - 2015-07-07 06:36 -0400

csiph-web