You can very well use a combination of both Spring based xml and java based config in your spring application.
You have to use
@ImportResource({"classpath:sampleapp.xml"})
along with
@Configuration
Look at the sample post below which explains it:
Mixing xml and java config with spring