Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.java.programmer > #31971
| Path | csiph.com!optima2.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!1.eu.feeder.erje.net!eternal-september.org!feeder.eternal-september.org!mx02.eternal-september.org!.POSTED!not-for-mail |
|---|---|
| From | Jeff Higgins <jeff@invalid.invalid> |
| Newsgroups | comp.lang.java.programmer |
| Subject | Re: invoke method and get data from properties file |
| Date | Tue, 07 Jul 2015 06:36:05 -0400 |
| Organization | A noiseless patient Spider |
| Lines | 16 |
| Message-ID | <mnga69$18u$1@dont-email.me> (permalink) |
| References | <570ab58c-71e2-43f3-8ce6-a8c4261322dc@googlegroups.com> |
| Mime-Version | 1.0 |
| Content-Type | text/plain; charset=windows-1252; format=flowed |
| Content-Transfer-Encoding | 7bit |
| Injection-Date | Tue, 7 Jul 2015 10:38:01 +0000 (UTC) |
| Injection-Info | mx02.eternal-september.org; posting-host="8e164d158183579609bf09837dee5210"; logging-data="1310"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18y6pu/RY+27otihYGXw2QRrgIMQgy+pqs=" |
| User-Agent | Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Icedove/31.7.0 |
| In-Reply-To | <570ab58c-71e2-43f3-8ce6-a8c4261322dc@googlegroups.com> |
| Cancel-Lock | sha1:UzA3cXPv7dnKOycDn20JWua7boM= |
| Xref | csiph.com comp.lang.java.programmer:31971 |
Show key headers only | 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
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