Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.java.programmer > #31970 > unrolled thread
| Started by | kahwei.cheng@xynapse-asia.com |
|---|---|
| First post | 2015-07-07 00:59 -0700 |
| Last post | 2015-07-07 06:36 -0400 |
| Articles | 2 — 2 participants |
Back to article view | Back to comp.lang.java.programmer
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
| From | kahwei.cheng@xynapse-asia.com |
|---|---|
| Date | 2015-07-07 00:59 -0700 |
| Subject | invoke 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]
| From | Jeff Higgins <jeff@invalid.invalid> |
|---|---|
| Date | 2015-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