Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @Configuration
- public class DataSourceConfiguration {
- // This is the last code section from that link above
- @Resource(lookup = "jdbc/oracle")
- DataSource ds;
- @Bean
- public DataSource mySpringManagedDS() {
- return new DelegatingDataSource(ds);
- }
- }
Add Comment
Please, Sign In to add comment