Denis Viktorov

Greenhorn
+ Follow
since Oct 29, 2012
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Denis Viktorov

Okay, i understand the problem.

Spring 3.1 by default loads not only my properties, but also environment vars/props.

In my situations Spring loads windows environment variables and among them was 'username' variable, which overrides my 'username' property.


11 years ago
Thanks for answer, Jeanne.

I found the problem. My config doesn't inject property when it names 'username'.
I changed name of property to 'pgUsername' and now it works perfectly.

And now I have another question: can somebody explain me why property with name 'username' don't work in my situation?

(sorry for bad English)
11 years ago
Hi all.

I have some problems with data source.
In that code:



PostgreSQL ignores username (and only username), in spite that it is set in property file:



It tries to connect via default systems username. Any ideas?
11 years ago