Questions tagged [property-placeholder]
77 questions
2
votes
3 answers
Show Placeholder Text in DataGridView Cells
I need to show a placeholder which contains a string in first two columns of the first row of datagrid view in Winforms. The placeholder is to be displayed when the datagrid is empty.

biff
- 79
- 1
- 2
- 13
2
votes
0 answers
passing placeholder value to dependency jar bean configuration
Hi I am developing a spring boot application which has a dependency on another project say B. The dependency jar of B has config file for all the bean injections. Now when I am creating a bean of class in project B in my project the definitions of…

Madie
- 231
- 3
- 10
2
votes
0 answers
Spring boot integration test with SpringApplicationConfiguration doesn't seem to resolve @Value annotation
I have an integration test set up like:
@RunWith(SpringJUnit4ClassRunner.class)
@SpringApplicationConfiguration(classes = {XmlFileSplitter.class, ...})
public class XmlFileSplitterTests { ..
In the XmlFileSplitter I have a property that is…

IHaanstra
- 196
- 1
- 9
2
votes
4 answers
@Value in my spring controller does not work
My controller has
@Value("${myProp}")
private String myProp;
@Bean
public static PropertySourcesPlaceholderConfigurer propertyConfigInDev() {
return new PropertySourcesPlaceholderConfigurer();
}
@RequestMapping(value = "myProp", method =…

Warren Goldman
- 85
- 1
- 3
- 7
2
votes
1 answer
flyway how to use placeholder in insert query inside SQL file
Application.properties
TM_ESCALATION_QUALIFICATION=SHIFT_LEADER
Application.java
@Value( "${TM_ESCALATION_QUALIFICATION}" )
String escalationQualification;
@Bean
InitializingBean printConfigurations(DataSource datasource) {
return () -> {
…

Pratap A.K
- 4,337
- 11
- 42
- 79
2
votes
1 answer
Reading external properties file
I am working with Spring MVC to develop this application. I am supposed to read from an external .properties file.
mvc-dispatcher-servlet.xml
…

user2522981
- 163
- 3
- 18
2
votes
0 answers
Retrieving merged properties in Spring
I am trying to get all the merged properties in my projects. Below is the section of my config file for properties.

Sumit Kumar
- 402
- 1
- 6
- 26
1
vote
3 answers
Post-processing YAML properties in Spring based on prefix to retrieve property from REST service
I have a Spring boot configuration YAML with something like
spring:
application:
name: my-app
a: a literal
b: <>
What i'm trying to do is to add some kind of resolver that will detect that the…

Hilikus
- 9,954
- 14
- 65
- 118
1
vote
1 answer
PHP PDOStatement correct placeholder
I would like to know if the PDOStatement object convert the placeholders according the DBMS. In the examples of the documentation we can see just two kinds of placehoders: :named and with question mark, but there is more, with $, for example.…

rplaurindo
- 1,277
- 14
- 23
1
vote
0 answers
Why does parameter injection in Bean A break property resolution Bean B? (Both of type of type PropertyPlaceholderConfigurer)
I have two PropertyPlaceholderConfigurer beans in my project.
Bean A: (Defined as XML)

worldbeater
- 321
- 1
- 4
- 10
1
vote
2 answers
How to change the colour of placeholder and input field of matInput field using of Angular material
In my code (see below) I want to set the colour of placeholder i.e Username and Password and a margin below it to white.
Means the Username and password text should be of white colour and border below it should also be of white colour as i am using…

Arpit Aggarwal
- 87
- 6
- 18
1
vote
3 answers
How to define properties in spring dsl in apache camel
How can I define the properties with Spring DSL in Apache Camel ? With Blueprint you can do it via:
…

akinKaplanoglu
- 728
- 2
- 8
- 26
1
vote
0 answers
Confige place holder in properties file with Java Code - Spring Boot
I have properties file in Spring Boot application , with end points mentioned as below :-
user.details = /api/{userID}/get-user
I am using POJO with @PropertySource, @Configuration to read values.
Now my requirement is to replace the userID value…

user2968937
- 73
- 11
1
vote
1 answer
How to use Spring's `PropertySourcesPlaceholderConfigurer` to read environment variable NOT system property
The Spring 3.1 PropertySourcesPlaceholderConfigurer javadoc says:
This class is designed as a general replacement for PropertyPlaceholderConfigurer in Spring 3.1 applications.
But I don't see an obvious way to replicate the functionality of…

0xbe5077ed
- 4,565
- 6
- 35
- 77
1
vote
2 answers
Resolving placeholders in Spring MVC 3.2.8
I have an application based on Spring Web model-view-controller (Spring MVC 3.2.8 ) and I want to resolve a placeholder
I have the file application.properties inside the folder /src/main/resources/config/
This is my…

La Carbonell
- 1,976
- 5
- 22
- 52