Skip to content

Sample application using Spring @value annotation to inject primitive values from property file into servlet.

Notifications You must be signed in to change notification settings

lukas-vlcek/SpringValueAnnotationTest

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 

Repository files navigation

Spring @Value Annotation test

Purpose of this simple application is to test if Spring @Value annotation can be used to inject values into servlets that are managed by servlet container.

Installation

You should see a simple HTML page with two links: foo and bar

Clicking foo will display content of inject.properties file.

Clicking bar results into this exception. Now, I would like to know how to make lines 16 and 17 in Bar servlet working correctly (if it is possible at all).

Spring Forum

I created a new thread in Spring Community Forum. If you want to add comments, consider doing it there…

Spring JIRA Issue

I opened a bug in JIRA for this, you can follow it here: https://jira.springsource.org/browse/SPR-8574

About

Sample application using Spring @value annotation to inject primitive values from property file into servlet.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages