-
Nov 20th, 2012, 10:49 AM
#1
Resource Availability @Test / MVC
Hello friends -
New to Spring and STS so hopefully this isn't too dumb a question. Anyways, created a spring/mvc/hibernate project. Put some @RunWith(SpringJunit4ClassRunner) classes underneath /src/test/java. In src/main/resources/ I put applicationContext.xml + and similar files. Great. Ran some Junits and things were autowiring / applicationContexting, whatever.
Tried the MVC end. Wound up having to clone my /main/resources files into src/main/webapp/web-inf.
Whatever I tried, however, I could not seem to enable my classes in /scr/test/java to see resource files in /src/main/webpap/web-inf. Considering that I've got to keep things moving, I just have been keeping two copies of applicationContext.xml even though it's dumb as hell.
What am I doing wrong?
Thanks a lot.
brian
Tags for this Thread
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules