Skip to content

Instantly share code, notes, and snippets.

@aziz781
Created November 3, 2011 14:38
Show Gist options
  • Save aziz781/1336651 to your computer and use it in GitHub Desktop.
Save aziz781/1336651 to your computer and use it in GitHub Desktop.
Spring application with annotation based bean configuration
<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:context="http://www.springframework.org/schema/context"
xsi:schemaLocation="
http://www.springframework.org/schema/beans
http://www.springframework.org/schema/beans/spring-beans-2.5.xsd
http://www.springframework.org/schema/context
http://www.springframework.org/schema/context/spring-context-2.5.xsd">
<!-- Activates annotation-based bean configuration -->
<context:annotation-config />
<!-- Scans for application @Components to deploy -->
<context:component-scan base-package="uk.co.example.obs.buss" />
</beans>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment