Skip to content

Commit ae39db9

Browse files
author
Felix
committed
Initial commit
0 parents  commit ae39db9

33 files changed

+651
-0
lines changed

.gitattributes

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
# Auto detect text files and perform LF normalization
2+
* text=auto

.idea/libraries/Spring_4_3_12_RELEASE.xml

+27
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/misc.xml

+6
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/modules.xml

+8
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/workspace.xml

+516
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

HelloWorld.iml

+21
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<module type="JAVA_MODULE" version="4">
3+
<component name="FacetManager">
4+
<facet type="Spring" name="Spring">
5+
<configuration>
6+
<fileset id="fileset" name="Beans" removed="false">
7+
<file>file://$MODULE_DIR$/src/Beans.xml</file>
8+
</fileset>
9+
</configuration>
10+
</facet>
11+
</component>
12+
<component name="NewModuleRootManager" inherit-compiler-output="true">
13+
<exclude-output />
14+
<content url="file://$MODULE_DIR$">
15+
<sourceFolder url="file://$MODULE_DIR$/src" isTestSource="false" />
16+
</content>
17+
<orderEntry type="inheritedJdk" />
18+
<orderEntry type="sourceFolder" forTests="false" />
19+
<orderEntry type="library" name="Spring-4.3.12.RELEASE" level="project" />
20+
</component>
21+
</module>

lib/aopalliance-1.0.jar

4.36 KB
Binary file not shown.

lib/commons-logging-1.2.jar

60.4 KB
Binary file not shown.

lib/spring-aop-4.3.12.RELEASE.jar

371 KB
Binary file not shown.

lib/spring-aspects-4.3.12.RELEASE.jar

57.3 KB
Binary file not shown.

lib/spring-beans-4.3.12.RELEASE.jar

745 KB
Binary file not shown.

lib/spring-context-4.3.12.RELEASE.jar

1.09 MB
Binary file not shown.
183 KB
Binary file not shown.

lib/spring-core-4.3.12.RELEASE.jar

1.07 MB
Binary file not shown.
258 KB
Binary file not shown.
7.08 KB
Binary file not shown.
10.3 KB
Binary file not shown.

lib/spring-jdbc-4.3.12.RELEASE.jar

418 KB
Binary file not shown.

lib/spring-jms-4.3.12.RELEASE.jar

283 KB
Binary file not shown.
376 KB
Binary file not shown.

lib/spring-orm-4.3.12.RELEASE.jar

466 KB
Binary file not shown.

lib/spring-oxm-4.3.12.RELEASE.jar

83.3 KB
Binary file not shown.

lib/spring-test-4.3.12.RELEASE.jar

588 KB
Binary file not shown.

lib/spring-tx-4.3.12.RELEASE.jar

261 KB
Binary file not shown.

out/production/HelloWorld/Beans.xml

+16
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
<?xml version = "1.0" encoding = "UTF-8"?>
2+
3+
<beans xmlns = "http://www.springframework.org/schema/beans"
4+
xmlns:xsi = "http://www.w3.org/2001/XMLSchema-instance"
5+
xsi:schemaLocation = "http://www.springframework.org/schema/beans
6+
http://www.springframework.org/schema/beans/spring-beans-3.0.xsd">
7+
8+
<bean id = "helloWorld" class = "com.tutorialspoint.HelloWorld">
9+
<property name = "message" value = "Hello World!"/>
10+
</bean>
11+
<bean id = "gdayM8" class = "com.tutorialspoint.HelloWorld">
12+
<property name = "message" value = "G'Day maaaaaaaaaaate!"/>
13+
</bean>
14+
15+
16+
</beans>
Binary file not shown.
Binary file not shown.

out/production/Test/Beans.xml

+12
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
<?xml version = "1.0" encoding = "UTF-8"?>
2+
3+
<beans xmlns = "http://www.springframework.org/schema/beans"
4+
xmlns:xsi = "http://www.w3.org/2001/XMLSchema-instance"
5+
xsi:schemaLocation = "http://www.springframework.org/schema/beans
6+
http://www.springframework.org/schema/beans/spring-beans-3.0.xsd">
7+
8+
<bean id = "helloWorld" class = "com.tutorialspoint.HelloWorld">
9+
<property name = "message" value = "Hello World!"/>
10+
</bean>
11+
12+
</beans>
Binary file not shown.
Binary file not shown.

src/Beans.xml

+16
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
<?xml version = "1.0" encoding = "UTF-8"?>
2+
3+
<beans xmlns = "http://www.springframework.org/schema/beans"
4+
xmlns:xsi = "http://www.w3.org/2001/XMLSchema-instance"
5+
xsi:schemaLocation = "http://www.springframework.org/schema/beans
6+
http://www.springframework.org/schema/beans/spring-beans-3.0.xsd">
7+
8+
<bean id = "helloWorld" class = "com.tutorialspoint.HelloWorld">
9+
<property name = "message" value = "Hello World!"/>
10+
</bean>
11+
<bean id = "gdayM8" class = "com.tutorialspoint.HelloWorld">
12+
<property name = "message" value = "G'Day maaaaaaaaaaate!"/>
13+
</bean>
14+
15+
16+
</beans>
+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
package com.tutorialspoint;
2+
3+
public class HelloWorld {
4+
private String message;
5+
6+
public void setMessage(String message){
7+
this.message = message;
8+
}
9+
10+
public void getMessage(){
11+
System.out.println("Your message : " + message);
12+
}
13+
}

src/com/tutorialspoint/MainApp.java

+14
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
package com.tutorialspoint;
2+
3+
import org.springframework.context.ApplicationContext;
4+
import org.springframework.context.support.ClassPathXmlApplicationContext;
5+
6+
public class MainApp {
7+
public static void main(String[] args) {
8+
ApplicationContext context = new ClassPathXmlApplicationContext("Beans.xml");
9+
HelloWorld obj = (HelloWorld) context.getBean("helloWorld");
10+
HelloWorld obj2 = (HelloWorld) context.getBean("gdayM8");
11+
obj2.getMessage();
12+
obj.getMessage();
13+
}
14+
}

0 commit comments

Comments
 (0)