From de530f5f30b666516c57626c5ceca0c46b4917a6 Mon Sep 17 00:00:00 2001 From: zeekling Date: Thu, 8 Apr 2021 22:27:03 +0800 Subject: [PATCH] =?UTF-8?q?=E5=88=9B=E5=BB=BAmvn=E9=A1=B9=E7=9B=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .classpath | 49 +++++++++++++++++++ .gitignore | 5 ++ .project | 34 +++++++++++++ .settings/org.eclipse.jdt.apt.core.prefs | 2 + .settings/org.eclipse.jdt.core.prefs | 9 ++++ .settings/org.eclipse.m2e.core.prefs | 4 ++ .vscode/settings.json | 3 ++ pom.xml | 32 ++++++++++++ src/main/java/com/zeekling/packages.java | 3 ++ .../zeekling/string/StringBuilderTest.java | 13 +++++ src/main/webapp/WEB-INF/web.xml | 7 +++ src/main/webapp/index.jsp | 5 ++ 12 files changed, 166 insertions(+) create mode 100644 .classpath create mode 100644 .gitignore create mode 100644 .project create mode 100644 .settings/org.eclipse.jdt.apt.core.prefs create mode 100644 .settings/org.eclipse.jdt.core.prefs create mode 100644 .settings/org.eclipse.m2e.core.prefs create mode 100644 .vscode/settings.json create mode 100644 pom.xml create mode 100644 src/main/java/com/zeekling/packages.java create mode 100644 src/main/java/com/zeekling/string/StringBuilderTest.java create mode 100644 src/main/webapp/WEB-INF/web.xml create mode 100644 src/main/webapp/index.jsp diff --git a/.classpath b/.classpath new file mode 100644 index 0000000..39abf1c --- /dev/null +++ b/.classpath @@ -0,0 +1,49 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..4b806d7 --- /dev/null +++ b/.gitignore @@ -0,0 +1,5 @@ +.idea +.setting +*.iml +*.class +target diff --git a/.project b/.project new file mode 100644 index 0000000..ad9713e --- /dev/null +++ b/.project @@ -0,0 +1,34 @@ + + + java + + + + + + org.eclipse.jdt.core.javabuilder + + + + + org.eclipse.m2e.core.maven2Builder + + + + + + org.eclipse.jdt.core.javanature + org.eclipse.m2e.core.maven2Nature + + + + 1617801945368 + + 30 + + org.eclipse.core.resources.regexFilterMatcher + node_modules|.git|__CREATED_BY_JAVA_LANGUAGE_SERVER__ + + + + diff --git a/.settings/org.eclipse.jdt.apt.core.prefs b/.settings/org.eclipse.jdt.apt.core.prefs new file mode 100644 index 0000000..d4313d4 --- /dev/null +++ b/.settings/org.eclipse.jdt.apt.core.prefs @@ -0,0 +1,2 @@ +eclipse.preferences.version=1 +org.eclipse.jdt.apt.aptEnabled=false diff --git a/.settings/org.eclipse.jdt.core.prefs b/.settings/org.eclipse.jdt.core.prefs new file mode 100644 index 0000000..1b6e1ef --- /dev/null +++ b/.settings/org.eclipse.jdt.core.prefs @@ -0,0 +1,9 @@ +eclipse.preferences.version=1 +org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.8 +org.eclipse.jdt.core.compiler.compliance=1.8 +org.eclipse.jdt.core.compiler.problem.enablePreviewFeatures=disabled +org.eclipse.jdt.core.compiler.problem.forbiddenReference=warning +org.eclipse.jdt.core.compiler.problem.reportPreviewFeatures=ignore +org.eclipse.jdt.core.compiler.processAnnotations=disabled +org.eclipse.jdt.core.compiler.release=disabled +org.eclipse.jdt.core.compiler.source=1.8 diff --git a/.settings/org.eclipse.m2e.core.prefs b/.settings/org.eclipse.m2e.core.prefs new file mode 100644 index 0000000..f897a7f --- /dev/null +++ b/.settings/org.eclipse.m2e.core.prefs @@ -0,0 +1,4 @@ +activeProfiles= +eclipse.preferences.version=1 +resolveWorkspaceProjects=true +version=1 diff --git a/.vscode/settings.json b/.vscode/settings.json new file mode 100644 index 0000000..c5f3f6b --- /dev/null +++ b/.vscode/settings.json @@ -0,0 +1,3 @@ +{ + "java.configuration.updateBuildConfiguration": "interactive" +} \ No newline at end of file diff --git a/pom.xml b/pom.xml new file mode 100644 index 0000000..ec5bb3c --- /dev/null +++ b/pom.xml @@ -0,0 +1,32 @@ + + 4.0.0 + com.zeekling.test + java + war + 0.0.1-SNAPSHOT + java Maven Webapp + http://maven.apache.org + + + junit + junit + 3.8.1 + test + + + + java + + + org.apache.maven.plugins + maven-compiler-plugin + 3.1 + + 1.8 + 1.8 + + + + + diff --git a/src/main/java/com/zeekling/packages.java b/src/main/java/com/zeekling/packages.java new file mode 100644 index 0000000..f1dcf49 --- /dev/null +++ b/src/main/java/com/zeekling/packages.java @@ -0,0 +1,3 @@ +package com.zeekling; + + diff --git a/src/main/java/com/zeekling/string/StringBuilderTest.java b/src/main/java/com/zeekling/string/StringBuilderTest.java new file mode 100644 index 0000000..5ab53f5 --- /dev/null +++ b/src/main/java/com/zeekling/string/StringBuilderTest.java @@ -0,0 +1,13 @@ +package com.zeekling.string; + + +public class StringBuilderTest { + + public static void main(String[] args) { + StringBuffer s1=new StringBuffer(10); + s1.append("1234"); + System.out.println(s1.length()); + System.out.println(s1.capacity()); + } + +} diff --git a/src/main/webapp/WEB-INF/web.xml b/src/main/webapp/WEB-INF/web.xml new file mode 100644 index 0000000..9f88c1f --- /dev/null +++ b/src/main/webapp/WEB-INF/web.xml @@ -0,0 +1,7 @@ + + + + Archetype Created Web Application + diff --git a/src/main/webapp/index.jsp b/src/main/webapp/index.jsp new file mode 100644 index 0000000..c38169b --- /dev/null +++ b/src/main/webapp/index.jsp @@ -0,0 +1,5 @@ + + +

Hello World!

+ +