Questions tagged [property-files]

1

votes
0

answer
9

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