All Questions
Tagged with system-properties properties
11 questions
0
votes
1
answer
131
views
Manually opened Excel / Notepad file (Opened by user), How would like to identify this through java program
Description : Actually I am looking the java code which is basically running in the background, But whenever I want to open a new notepad or excel file , It will capture those file as an input and ...
1
vote
0
answers
51
views
Is there a way to configure 2 property system in same @Value ins spring boot?
I trying to use 2 different property files with the same parameters which every parameter is describing the same property for example:
NewsPaperConsumer.properties, MarketConsumer.properties when ...
1
vote
1
answer
3k
views
Access system property in java .properties file
I'm trying to access System property variable in java properties file. I'm not in the position to use other java class.
I want to define a property for a working directory(say work.dir=/home/username/...
2
votes
3
answers
1k
views
Java Properties variabile: set property while iterating keys
I have a code which collects all the system-properties keys which starts with a given prefix
private static List<String> getKeysByPrefix(String prefix) {
Set<?> keySet = System....
0
votes
3
answers
2k
views
Use of System properties and what is use of System properties
I have seen code :
public static final boolean SUPRESS_CHECK = "true".equals(System.getProperty("sdp.authz.disable", "false"));
what kind of use of this properties ?
why we have to use system ...
9
votes
1
answer
12k
views
Java system Properties, http.proxyHost, two questions
I am developing a Java application that makes HTTP requests, and half of my development time is behind a proxy. So I have the following block in my code:
if (BEHIND_PROXY) {
java.util.Properties ...
30
votes
3
answers
65k
views
How to add new System Properties in java
Is it possible to add new values to Java System Properties. If there is any how can introduce new keys with there corresponding values in Java System Properties.
0
votes
1
answer
2k
views
Configuring System property in Spring
I have file channel adapter which need to listen to a directory in specfied intervals. And I have the following code.
<file:inbound-channel-adapter id="fileAdapter"
directory="file:${SYS....
1
vote
2
answers
2k
views
inheriting the user.home property within my custom .properties file
Can I do something like working-dir="file:${user.home}/some-directory" within my .properties file? I am using ResourceBundle to load configuration from a .properties file and I would to inherit a ...
23
votes
9
answers
10k
views
Crowdsourcing a Complete list of Common Java System Properties and Known Values
I've been inspired by another question: Best Practice for Using Java System Properties
I'm currently looking for a complete list of Java system properties and possible values. I'm working on a simple ...
79
votes
8
answers
190k
views
How can I specify system properties in Tomcat configuration on startup?
I understand that I can specify system properties to Tomcat by passing arguments with the -D parameter, for example "-Dmy.prop=value".
I am wondering if there is a cleaner way of doing this by ...