Questions tagged [application.properties]

application.properties is the configuration file to configure dynamic properties for the application. It holds configuration properties in the form of key-value pair

application.properties is the configuration file to configure dynamic properties for the application. It holds configuration properties in the form of key-value pair

409 questions
0
votes
2 answers

How to select several properties for specific name

I am working on a web project using Spring and Spring MVC. I have a feature that is the same for 3 different elements (which are available in dropdown in view). Only two parameters change for each item. I decided to put these elements and…
0
votes
1 answer

Spring-boot parse excel file or .csv file with using application.properties

I am developing one spring boot application. Where I am having one input excel file. I have converted that file into .csv format. Now I am accessing the columns by index values but I want to access them with using headers. With using…
Ruchita
  • 23
  • 1
  • 9
-1
votes
1 answer

How to use backslash(\) in access_id in application.properties in java springboot as backslash is considered as special character it seems

I am providing access_id,secret_key and host in application.properties in java springboot. But access_id provided by my team is containing backslash in it. eg:- "1_IN\abcde" And access id will not be changed now. My question is "How to use…
-1
votes
2 answers

How to make @SpringBootTest use application.properties from external config folder (inside project root)?

I have a multi-module Spring Boot Gradle project (Kotlin) with the following directory structure. root |- domain (Module containing entities and interfaces) |- application (Spring boot Kotlin application) |- src/main |- kotlin (app…
-1
votes
1 answer

Springboot- reload property values without server restart

I have a springboot application and an application.properties file from which the values get fetched when the application runs. I am finding a solution to change the property values and reload it without server restart. Using spring-cloud-config is…
-1
votes
1 answer

how to force as mandatory a String when binding an application.properties file?

i have something like that.. in file application.properties input.param.resolution=high input.param.size=1024 in a configuration class @Configuration public class FirstConfiguration { @Bean @ConfigurationProperties("input.param") …
electrode
  • 205
  • 1
  • 4
  • 16
-1
votes
2 answers

Why does spring.profiles.active only read some profiles?

Im making multiple profiles for my springboot app. I have dev, local and test properties files. On application.properties file I only have this: spring.profiles.active=dev If I change dev to local or test spring doesnt load the profile and the…
LordHans
  • 7
  • 2
-1
votes
3 answers

In what order are application.yml read in spring boot?

I suppose that it reads in work working circuit and then it reads in testing circuit. If application.yml is in testing circuit , it settings replace the settings has been reading in application.yml of working circuit. If You have defined…
skyho
  • 1,438
  • 2
  • 20
  • 47
-1
votes
1 answer

property value not resolved from application.properties using spring boot

I use this configure application.properties user.name.auth=s-SGH-S0007 @Value("${user.name.auth}") private String userNameAuth; when I try to get a value from a given property, then I get an error. nested exception is…
skyho
  • 1,438
  • 2
  • 20
  • 47
-1
votes
1 answer

Get value from local.properties and use it in .tag & .jsp file

I have a file "local.properties" where I need to put a string variable and I need to use it in a .tag and .jsp file. Where I need to put this variable is instead of x:
Robert Vasile
  • 111
  • 1
  • 9
-1
votes
1 answer

How to read it from the properties file in Springboot

application.properties file has: my.greeting = Hello ServiceClass file has: @Value("${my.greeting}") private String messageFromProperties; MainAppfile: public static void main(String[] args) { …
Kap
  • 1
-1
votes
1 answer

@Value("${welcome}) in springboot is throwing illegal argument exception and could not resolve placeholder

@RestController Class MyController{ @Value("${welcome}") private String welcome; @RequestMapping("/greet") public String greetHim(){ return welcome; } } application.properties: welcome=welcomeEla The above code is throwing illegal argument…
Ela
  • 91
  • 6
-1
votes
1 answer

Multi profile config map is not properly injected to container

New to k8s. My configmap looks like apiVersion: v1 kind: ConfigMap metadata: name: example-configmap-overriding-new-01 data: application.properties: | globalkey = global key value TeamName = Team Name value #Some…
-1
votes
1 answer

MyBatis map-underscore-to-camel-case not working

I am using MyBatis 2.0.0 and have problem: I have a userId and status field that need to retrieve data so I'm using Mybatis for it. but when I try to get the data the MyBatis don't work and I keep getting the same error. I've tried to add the lines…
nadav3200
  • 11
  • 1
  • 5
-1
votes
1 answer

How can I customize application logs?

I'm working in an API Rest, and I need to have an specific log file named like my organization. When I'm creating or editing an organization my API must create its file if isn’t exists and then save its data. I already have this parameters in my…
Violet48
  • 1
  • 2
1 2 3
27
28