A .properties file is either a simple text file or an XML file containing pairs of keys and values. Java and related technologies frequently use .properties files to store configuration information.

learn more…| top users | synonyms

-1
votes
0answers
24 views

Unable to read properties file in maven project

I have a maven project with src and resources folder.While I converted java project to maven It should have converted to src/main/java and src/main/resources however I was unable to convert it.the ...
0
votes
2answers
30 views

How can I load a specific area of a file into a Property - Java

What I already have:public static void main(String[] args) throws Exception {Properties prop=new Properties();Properties prop2=new Properties();InputStream is=new ...
-1
votes
1answer
19 views

Application properties in Spring application [closed]

I have Spring based application and i need to have few application related properties in my project. Where should i place all those properties?In database or properties file.
0
votes
0answers
31 views

read / write properties file in xpages

In my XPages app would like to add an UI to edit the content of a properties file. In the file I would like to store key/value pairs which I would like to use in my application.Is this possible? ...
1
vote
2answers
55 views

read files from folders and its subfolders and convert into one property file java

I want to read folders and subfolders from resource folder and convert all json files from folders and its subfolders into one property file. resource folder will contain only json files.Below ...
0
votes
2answers
40 views

Some light on gradle.properties, settings.gradle, gradle-wrapper.properties and local.properties

I use them often when configuring my project but mostly add snippers as instructed. I have absolutely no clue which file is for what exactly. Can anyone give a clear picture what each file is for.So ...
4
votes
1answer
70 views

How do I get an EAR to read a properties file from a WAR?

I'm using Wildfly 11 and Java 8. I'm trying to deploy an EAR file that contains multiple WAR files. One of my WAR files contains this in its web.xml ...<context-param><param-name>...
0
votes
0answers
36 views

Why is FileInputStream is used for reading config.properties rather than FileReader

InputStream (FileInputStream to be specific) is meant to read binary data such as audio files but why FileInputStream is used in Java for reading config.properties file which basically is a collection ...
1
vote
0answers
38 views

Using .properties Resource File ResourceBundle in an XPage

We have data that is fairly static, and we load that data into an XPage for attributes or label names or combo/radio/pull-down dataValues. Using Resource Files in the Resources section is fast and ...
0
votes
0answers
27 views

Properties file to create an xml

Below is the sample xml file, <?xml version="1.0" encoding="UTF-8" standalone="yes"?><INPUT_REQUEST_MATRIX><REQUEST_RULE><RULE_ID>CONTENT_OF[ID règle]&...
0
votes
2answers
13 views

I have a properties file at location (from eclipse mars project explorer)

I have a properties file at location (from eclipse mars project explorer):-MyTest(EJB PROJECT)+EJBMODULE+Source Packages-Resource+Config.properties <---- Here it is............
0
votes
1answer
12 views

Convention so represent string in .properties

If I have two properties:foo=1bar=2345Is there a way to specify that foo is a number and bar is a string? I assume: bar="2345" would do but I wonder if there's a widely accepted convention
1
vote
1answer
27 views

thymeleaf error message with converted special characters

for my web app (spring boot + thymeleaf) i use message_fr.properties file witch contains some special characters converted to html the problem comes when i display the error validation message in ...
0
votes
2answers
65 views

JVM - peek at class field during Spring application runtime

Recently I have got a need to peek at some class field value.The class looks somewhat like this:public class Foo(){@Autowiredprotected MessageResolver resolver;protected static final ...
0
votes
0answers
15 views

Gradle code for reading property file and replacing the variables specifies in another file as per the property value

I am new to Gradle and I am trying to read a property file and copy the value of the property file and update one file with the property value.Below is my .sql file which I want to update using ...

153050per page
angop.ao, elkhabar.com, noa.al, afghanpaper.com, bbc.com, time.com, cdc.gov, nih.gov, xnxx.com, github.com,