Skip to content

Instantly share code, notes, and snippets.

@javaeeeee
Created February 25, 2017 20:30
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save javaeeeee/4b8a758fa2181df9a2789190c397eb0f to your computer and use it in GitHub Desktop.
Save javaeeeee/4b8a758fa2181df9a2789190c397eb0f to your computer and use it in GitHub Desktop.
An example of Spring XML configuration file
<?xml version="1.0" encoding="windows-1252"?>
<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"
xmlns:mvc="http://www.springframework.org/schema/mvc"
xsi:schemaLocation="http://www.springframework.org/schema/beans
http://www.springframework.org/schema/beans/spring-beans-4.0.xsd
http://www.springframework.org/schema/context
http://www.springframework.org/schema/context/spring-context-4.0.xsd
http://www.springframework.org/schema/mvc
http://www.springframework.org/schema/mvc/spring-mvc-4.0.xsd">
<context:component-scan base-package="com.javaeeeee.springrest"/>
<mvc:annotation-driven />
</beans>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment