Thursday, 8 December 2011

STS: Updating Namespace List in Spring Bean Configuration Files (Maven)

STS provides a nice wizard for constructing Spring configuration files.  Right click on Project or destination directory, then New->Spring->Spring Bean Configuration File.

You can pick XSD namespaces from a list, which saves cut-and-pasting them from an another configuration file, ripping them off a blog or - heaven forbid - trying to write them yourself.

You may find the namespace list is intitially empty.  To fix this add desired dependancy jars to your Maven pom.  [May be necessary: right click on project->Maven->Update Dependencies].  If your config file is already open, close and re-open it and then click on the "Namespace" tab to select from the namespace list:


No comments:

Post a Comment