We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8811d40 commit 3b1d5adCopy full SHA for 3b1d5ad
Spring_part_2/src/main/java/spring/oldboy/lesson_12/MyOwnTransactionDemo.java
@@ -0,0 +1,16 @@
1
+package spring.oldboy.lesson_12;
2
+
3
+import org.springframework.context.support.ClassPathXmlApplicationContext;
4
+import spring.oldboy.repository.CrudRepository;
5
6
+public class MyOwnTransactionDemo {
7
+ public static void main(String[] args) {
8
9
+ try (var context = new ClassPathXmlApplicationContext("application.xml")) {
10
11
+ CrudRepository companyRepository =
12
+ context.getBean("companyRepository", CrudRepository.class);
13
+ System.out.println(companyRepository.findById(1));
14
+ }
15
16
+}
0 commit comments