Link to home
Start Free TrialLog in
Avatar of chalie001
chalie001

asked on

error adding data source

hi where do i add this
 @Bean
    DataSource dataSource() throws SQLException {
        OracleDataSource dataSource = new OracleDataSource();
        dataSource.setUser(username);
        dataSource.setPassword(password);
        dataSource.setURL(url);
        dataSource.setImplicitCachingEnabled(true);
        dataSource.setFastConnectionFailoverEnabled(true);
        return dataSource;
    }

Open in new window

mavenerror3.jpg
Avatar of girionis
girionis
Flag of Greece image

If you're using Spring Boot add it in your Application.java.
IT depends  ->  under Config / WebMvc.java
This question needs an answer!
Become an EE member today
7 DAY FREE TRIAL
Members can start a 7-Day Free trial then enjoy unlimited access to the platform.
View membership options
or
Learn why we charge membership fees
We get it - no one likes a content blocker. Take one extra minute and find out why we block content.