From 8a72e1a13159200a40fef097d96447fd3131e7f8 Mon Sep 17 00:00:00 2001 From: DmitriyMX Date: Sun, 8 Apr 2018 13:35:04 +0300 Subject: [PATCH] Hello, Spring! --- pom.xml | 116 ++++++++++++++++++++++++++++++++ src/main/java/mc/core/Main.java | 14 ++++ src/main/resources/log4j2.xml | 13 ++++ src/main/resources/spring.xml | 5 ++ 4 files changed, 148 insertions(+) create mode 100644 pom.xml create mode 100644 src/main/java/mc/core/Main.java create mode 100644 src/main/resources/log4j2.xml create mode 100644 src/main/resources/spring.xml diff --git a/pom.xml b/pom.xml new file mode 100644 index 0000000..9822425 --- /dev/null +++ b/pom.xml @@ -0,0 +1,116 @@ + + + 4.0.0 + MC Core + + mc + core + 1.0-SNAPSHOT + + + UTF-8 + 1.8 + 1.7.21 + 2.5 + 4.2.5.RELEASE + + + + + + org.slf4j + slf4j-api + ${slf4j.version} + + + org.slf4j + jcl-over-slf4j + ${slf4j.version} + + + org.apache.logging.log4j + log4j-core + ${log4j.version} + + + org.apache.logging.log4j + log4j-slf4j-impl + ${log4j.version} + + + + + org.springframework + spring-context + ${spring.version} + + + commons-logging + commons-logging + + + + + + + org.projectlombok + lombok + 1.16.16 + + + + + ${project.artifactId}-${project.version} + + + org.apache.maven.plugins + maven-compiler-plugin + 3.5.1 + + ${java.version} + ${java.version} + ${project.build.sourceEncoding} + + + + org.apache.maven.plugins + maven-surefire-plugin + 2.15 + + -Dfile.encoding=${project.build.sourceEncoding} + + + + + org.apache.maven.plugins + maven-jar-plugin + 2.4 + + + + true + dependency/ + + + + + + org.apache.maven.plugins + maven-dependency-plugin + 2.8 + + + copy-dependencies + package + + copy-dependencies + + + + + + + + \ No newline at end of file diff --git a/src/main/java/mc/core/Main.java b/src/main/java/mc/core/Main.java new file mode 100644 index 0000000..19d18dc --- /dev/null +++ b/src/main/java/mc/core/Main.java @@ -0,0 +1,14 @@ +/* + * DmitriyMX + * 2018-04-08 + */ +package mc.core; + +import org.springframework.context.ApplicationContext; +import org.springframework.context.support.ClassPathXmlApplicationContext; + +public class Main { + public static void main(String[] args) { + ApplicationContext context = new ClassPathXmlApplicationContext("spring.xml"); + } +} diff --git a/src/main/resources/log4j2.xml b/src/main/resources/log4j2.xml new file mode 100644 index 0000000..2da8a36 --- /dev/null +++ b/src/main/resources/log4j2.xml @@ -0,0 +1,13 @@ + + + + + + + + + + + + + \ No newline at end of file diff --git a/src/main/resources/spring.xml b/src/main/resources/spring.xml new file mode 100644 index 0000000..60dc04d --- /dev/null +++ b/src/main/resources/spring.xml @@ -0,0 +1,5 @@ + + + \ No newline at end of file