diff --git a/.springBeans b/.springBeans index f88ad9b..1a6ad9c 100644 --- a/.springBeans +++ b/.springBeans @@ -8,7 +8,7 @@ src/main/resources/spring/applicationContext-dataSource.xml - src/main/resources/spring/applicationContext-jpa.xml + src/main/resources/spring/applicationContext-dao.xml diff --git a/src/main/resources/spring/applicationContext-jpa.xml b/src/main/resources/spring/applicationContext-dao.xml similarity index 50% rename from src/main/resources/spring/applicationContext-jpa.xml rename to src/main/resources/spring/applicationContext-dao.xml index 6a9c865..bcf2df6 100644 --- a/src/main/resources/spring/applicationContext-jpa.xml +++ b/src/main/resources/spring/applicationContext-dao.xml @@ -21,25 +21,6 @@ - - - - - - - - org/springframework/samples/petclinic - - - - - - - - + - - + + - - + + + + + + + + + org/springframework/samples/petclinic + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/src/main/resources/spring/applicationContext-jdbc.xml b/src/main/resources/spring/applicationContext-jdbc.xml deleted file mode 100644 index 7456dbc..0000000 --- a/src/main/resources/spring/applicationContext-jdbc.xml +++ /dev/null @@ -1,64 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/src/main/webapp/WEB-INF/web.xml b/src/main/webapp/WEB-INF/web.xml index b8dad07..75ba1b9 100644 --- a/src/main/webapp/WEB-INF/web.xml +++ b/src/main/webapp/WEB-INF/web.xml @@ -15,7 +15,10 @@ petclinic.root - + + spring.profiles.active + jdbc + contextConfigLocation - classpath:spring/applicationContext-jdbc.xml + classpath:spring/applicationContext-dao.xml