|
@@ -0,0 +1,14 @@
|
|
|
+package sloths.demo.jdbc;
|
|
|
+
|
|
|
+import org.springframework.context.support.ClassPathXmlApplicationContext;
|
|
|
+import org.springframework.jdbc.core.JdbcTemplate;
|
|
|
+
|
|
|
+public class Application {
|
|
|
+ public static void main(String[] args) {
|
|
|
+
|
|
|
+ ClassPathXmlApplicationContext context = new ClassPathXmlApplicationContext("jdbc.xml");
|
|
|
+
|
|
|
+ JdbcTemplate template = context.getBean("jdbcTemplate", JdbcTemplate.class);
|
|
|
+
|
|
|
+ }
|
|
|
+}
|