Questions tagged [property-files]

1

votes
1

answer
53

Views

Facebook javascript SDK Share version from property files to jsp not working [webapp]

I am using a property file to manage App IDs, and versions. here is the property file : #Facebook APP ID & Version #My Local facebookShareAppId = xxxxxxxxxxx #UAT #facebookShareAppId = xxxxxxxxxxx #QA #facebookShareAppId = xxxxxxxxxxx facebookShareVersion = v2.7 ============================ I am get...
EdSniper
1

votes
1

answer
59

Views

Prevent GIT from changing automatically character encoding

I face a problem as below. Please give me a solution. Thanks in advance! I use Linux OS (ubuntu) Initially, I checkout new branch with the file test.properties file encoding: test.properties: text/plain; charset=unknown-8bit Intellij Seting file encoding: on Browser, the text show like: # 基本情...
Mr Special
1

votes
2

answer
0

Views

How to read array representation from property file in spring boot

I would like to read a property file which has array format. I have this property file: students.student[0] = ABC students.student[0].marks[0] = 10 students.student[0].marks[1] = 20 students.student[0].marks[2] = 30 students.student[0].marks[3] = 40 students.student[0].marks[4] = 50 students.student...
Techie
1

votes
1

answer
2.3k

Views

How work with 3rd-party @ConfigurationProperties @Bean?

I use IntellijIdea and gradle. Gradle config: ... apply plugin: 'propdeps' apply plugin: 'propdeps-idea' apply plugin: 'propdeps-maven' buildscript { repositories { maven { url 'http://repo.spring.io/plugins-release' } } dependencies { classpath 'org.springframework.build.gradle:propdeps-plugin:0.0....
DamienMiheev
1

votes
1

answer
158

Views

Java - purpose of property files

How are property files useful? I know property files are used to store config values and localization values. But why can't we have those values in Java class? What benefits does a property file give over Java files?
meesun
1

votes
0

answer
64

Views

H2 database gets activated by default, although I have enabled oracle from Spring boot property files

We use hierarchically organised Spring boot property files in our application. For example, Our application.properties will just contain a single line. spring.profiles.include = logging, kafka, oracle, misc Where all the values separated by comma here are other property files (namely application-log...
Aryan Venkat
2

votes
1

answer
1.6k

Views

How to use YAML files using Spring Framework?

My application is spring based, and I would like to load yml file from a centralized server, but the unable to do so. My yml file is like this: spring: application: name: signed-in-web cloud: config: uri: ${server.url} health: config: enabled: false note: server.url is defined in vm options. I had c...
Usama Nadeem
2

votes
3

answer
61

Views

I want to get the next incremented value of 9 (which is 10 of course) but it returns an ASCII code

I was working on a property file. On it, I have an key which is 'user_email' and the value, I set it to [email protected] Now, in my code, I want the email value to iterate whenever my program runs, so [email protected] will be [email protected] and so on and from there, I read the email...
Jong Onin
2

votes
2

answer
63

Views

How to convert config.properties into key value pairs?

I am trying to convert a java properties file into a key value pairs that I can use in jquery. The property file sends information that looks like this: company1=Google company2=eBay company3=Yahoo And I want it in this form: var obj = { company1: Google, company2: ebay, company3: Yahoo }; I am goin...
Mandalina
2

votes
1

answer
627

Views

Global CORS configuration using Java Config is not working

I am having a hard-time to get Global CORS configuration using Java config to work. I'm not sure if it is a known issue because other people also have the same problem: Spring Global CORS configuration not working but Controller level config does Anyway, let me elaborate further what I am trying to...
Dane Savot