From 18dea69e3b92bf60ac41d9c5a25e91add15f1c87 Mon Sep 17 00:00:00 2001 From: lzh984294471 <984294471@qq.com> Date: Mon, 13 Jun 2016 22:05:11 +0800 Subject: [PATCH] new file: .gitignore new file: .idea/artifacts/mybatis_Web_exploded.xml new file: .idea/compiler.xml new file: .idea/copyright/profiles_settings.xml new file: .idea/findbugs-idea.xml new file: .idea/gradle.xml new file: .idea/misc.xml new file: .idea/modules.xml new file: .idea/modules/mybatis.iml new file: .idea/workspace.xml new file: build.gradle new file: settings.gradle new file: src/main/java/com/mybatis/util/Base.java new file: src/main/resources/mybatis.properties new file: src/main/webapp/WEB-INF/web.xml new file: src/main/webapp/index.jsp --- .gitignore | 7 + .idea/artifacts/mybatis_Web_exploded.xml | 13 + .idea/compiler.xml | 22 + .idea/copyright/profiles_settings.xml | 3 + .idea/findbugs-idea.xml | 226 ++++++ .idea/gradle.xml | 14 + .idea/misc.xml | 26 + .idea/modules.xml | 8 + .idea/modules/mybatis.iml | 232 ++++++ .idea/workspace.xml | 898 +++++++++++++++++++++++ build.gradle | 17 + settings.gradle | 2 + src/main/java/com/mybatis/util/Base.java | 39 + src/main/resources/mybatis.properties | 2 + src/main/webapp/WEB-INF/web.xml | 10 + src/main/webapp/index.jsp | 16 + 16 files changed, 1535 insertions(+) create mode 100644 .gitignore create mode 100644 .idea/artifacts/mybatis_Web_exploded.xml create mode 100644 .idea/compiler.xml create mode 100644 .idea/copyright/profiles_settings.xml create mode 100644 .idea/findbugs-idea.xml create mode 100644 .idea/gradle.xml create mode 100644 .idea/misc.xml create mode 100644 .idea/modules.xml create mode 100644 .idea/modules/mybatis.iml create mode 100644 .idea/workspace.xml create mode 100644 build.gradle create mode 100644 settings.gradle create mode 100644 src/main/java/com/mybatis/util/Base.java create mode 100644 src/main/resources/mybatis.properties create mode 100644 src/main/webapp/WEB-INF/web.xml create mode 100644 src/main/webapp/index.jsp diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..e074097 --- /dev/null +++ b/.gitignore @@ -0,0 +1,7 @@ +.idea/* +.idea/ +out/* +out/ +classes/* +classes/ + diff --git a/.idea/artifacts/mybatis_Web_exploded.xml b/.idea/artifacts/mybatis_Web_exploded.xml new file mode 100644 index 0000000..4ad8303 --- /dev/null +++ b/.idea/artifacts/mybatis_Web_exploded.xml @@ -0,0 +1,13 @@ + + + $PROJECT_DIR$/out/artifacts/mybatis_Web_exploded + + + + + + + + + + \ No newline at end of file diff --git a/.idea/compiler.xml b/.idea/compiler.xml new file mode 100644 index 0000000..96cc43e --- /dev/null +++ b/.idea/compiler.xml @@ -0,0 +1,22 @@ + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/.idea/copyright/profiles_settings.xml b/.idea/copyright/profiles_settings.xml new file mode 100644 index 0000000..e7bedf3 --- /dev/null +++ b/.idea/copyright/profiles_settings.xml @@ -0,0 +1,3 @@ + + + \ No newline at end of file diff --git a/.idea/findbugs-idea.xml b/.idea/findbugs-idea.xml new file mode 100644 index 0000000..cc8b77f --- /dev/null +++ b/.idea/findbugs-idea.xml @@ -0,0 +1,226 @@ + + + + + + + + + + \ No newline at end of file diff --git a/.idea/gradle.xml b/.idea/gradle.xml new file mode 100644 index 0000000..00ea519 --- /dev/null +++ b/.idea/gradle.xml @@ -0,0 +1,14 @@ + + + + + + \ No newline at end of file diff --git a/.idea/misc.xml b/.idea/misc.xml new file mode 100644 index 0000000..c6d8fb7 --- /dev/null +++ b/.idea/misc.xml @@ -0,0 +1,26 @@ + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/.idea/modules.xml b/.idea/modules.xml new file mode 100644 index 0000000..85da630 --- /dev/null +++ b/.idea/modules.xml @@ -0,0 +1,8 @@ + + + + + + + + \ No newline at end of file diff --git a/.idea/modules/mybatis.iml b/.idea/modules/mybatis.iml new file mode 100644 index 0000000..d924d86 --- /dev/null +++ b/.idea/modules/mybatis.iml @@ -0,0 +1,232 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/.idea/workspace.xml b/.idea/workspace.xml new file mode 100644 index 0000000..b47cebe --- /dev/null +++ b/.idea/workspace.xml @@ -0,0 +1,898 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + true + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 1465825496270 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + mybatis:Web exploded + + + + + + + + Detection + + + + + + + + + + + + + + + 1.8 + + + + + + + + mybatis + + + + + + + + 1.8 + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/build.gradle b/build.gradle new file mode 100644 index 0000000..e145620 --- /dev/null +++ b/build.gradle @@ -0,0 +1,17 @@ +group 'mybatis' +version '1.0-SNAPSHOT' + +apply plugin: 'groovy' +apply plugin: 'java' +apply plugin: 'war' + +sourceCompatibility = 1.5 + +repositories { + mavenCentral() +} + +dependencies { + compile 'org.codehaus.groovy:groovy-all:2.3.11' + testCompile group: 'junit', name: 'junit', version: '4.11' +} diff --git a/settings.gradle b/settings.gradle new file mode 100644 index 0000000..c1a26f2 --- /dev/null +++ b/settings.gradle @@ -0,0 +1,2 @@ +rootProject.name = 'mybatis' + diff --git a/src/main/java/com/mybatis/util/Base.java b/src/main/java/com/mybatis/util/Base.java new file mode 100644 index 0000000..802ceb9 --- /dev/null +++ b/src/main/java/com/mybatis/util/Base.java @@ -0,0 +1,39 @@ +package com.mybatis.util; + +import java.io.IOException; +import java.io.InputStream; +import java.util.Properties; +/** + * Created by lzh on 16-6-13. + */ +public class Base { + private static Properties prop; + private static InputStream in; +// private static Logger + static { + prop = new Properties(); + in = Base.class.getResourceAsStream("/mybatis.properties"); + try { + prop.load(in); + } catch (IOException e) { + e.printStackTrace(); + }finally { + try { + in.close(); + } catch (IOException e) { + e.printStackTrace(); + } + } + } + + public static String getMapping(){ + return prop.getProperty("mapping").trim(); + } + + public static String getMapper(){ + return prop.getProperty("mapper").trim(); + } + public static void main(String[] args) { + System.out.println(Base.getMapping()); + } +} diff --git a/src/main/resources/mybatis.properties b/src/main/resources/mybatis.properties new file mode 100644 index 0000000..8f6d497 --- /dev/null +++ b/src/main/resources/mybatis.properties @@ -0,0 +1,2 @@ +mapping=com.thinker.mapping +mapper=com.thinker.mapper \ No newline at end of file diff --git a/src/main/webapp/WEB-INF/web.xml b/src/main/webapp/WEB-INF/web.xml new file mode 100644 index 0000000..3b54c58 --- /dev/null +++ b/src/main/webapp/WEB-INF/web.xml @@ -0,0 +1,10 @@ + + + + + \ No newline at end of file diff --git a/src/main/webapp/index.jsp b/src/main/webapp/index.jsp new file mode 100644 index 0000000..694aecf --- /dev/null +++ b/src/main/webapp/index.jsp @@ -0,0 +1,16 @@ +<%-- + Created by IntelliJ IDEA. + User: lzh + Date: 16-6-13 + Time: 下午9:44 + To change this template use File | Settings | File Templates. +--%> +<%@ page contentType="text/html;charset=UTF-8" language="java" %> + + + $Title$ + + + $END$ + +