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


Groups > comp.lang.java.programmer > #31970 > unrolled thread

invoke method and get data from properties file

Started bykahwei.cheng@xynapse-asia.com
First post2015-07-07 00:59 -0700
Last post2015-07-07 06:36 -0400
Articles 2 — 2 participants

Back to article view | Back to comp.lang.java.programmer


Contents

  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

#31970 — invoke method and get data from properties file

Fromkahwei.cheng@xynapse-asia.com
Date2015-07-07 00:59 -0700
Subjectinvoke method and get data from properties file
Message-ID<570ab58c-71e2-43f3-8ce6-a8c4261322dc@googlegroups.com>
 String host = environment.getRequiredProperty("host.server");
returning nullpointer for host

[toc] | [next] | [standalone]


#31971

FromJeff Higgins <jeff@invalid.invalid>
Date2015-07-07 06:36 -0400
Message-ID<mnga69$18u$1@dont-email.me>
In reply to#31970
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>

[toc] | [prev] | [standalone]


Back to top | Article view | comp.lang.java.programmer


csiph-web