Tuesday, 14 November 2017

Read Value from properties file

We can read properties file value using

In properties  file

your.key = hello

And In your java code:

String hello = PortletProps.get("your.key");
System.out.println("hello is..."+hello);

TEST

I am Java Developer. I have 6 year Experiance in this field and like to post in blogging. So keep sharing and like my post

0 comments:

Post a Comment

 

Copyright @ 2017 Liferay Article.