pepite / Play--framework-Spring-module

A module to interface Spring and the Play! framework
40 stars 24 forks source link

Use Play.classloader for resource files #4

Closed schaloner closed 13 years ago

schaloner commented 13 years ago

If you choose to put your test-specific application context in the test/ directory, SpringPlugin can't find it using this.getClass().getClassLoader().getResource(...). Using Play.classloader.getResource(...) fixes this.

pepite commented 13 years ago

I will add that ASAP

Nico

laurikimmel commented 13 years ago

Changing

this.getClass().getClassLoader().getResource(...)

to

Play.classloader.getResource(...)

will fix also issue #5.

New release of play-spring module would be nice =)