package ncs.app.co.za;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.CommandLineRunner;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
import org.springframework.context.ApplicationContext;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.ImportResource;
@SpringBootApplication
public class NcsApp {
@Autowired
NocIigJDBCTemplate iigJDBCTempalate;
public static void main(String[] args) {
// TODO Auto-generated method stub
SpringApplication.run(NcsApp.class, args);
}
@Bean
public CommandLineRunner commandLineRunner(ApplicationContext ctx) {
return args -> {
final NocIigJDBCTemplate iigJDBCTempalate = (NocIigJDBCTemplate) ctx.getBean("NocIigJDBCTemplate");
System.out.println("Listing iig records : ");
iigJDBCTempalate.displayEmpList();
};
}
}
Experts Exchange always has the answer, or at the least points me in the correct direction! It is like having another employee that is extremely experienced.
When asked, what has been your best career decision?
Deciding to stick with EE.
Being involved with EE helped me to grow personally and professionally.
Connect with Certified Experts to gain insight and support on specific technology challenges including:
We've partnered with two important charities to provide clean water and computer science education to those who need it most. READ MORE