properties-file Questions
8
I have a JavaEE project, in which I use message properties files. The encoding of those file is set to UTF-8. In the file I use the german umlauts like ä, ö, ü. The problem is, sometimes those char...
Marilla asked 30/6, 2015 at 16:46
3
Solved
On my current project, we are using properties files for strings. Those strings are then "formatted" using MessageFormat. Unfortunately, MessagFormat has a handling of single quotes that becomes a ...
Seclusive asked 20/6, 2016 at 11:7
2
I am using Apache Commons Configuration library with PropertiesConfiguration.
My application loads the config file right after its started, like this:
public PropertiesConfiguration loadConfigFil...
Besprent asked 22/2, 2016 at 18:13
6
Solved
I've generated a Spring Boot web application using Spring Initializr, using embedded Tomcat + Thymeleaf template engine.
I put this property in my application.properties
[email protected]
...
Cataldo asked 22/4, 2017 at 18:15
8
Solved
I have a file like
name1=value1
name2=value2
I need to read this file using shell script and set variables
$name1=value1
$name2=value2
Please provide a script that can do this.
I tried the f...
Corneliuscornell asked 14/2, 2011 at 9:30
2
Solved
I would like to override the properties I have configured in my configuration file in my Quarkus application.
How can I accomplish that?
Ghoul asked 7/3, 2019 at 12:6
2
I'm translating a Java application by using a ResourceBundle with various *.properties files. Now I like to have a Gradle task or want to modify a task to automatically escape any unicode character...
Byproduct asked 9/6, 2016 at 15:10
9
Solved
Is it possible to have immutable (final) fields with Spring Boot's @ConfigurationProperties annotation? Example below
@ConfigurationProperties(prefix = "example")
public final class MyProps {
pr...
Coition asked 1/10, 2014 at 9:14
2
Solved
I have some requirement where I want to write/update the value in the properties file I am using the my spring application.
I have googled it but I have not found a direct way of doing it using Sp...
Burdine asked 10/7, 2015 at 7:30
4
Solved
I'm using .properties files for message internationalization. For example:
HELLO_WORLD = Hello World
HELLO_UNIVERSE = Hello Universe
And then in Java code:
String foo = resourceBundle.getString...
Carmella asked 6/7, 2015 at 6:0
11
Solved
I am using spring. I need to read values from properties file. This is internal properties file not the external properties file. Properties file can be as below.
some.properties ---file name. va...
Parette asked 13/2, 2012 at 11:38
10
I have set sdk.dir and ndk.dir in local.properties.
How do I read the values of sdk.dir and ndk.dir in the build.gradle file?
Averroes asked 24/2, 2014 at 21:52
5
I have application.yaml in springboot app as below
spring:
cloud:
gateway:
routes:
- id: pgService
uri: http://localhost:2005/
predicates:
- Path=/employee/**
- id: inMateService
uri: http...
Isocrates asked 4/11, 2020 at 7:8
3
I'm facing an issue on only one platform when I'm trying to execute mvn clean install. As part of the build we compile multiple component and last we execute functional testing using wiremock. It i...
Nildanile asked 22/3, 2021 at 6:32
31
Solved
I want to access values provided in application.properties, e.g.:
logging.level.org.springframework.web: DEBUG
logging.level.org.hibernate: ERROR
logging.file=${HOME}/application.log
userBucket.p...
Phago asked 29/5, 2015 at 11:19
5
Solved
Situation
I am injecting properties from .properties file into fields annotated with @Value. However this properties present sensitive credentials, so I remove them from repository. I still want t...
Cahoon asked 5/4, 2017 at 18:7
9
Solved
I'm using java.util.Properties's store(Writer, String) method to store the properties. In the resulting text file, the properties are stored in a haphazard order.
This is what I'm doing:
Propert...
Slothful asked 9/6, 2013 at 15:23
5
I've written a small application. I've put the database specific information in a properties file.
db.url=jdbc:mysql://localhost:3306/librarydb
db.user=root
db.passwd=pas$w0rd
When I build the ...
Monde asked 19/5, 2013 at 7:24
2
Solved
I have very little exposure to SonarQube but have been asked to make a document explaining how to set up / use "sonar-project.properties file". Any information or input would be greatly appreciated...
Wastepaper asked 3/12, 2015 at 16:59
8
Solved
Is it possible to use Spring @Value, to map values from properties file to the HashMap.
Currently I have something like this, and mapping one value is not a problem.
But I need to map custom value...
Kalindi asked 6/2, 2015 at 15:45
3
Solved
I have a Spring-managed bean that loads properties using a property-placeholder in its associated context.xml:
<context:property-placeholder location="file:config/example.prefs" />
I can a...
Mouldon asked 22/1, 2014 at 7:27
6
I'm trying to use the Spring framework's @PropertySource annotation in a Jar to load a properties file from outside the jar, but it's not finding the file.
I need the properties file to be externa...
Escarpment asked 6/5, 2015 at 14:11
1
Solved
Using Spring Boot 2.6.1, If I have an application.properties file that looks like:
spring.datasource.url="jdbc://blahblah"
I can override that value at runtime with an environment variab...
Surety asked 7/12, 2021 at 22:35
6
Solved
I'm building a Chrome Packaged App. I want to put the script configuration if a config file in a resource directory and on startup want to read that by Javascript.
For example
Project
WebConte...
Lenten asked 11/10, 2013 at 5:36
10
Solved
I'm currently making a .properties file that needs to be loaded and transformed into an array.
There is a possibility of anywhere from 0-25 of each of the property keys to exist.
I tried a few impl...
Heliotype asked 10/8, 2011 at 17:56
1 Next >
© 2022 - 2024 — McMap. All rights reserved.