ソースを参照

Initial Commit

Kr Younger 6 年 前
コミット
2575d66129
共有100 個のファイルを変更した3344 個の追加0 個の削除を含む
  1. バイナリ
      .DS_Store
  2. バイナリ
      Spring-Boot-2.0.0.M7.a.RELEASE/.DS_Store
  3. バイナリ
      Spring-Boot-2.0.0.M7.a.RELEASE/01-spring-framework/.DS_Store
  4. バイナリ
      Spring-Boot-2.0.0.M7.a.RELEASE/01-spring-framework/simple-spring-webapp/.DS_Store
  5. 33
    0
      Spring-Boot-2.0.0.M7.a.RELEASE/01-spring-framework/simple-spring-webapp/.classpath
  6. 48
    0
      Spring-Boot-2.0.0.M7.a.RELEASE/01-spring-framework/simple-spring-webapp/.project
  7. 13
    0
      Spring-Boot-2.0.0.M7.a.RELEASE/01-spring-framework/simple-spring-webapp/.settings/.jsdtscope
  8. 8
    0
      Spring-Boot-2.0.0.M7.a.RELEASE/01-spring-framework/simple-spring-webapp/.settings/org.eclipse.jdt.core.prefs
  9. 4
    0
      Spring-Boot-2.0.0.M7.a.RELEASE/01-spring-framework/simple-spring-webapp/.settings/org.eclipse.m2e.core.prefs
  10. 11
    0
      Spring-Boot-2.0.0.M7.a.RELEASE/01-spring-framework/simple-spring-webapp/.settings/org.eclipse.wst.common.component
  11. 7
    0
      Spring-Boot-2.0.0.M7.a.RELEASE/01-spring-framework/simple-spring-webapp/.settings/org.eclipse.wst.common.project.facet.core.xml
  12. 1
    0
      Spring-Boot-2.0.0.M7.a.RELEASE/01-spring-framework/simple-spring-webapp/.settings/org.eclipse.wst.jsdt.ui.superType.container
  13. 1
    0
      Spring-Boot-2.0.0.M7.a.RELEASE/01-spring-framework/simple-spring-webapp/.settings/org.eclipse.wst.jsdt.ui.superType.name
  14. 2
    0
      Spring-Boot-2.0.0.M7.a.RELEASE/01-spring-framework/simple-spring-webapp/.settings/org.eclipse.wst.validation.prefs
  15. 31
    0
      Spring-Boot-2.0.0.M7.a.RELEASE/01-spring-framework/simple-spring-webapp/build.gradle
  16. 94
    0
      Spring-Boot-2.0.0.M7.a.RELEASE/01-spring-framework/simple-spring-webapp/pom.xml
  17. 1
    0
      Spring-Boot-2.0.0.M7.a.RELEASE/01-spring-framework/simple-spring-webapp/settings.gradle
  18. 29
    0
      Spring-Boot-2.0.0.M7.a.RELEASE/01-spring-framework/simple-spring-webapp/src/main/java/io/pivotal/workshop/web/SimpleController.java
  19. 14
    0
      Spring-Boot-2.0.0.M7.a.RELEASE/01-spring-framework/simple-spring-webapp/src/main/resources/logback.xml
  20. 16
    0
      Spring-Boot-2.0.0.M7.a.RELEASE/01-spring-framework/simple-spring-webapp/src/main/webapp/WEB-INF/applicationContext.xml
  21. 40
    0
      Spring-Boot-2.0.0.M7.a.RELEASE/01-spring-framework/simple-spring-webapp/src/main/webapp/WEB-INF/dispatcherServlet-servlet.xml
  22. 11
    0
      Spring-Boot-2.0.0.M7.a.RELEASE/01-spring-framework/simple-spring-webapp/src/main/webapp/WEB-INF/view/index.html
  23. 11
    0
      Spring-Boot-2.0.0.M7.a.RELEASE/01-spring-framework/simple-spring-webapp/src/main/webapp/WEB-INF/view/showMessage.html
  24. 45
    0
      Spring-Boot-2.0.0.M7.a.RELEASE/01-spring-framework/simple-spring-webapp/src/main/webapp/WEB-INF/web.xml
  25. バイナリ
      Spring-Boot-2.0.0.M7.a.RELEASE/02-spring-boot-overview/.DS_Store
  26. バイナリ
      Spring-Boot-2.0.0.M7.a.RELEASE/02-spring-boot-overview/directory-web/.DS_Store
  27. 31
    0
      Spring-Boot-2.0.0.M7.a.RELEASE/02-spring-boot-overview/directory-web/.classpath
  28. バイナリ
      Spring-Boot-2.0.0.M7.a.RELEASE/02-spring-boot-overview/directory-web/.mvn/wrapper/maven-wrapper.jar
  29. 1
    0
      Spring-Boot-2.0.0.M7.a.RELEASE/02-spring-boot-overview/directory-web/.mvn/wrapper/maven-wrapper.properties
  30. 40
    0
      Spring-Boot-2.0.0.M7.a.RELEASE/02-spring-boot-overview/directory-web/.project
  31. 5
    0
      Spring-Boot-2.0.0.M7.a.RELEASE/02-spring-boot-overview/directory-web/.settings/org.eclipse.core.resources.prefs
  32. 5
    0
      Spring-Boot-2.0.0.M7.a.RELEASE/02-spring-boot-overview/directory-web/.settings/org.eclipse.jdt.core.prefs
  33. 4
    0
      Spring-Boot-2.0.0.M7.a.RELEASE/02-spring-boot-overview/directory-web/.settings/org.eclipse.m2e.core.prefs
  34. 4
    0
      Spring-Boot-2.0.0.M7.a.RELEASE/02-spring-boot-overview/directory-web/.settings/org.eclipse.wst.common.project.facet.core.xml
  35. 37
    0
      Spring-Boot-2.0.0.M7.a.RELEASE/02-spring-boot-overview/directory-web/build.gradle
  36. バイナリ
      Spring-Boot-2.0.0.M7.a.RELEASE/02-spring-boot-overview/directory-web/gradle/wrapper/gradle-wrapper.jar
  37. 5
    0
      Spring-Boot-2.0.0.M7.a.RELEASE/02-spring-boot-overview/directory-web/gradle/wrapper/gradle-wrapper.properties
  38. 172
    0
      Spring-Boot-2.0.0.M7.a.RELEASE/02-spring-boot-overview/directory-web/gradlew
  39. 84
    0
      Spring-Boot-2.0.0.M7.a.RELEASE/02-spring-boot-overview/directory-web/gradlew.bat
  40. 225
    0
      Spring-Boot-2.0.0.M7.a.RELEASE/02-spring-boot-overview/directory-web/mvnw
  41. 143
    0
      Spring-Boot-2.0.0.M7.a.RELEASE/02-spring-boot-overview/directory-web/mvnw.cmd
  42. 101
    0
      Spring-Boot-2.0.0.M7.a.RELEASE/02-spring-boot-overview/directory-web/pom.xml
  43. 12
    0
      Spring-Boot-2.0.0.M7.a.RELEASE/02-spring-boot-overview/directory-web/src/main/java/io/pivotal/workshop/directory/DirectoryWebApplication.java
  44. 116
    0
      Spring-Boot-2.0.0.M7.a.RELEASE/02-spring-boot-overview/directory-web/src/main/java/io/pivotal/workshop/directory/controller/DirectoryController.java
  45. 109
    0
      Spring-Boot-2.0.0.M7.a.RELEASE/02-spring-boot-overview/directory-web/src/main/java/io/pivotal/workshop/directory/domain/Person.java
  46. 40
    0
      Spring-Boot-2.0.0.M7.a.RELEASE/02-spring-boot-overview/directory-web/src/main/java/io/pivotal/workshop/directory/error/PersonError.java
  47. 77
    0
      Spring-Boot-2.0.0.M7.a.RELEASE/02-spring-boot-overview/directory-web/src/main/java/io/pivotal/workshop/directory/repository/DirectoryRepository.java
  48. 2
    0
      Spring-Boot-2.0.0.M7.a.RELEASE/02-spring-boot-overview/directory-web/src/main/resources/application.properties
  49. 16
    0
      Spring-Boot-2.0.0.M7.a.RELEASE/02-spring-boot-overview/directory-web/src/test/java/io/pivotal/workshop/directory/DirectoryWebApplicationTests.java
  50. バイナリ
      Spring-Boot-2.0.0.M7.a.RELEASE/03-spring-boot-internals/.DS_Store
  51. バイナリ
      Spring-Boot-2.0.0.M7.a.RELEASE/03-spring-boot-internals/directory-web-internals/.DS_Store
  52. 36
    0
      Spring-Boot-2.0.0.M7.a.RELEASE/03-spring-boot-internals/directory-web-internals/.classpath
  53. 53
    0
      Spring-Boot-2.0.0.M7.a.RELEASE/03-spring-boot-internals/directory-web-internals/.factorypath
  54. バイナリ
      Spring-Boot-2.0.0.M7.a.RELEASE/03-spring-boot-internals/directory-web-internals/.mvn/wrapper/maven-wrapper.jar
  55. 1
    0
      Spring-Boot-2.0.0.M7.a.RELEASE/03-spring-boot-internals/directory-web-internals/.mvn/wrapper/maven-wrapper.properties
  56. 40
    0
      Spring-Boot-2.0.0.M7.a.RELEASE/03-spring-boot-internals/directory-web-internals/.project
  57. 5
    0
      Spring-Boot-2.0.0.M7.a.RELEASE/03-spring-boot-internals/directory-web-internals/.settings/org.eclipse.core.resources.prefs
  58. 2
    0
      Spring-Boot-2.0.0.M7.a.RELEASE/03-spring-boot-internals/directory-web-internals/.settings/org.eclipse.jdt.apt.core.prefs
  59. 6
    0
      Spring-Boot-2.0.0.M7.a.RELEASE/03-spring-boot-internals/directory-web-internals/.settings/org.eclipse.jdt.core.prefs
  60. 4
    0
      Spring-Boot-2.0.0.M7.a.RELEASE/03-spring-boot-internals/directory-web-internals/.settings/org.eclipse.m2e.core.prefs
  61. 4
    0
      Spring-Boot-2.0.0.M7.a.RELEASE/03-spring-boot-internals/directory-web-internals/.settings/org.eclipse.wst.common.project.facet.core.xml
  62. 42
    0
      Spring-Boot-2.0.0.M7.a.RELEASE/03-spring-boot-internals/directory-web-internals/build.gradle
  63. バイナリ
      Spring-Boot-2.0.0.M7.a.RELEASE/03-spring-boot-internals/directory-web-internals/gradle/.DS_Store
  64. バイナリ
      Spring-Boot-2.0.0.M7.a.RELEASE/03-spring-boot-internals/directory-web-internals/gradle/wrapper/gradle-wrapper.jar
  65. 5
    0
      Spring-Boot-2.0.0.M7.a.RELEASE/03-spring-boot-internals/directory-web-internals/gradle/wrapper/gradle-wrapper.properties
  66. 172
    0
      Spring-Boot-2.0.0.M7.a.RELEASE/03-spring-boot-internals/directory-web-internals/gradlew
  67. 84
    0
      Spring-Boot-2.0.0.M7.a.RELEASE/03-spring-boot-internals/directory-web-internals/gradlew.bat
  68. 225
    0
      Spring-Boot-2.0.0.M7.a.RELEASE/03-spring-boot-internals/directory-web-internals/mvnw
  69. 143
    0
      Spring-Boot-2.0.0.M7.a.RELEASE/03-spring-boot-internals/directory-web-internals/mvnw.cmd
  70. 114
    0
      Spring-Boot-2.0.0.M7.a.RELEASE/03-spring-boot-internals/directory-web-internals/pom.xml
  71. 12
    0
      Spring-Boot-2.0.0.M7.a.RELEASE/03-spring-boot-internals/directory-web-internals/src/main/java/io/pivotal/workshop/directory/DirectoryWebInternalsApplication.java
  72. 12
    0
      Spring-Boot-2.0.0.M7.a.RELEASE/03-spring-boot-internals/directory-web-internals/src/main/java/io/pivotal/workshop/directory/annotation/Audit.java
  73. 5
    0
      Spring-Boot-2.0.0.M7.a.RELEASE/03-spring-boot-internals/directory-web-internals/src/main/java/io/pivotal/workshop/directory/annotation/Auditor.java
  74. 74
    0
      Spring-Boot-2.0.0.M7.a.RELEASE/03-spring-boot-internals/directory-web-internals/src/main/java/io/pivotal/workshop/directory/aop/DirectoryAudit.java
  75. 20
    0
      Spring-Boot-2.0.0.M7.a.RELEASE/03-spring-boot-internals/directory-web-internals/src/main/java/io/pivotal/workshop/directory/aop/SimpleAudit.java
  76. 33
    0
      Spring-Boot-2.0.0.M7.a.RELEASE/03-spring-boot-internals/directory-web-internals/src/main/java/io/pivotal/workshop/directory/config/DirectoryConfig.java
  77. 29
    0
      Spring-Boot-2.0.0.M7.a.RELEASE/03-spring-boot-internals/directory-web-internals/src/main/java/io/pivotal/workshop/directory/config/DirectoryProperties.java
  78. 116
    0
      Spring-Boot-2.0.0.M7.a.RELEASE/03-spring-boot-internals/directory-web-internals/src/main/java/io/pivotal/workshop/directory/controller/DirectoryController.java
  79. 115
    0
      Spring-Boot-2.0.0.M7.a.RELEASE/03-spring-boot-internals/directory-web-internals/src/main/java/io/pivotal/workshop/directory/domain/Person.java
  80. 40
    0
      Spring-Boot-2.0.0.M7.a.RELEASE/03-spring-boot-internals/directory-web-internals/src/main/java/io/pivotal/workshop/directory/error/PersonError.java
  81. 79
    0
      Spring-Boot-2.0.0.M7.a.RELEASE/03-spring-boot-internals/directory-web-internals/src/main/java/io/pivotal/workshop/directory/repository/DirectoryRepository.java
  82. 9
    0
      Spring-Boot-2.0.0.M7.a.RELEASE/03-spring-boot-internals/directory-web-internals/src/main/resources/META-INF/additional-spring-configuration-metadata.json
  83. 6
    0
      Spring-Boot-2.0.0.M7.a.RELEASE/03-spring-boot-internals/directory-web-internals/src/main/resources/application.properties
  84. 16
    0
      Spring-Boot-2.0.0.M7.a.RELEASE/03-spring-boot-internals/directory-web-internals/src/test/java/io/pivotal/workshop/directory/DirectoryWebInternalsApplicationTests.java
  85. バイナリ
      Spring-Boot-2.0.0.M7.a.RELEASE/04-spring-boot-features/.DS_Store
  86. バイナリ
      Spring-Boot-2.0.0.M7.a.RELEASE/04-spring-boot-features/directory-web-features/.DS_Store
  87. 36
    0
      Spring-Boot-2.0.0.M7.a.RELEASE/04-spring-boot-features/directory-web-features/.classpath
  88. 53
    0
      Spring-Boot-2.0.0.M7.a.RELEASE/04-spring-boot-features/directory-web-features/.factorypath
  89. バイナリ
      Spring-Boot-2.0.0.M7.a.RELEASE/04-spring-boot-features/directory-web-features/.mvn/wrapper/maven-wrapper.jar
  90. 1
    0
      Spring-Boot-2.0.0.M7.a.RELEASE/04-spring-boot-features/directory-web-features/.mvn/wrapper/maven-wrapper.properties
  91. 35
    0
      Spring-Boot-2.0.0.M7.a.RELEASE/04-spring-boot-features/directory-web-features/.project
  92. 5
    0
      Spring-Boot-2.0.0.M7.a.RELEASE/04-spring-boot-features/directory-web-features/.settings/org.eclipse.core.resources.prefs
  93. 2
    0
      Spring-Boot-2.0.0.M7.a.RELEASE/04-spring-boot-features/directory-web-features/.settings/org.eclipse.jdt.apt.core.prefs
  94. 6
    0
      Spring-Boot-2.0.0.M7.a.RELEASE/04-spring-boot-features/directory-web-features/.settings/org.eclipse.jdt.core.prefs
  95. 4
    0
      Spring-Boot-2.0.0.M7.a.RELEASE/04-spring-boot-features/directory-web-features/.settings/org.eclipse.m2e.core.prefs
  96. 4
    0
      Spring-Boot-2.0.0.M7.a.RELEASE/04-spring-boot-features/directory-web-features/.settings/org.eclipse.wst.common.project.facet.core.xml
  97. 42
    0
      Spring-Boot-2.0.0.M7.a.RELEASE/04-spring-boot-features/directory-web-features/build.gradle
  98. バイナリ
      Spring-Boot-2.0.0.M7.a.RELEASE/04-spring-boot-features/directory-web-features/gradle/wrapper/gradle-wrapper.jar
  99. 5
    0
      Spring-Boot-2.0.0.M7.a.RELEASE/04-spring-boot-features/directory-web-features/gradle/wrapper/gradle-wrapper.properties
  100. 0
    0
      Spring-Boot-2.0.0.M7.a.RELEASE/04-spring-boot-features/directory-web-features/gradlew

バイナリ
.DS_Store ファイルの表示


バイナリ
Spring-Boot-2.0.0.M7.a.RELEASE/.DS_Store ファイルの表示


バイナリ
Spring-Boot-2.0.0.M7.a.RELEASE/01-spring-framework/.DS_Store ファイルの表示


バイナリ
Spring-Boot-2.0.0.M7.a.RELEASE/01-spring-framework/simple-spring-webapp/.DS_Store ファイルの表示


+ 33
- 0
Spring-Boot-2.0.0.M7.a.RELEASE/01-spring-framework/simple-spring-webapp/.classpath ファイルの表示

@@ -0,0 +1,33 @@
1
+<?xml version="1.0" encoding="UTF-8"?>
2
+<classpath>
3
+	<classpathentry kind="src" output="target/classes" path="src/main/java">
4
+		<attributes>
5
+			<attribute name="optional" value="true"/>
6
+			<attribute name="maven.pomderived" value="true"/>
7
+		</attributes>
8
+	</classpathentry>
9
+	<classpathentry excluding="**" kind="src" output="target/classes" path="src/main/resources">
10
+		<attributes>
11
+			<attribute name="maven.pomderived" value="true"/>
12
+		</attributes>
13
+	</classpathentry>
14
+	<classpathentry kind="src" output="target/test-classes" path="src/test/java">
15
+		<attributes>
16
+			<attribute name="optional" value="true"/>
17
+			<attribute name="maven.pomderived" value="true"/>
18
+		</attributes>
19
+	</classpathentry>
20
+	<classpathentry kind="src" path="src/main/webapp"/>
21
+	<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/J2SE-1.5">
22
+		<attributes>
23
+			<attribute name="maven.pomderived" value="true"/>
24
+		</attributes>
25
+	</classpathentry>
26
+	<classpathentry kind="con" path="org.eclipse.m2e.MAVEN2_CLASSPATH_CONTAINER">
27
+		<attributes>
28
+			<attribute name="maven.pomderived" value="true"/>
29
+			<attribute name="org.eclipse.jst.component.dependency" value="/WEB-INF/lib"/>
30
+		</attributes>
31
+	</classpathentry>
32
+	<classpathentry kind="output" path="target/classes"/>
33
+</classpath>

+ 48
- 0
Spring-Boot-2.0.0.M7.a.RELEASE/01-spring-framework/simple-spring-webapp/.project ファイルの表示

@@ -0,0 +1,48 @@
1
+<?xml version="1.0" encoding="UTF-8"?>
2
+<projectDescription>
3
+	<name>simple-spring-webapp</name>
4
+	<comment></comment>
5
+	<projects>
6
+	</projects>
7
+	<buildSpec>
8
+		<buildCommand>
9
+			<name>org.eclipse.jdt.core.javabuilder</name>
10
+			<arguments>
11
+			</arguments>
12
+		</buildCommand>
13
+		<buildCommand>
14
+			<name>org.eclipse.wst.common.project.facet.core.builder</name>
15
+			<arguments>
16
+			</arguments>
17
+		</buildCommand>
18
+		<buildCommand>
19
+			<name>org.eclipse.m2e.core.maven2Builder</name>
20
+			<arguments>
21
+			</arguments>
22
+		</buildCommand>
23
+		<buildCommand>
24
+			<name>org.eclipse.wst.validation.validationbuilder</name>
25
+			<arguments>
26
+			</arguments>
27
+		</buildCommand>
28
+		<buildCommand>
29
+			<name>org.springframework.ide.eclipse.core.springbuilder</name>
30
+			<arguments>
31
+			</arguments>
32
+		</buildCommand>
33
+		<buildCommand>
34
+			<name>org.springframework.ide.eclipse.boot.validation.springbootbuilder</name>
35
+			<arguments>
36
+			</arguments>
37
+		</buildCommand>
38
+	</buildSpec>
39
+	<natures>
40
+		<nature>org.springframework.ide.eclipse.core.springnature</nature>
41
+		<nature>org.eclipse.jem.workbench.JavaEMFNature</nature>
42
+		<nature>org.eclipse.wst.common.modulecore.ModuleCoreNature</nature>
43
+		<nature>org.eclipse.jdt.core.javanature</nature>
44
+		<nature>org.eclipse.m2e.core.maven2Nature</nature>
45
+		<nature>org.eclipse.wst.common.project.facet.core.nature</nature>
46
+		<nature>org.eclipse.wst.jsdt.core.jsNature</nature>
47
+	</natures>
48
+</projectDescription>

+ 13
- 0
Spring-Boot-2.0.0.M7.a.RELEASE/01-spring-framework/simple-spring-webapp/.settings/.jsdtscope ファイルの表示

@@ -0,0 +1,13 @@
1
+<?xml version="1.0" encoding="UTF-8"?>
2
+<classpath>
3
+	<classpathentry excluding="**/bower_components/*|**/node_modules/*|**/*.min.js" kind="src" path="src/main/webapp"/>
4
+	<classpathentry kind="src" path="target/m2e-wtp/web-resources"/>
5
+	<classpathentry kind="con" path="org.eclipse.wst.jsdt.launching.JRE_CONTAINER"/>
6
+	<classpathentry kind="con" path="org.eclipse.wst.jsdt.launching.WebProject">
7
+		<attributes>
8
+			<attribute name="hide" value="true"/>
9
+		</attributes>
10
+	</classpathentry>
11
+	<classpathentry kind="con" path="org.eclipse.wst.jsdt.launching.baseBrowserLibrary"/>
12
+	<classpathentry kind="output" path=""/>
13
+</classpath>

+ 8
- 0
Spring-Boot-2.0.0.M7.a.RELEASE/01-spring-framework/simple-spring-webapp/.settings/org.eclipse.jdt.core.prefs ファイルの表示

@@ -0,0 +1,8 @@
1
+eclipse.preferences.version=1
2
+org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled
3
+org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.5
4
+org.eclipse.jdt.core.compiler.compliance=1.5
5
+org.eclipse.jdt.core.compiler.problem.assertIdentifier=error
6
+org.eclipse.jdt.core.compiler.problem.enumIdentifier=error
7
+org.eclipse.jdt.core.compiler.problem.forbiddenReference=warning
8
+org.eclipse.jdt.core.compiler.source=1.5

+ 4
- 0
Spring-Boot-2.0.0.M7.a.RELEASE/01-spring-framework/simple-spring-webapp/.settings/org.eclipse.m2e.core.prefs ファイルの表示

@@ -0,0 +1,4 @@
1
+activeProfiles=
2
+eclipse.preferences.version=1
3
+resolveWorkspaceProjects=true
4
+version=1

+ 11
- 0
Spring-Boot-2.0.0.M7.a.RELEASE/01-spring-framework/simple-spring-webapp/.settings/org.eclipse.wst.common.component ファイルの表示

@@ -0,0 +1,11 @@
1
+<?xml version="1.0" encoding="UTF-8"?><project-modules id="moduleCoreId" project-version="1.5.0">
2
+    <wb-module deploy-name="simple-spring-webapp">
3
+        <wb-resource deploy-path="/" source-path="/target/m2e-wtp/web-resources"/>
4
+        <wb-resource deploy-path="/" source-path="/src/main/webapp" tag="defaultRootSource"/>
5
+        <wb-resource deploy-path="/WEB-INF/classes" source-path="/src/main/java"/>
6
+        <wb-resource deploy-path="/WEB-INF/classes" source-path="/src/main/resources"/>
7
+        <wb-resource deploy-path="/WEB-INF/classes" source-path="/src/main/webapp"/>
8
+        <property name="context-root" value="simple-spring-webapp"/>
9
+        <property name="java-output-path" value="/simple-spring-webapp/target/classes"/>
10
+    </wb-module>
11
+</project-modules>

+ 7
- 0
Spring-Boot-2.0.0.M7.a.RELEASE/01-spring-framework/simple-spring-webapp/.settings/org.eclipse.wst.common.project.facet.core.xml ファイルの表示

@@ -0,0 +1,7 @@
1
+<?xml version="1.0" encoding="UTF-8"?>
2
+<faceted-project>
3
+  <fixed facet="wst.jsdt.web"/>
4
+  <installed facet="java" version="1.5"/>
5
+  <installed facet="jst.web" version="2.3"/>
6
+  <installed facet="wst.jsdt.web" version="1.0"/>
7
+</faceted-project>

+ 1
- 0
Spring-Boot-2.0.0.M7.a.RELEASE/01-spring-framework/simple-spring-webapp/.settings/org.eclipse.wst.jsdt.ui.superType.container ファイルの表示

@@ -0,0 +1 @@
1
+org.eclipse.wst.jsdt.launching.baseBrowserLibrary

+ 1
- 0
Spring-Boot-2.0.0.M7.a.RELEASE/01-spring-framework/simple-spring-webapp/.settings/org.eclipse.wst.jsdt.ui.superType.name ファイルの表示

@@ -0,0 +1 @@
1
+Window

+ 2
- 0
Spring-Boot-2.0.0.M7.a.RELEASE/01-spring-framework/simple-spring-webapp/.settings/org.eclipse.wst.validation.prefs ファイルの表示

@@ -0,0 +1,2 @@
1
+disabled=06target
2
+eclipse.preferences.version=1

+ 31
- 0
Spring-Boot-2.0.0.M7.a.RELEASE/01-spring-framework/simple-spring-webapp/build.gradle ファイルの表示

@@ -0,0 +1,31 @@
1
+apply plugin: 'java'
2
+apply plugin: 'maven'
3
+
4
+group = 'io.pivotal.workshop'
5
+version = '1.0-SNAPSHOT'
6
+
7
+description = """simple-spring-webapp Maven Webapp"""
8
+
9
+sourceCompatibility = 1.8
10
+targetCompatibility = 1.8
11
+
12
+
13
+
14
+repositories {
15
+        
16
+     maven { url "http://repo.maven.apache.org/maven2" }
17
+}
18
+dependencies {
19
+    compile group: 'org.springframework', name: 'spring-webmvc', version:'5.0.1.RELEASE'
20
+    compile group: 'org.springframework', name: 'spring-context', version:'5.0.1.RELEASE'
21
+    compile group: 'org.springframework', name: 'spring-aop', version:'5.0.1.RELEASE'
22
+    compile group: 'org.springframework', name: 'spring-web', version:'5.0.1.RELEASE'
23
+
24
+    compile group: 'org.thymeleaf', name: 'thymeleaf', version:'3.0.9.RELEASE'
25
+    compile group: 'org.thymeleaf', name: 'thymeleaf-spring5', version:'3.0.9.RELEASE'
26
+
27
+    compile group: 'org.slf4j', name: 'slf4j-api', version:'1.7.25'
28
+    compile group: 'ch.qos.logback', name: 'logback-classic', version:'1.2.3'
29
+
30
+    providedCompile group: 'javax.servlet', name: 'servlet-api', version:'3.1.0'
31
+}

+ 94
- 0
Spring-Boot-2.0.0.M7.a.RELEASE/01-spring-framework/simple-spring-webapp/pom.xml ファイルの表示

@@ -0,0 +1,94 @@
1
+<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
2
+	xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
3
+	<modelVersion>4.0.0</modelVersion>
4
+	<groupId>io.pivotal.workshop</groupId>
5
+	<artifactId>simple-spring-webapp</artifactId>
6
+	<packaging>war</packaging>
7
+	<version>1.0-SNAPSHOT</version>
8
+	<name>simple-spring-webapp Maven Webapp</name>
9
+	<url>http://maven.apache.org</url>
10
+	<parent>
11
+		<groupId>io.pivotal.education.boot</groupId>
12
+		<artifactId>parentProject</artifactId>
13
+		<version>1.0.a.RELEASE</version>
14
+		<relativePath>../../</relativePath>
15
+	</parent>
16
+	<properties>
17
+
18
+		<!-- Generic properties -->
19
+		<java.version>1.8</java.version>
20
+
21
+		<!-- Web -->
22
+		<servlet.version>3.1.0</servlet.version>
23
+
24
+		<!-- Spring -->
25
+		<spring-framework.version>5.0.1.RELEASE</spring-framework.version>
26
+
27
+		<!-- Thymeleaf -->
28
+		<thymeleaf.version>3.0.9.RELEASE</thymeleaf.version>
29
+
30
+		<!--  Logging -->
31
+		<slf4j.version>1.7.25</slf4j.version>
32
+		<logback.version>1.2.3</logback.version>
33
+	</properties>
34
+
35
+	<dependencies>
36
+
37
+		<!-- Spring MVC -->
38
+		<dependency>
39
+			<groupId>org.springframework</groupId>
40
+			<artifactId>spring-context</artifactId>
41
+			<version>${spring-framework.version}</version>
42
+		</dependency>
43
+		<dependency>
44
+			<groupId>org.springframework</groupId>
45
+			<artifactId>spring-aop</artifactId>
46
+			<version>${spring-framework.version}</version>
47
+		</dependency>
48
+		<dependency>
49
+			<groupId>org.springframework</groupId>
50
+			<artifactId>spring-webmvc</artifactId>
51
+			<version>${spring-framework.version}</version>
52
+		</dependency>
53
+		<dependency>
54
+			<groupId>org.springframework</groupId>
55
+			<artifactId>spring-web</artifactId>
56
+			<version>${spring-framework.version}</version>
57
+		</dependency>
58
+
59
+		<dependency>
60
+			<groupId>org.thymeleaf</groupId>
61
+			<artifactId>thymeleaf</artifactId>
62
+			<version>${thymeleaf.version}</version>
63
+		</dependency>
64
+		<dependency>
65
+			<groupId>org.thymeleaf</groupId>
66
+			<artifactId>thymeleaf-spring5</artifactId>
67
+			<version>${thymeleaf.version}</version>
68
+		</dependency>
69
+
70
+
71
+		<dependency>
72
+			<groupId>org.slf4j</groupId>
73
+			<artifactId>slf4j-api</artifactId>
74
+			<version>${slf4j.version}</version>
75
+		</dependency>
76
+		<dependency>
77
+			<groupId>ch.qos.logback</groupId>
78
+			<artifactId>logback-classic</artifactId>
79
+			<version>${logback.version}</version>
80
+		</dependency>
81
+
82
+		<!-- Other Web dependencies -->
83
+		<dependency>
84
+			<groupId>javax.servlet</groupId>
85
+			<artifactId>javax.servlet-api</artifactId>
86
+			<version>${servlet.version}</version>
87
+			<scope>provided</scope>
88
+		</dependency>
89
+	</dependencies>
90
+
91
+	<build>
92
+		<finalName>simple-spring-webapp</finalName>
93
+	</build>
94
+</project>

+ 1
- 0
Spring-Boot-2.0.0.M7.a.RELEASE/01-spring-framework/simple-spring-webapp/settings.gradle ファイルの表示

@@ -0,0 +1 @@
1
+rootProject.name = 'simple-spring-webapp'

+ 29
- 0
Spring-Boot-2.0.0.M7.a.RELEASE/01-spring-framework/simple-spring-webapp/src/main/java/io/pivotal/workshop/web/SimpleController.java ファイルの表示

@@ -0,0 +1,29 @@
1
+package io.pivotal.workshop.web;
2
+
3
+import org.slf4j.Logger;
4
+import org.slf4j.LoggerFactory;
5
+import org.springframework.stereotype.Controller;
6
+import org.springframework.web.bind.annotation.RequestMapping;
7
+import org.springframework.web.bind.annotation.RequestMethod;
8
+import org.springframework.web.servlet.ModelAndView;
9
+
10
+@Controller
11
+public class SimpleController{
12
+
13
+	Logger log = LoggerFactory.getLogger(SimpleController.class);
14
+
15
+	@RequestMapping("/")
16
+	public ModelAndView index(){
17
+		log.debug("About to redirect...");
18
+		return new ModelAndView("redirect:/showMessage");
19
+	}
20
+
21
+	@RequestMapping(value="/showMessage",method = RequestMethod.GET)
22
+	public ModelAndView helloWorld(){
23
+		final String message = "Simple Spring MVC Web App with Thymeleaf and Spring 5";
24
+ 		log.debug("Showing the Message: " + message);
25
+		ModelAndView model = new ModelAndView("showMessage");
26
+		model.addObject("message", message);
27
+		return model;
28
+	}
29
+}

+ 14
- 0
Spring-Boot-2.0.0.M7.a.RELEASE/01-spring-framework/simple-spring-webapp/src/main/resources/logback.xml ファイルの表示

@@ -0,0 +1,14 @@
1
+<configuration>
2
+    <appender name="STDOUT" class="ch.qos.logback.core.ConsoleAppender">
3
+        <encoder>
4
+            <pattern>%d{HH:mm:ss.SSS} [%thread] %-5level %logger{36} - %msg%n</pattern>
5
+        </encoder>
6
+    </appender>
7
+
8
+    <logger name="io.pivotal.workshop" level="DEBUG"/>
9
+	<logger name="org.thymeleaf" level="OFF"/>
10
+
11
+    <root level="INFO">
12
+        <appender-ref ref="STDOUT" />
13
+    </root>
14
+</configuration>

+ 16
- 0
Spring-Boot-2.0.0.M7.a.RELEASE/01-spring-framework/simple-spring-webapp/src/main/webapp/WEB-INF/applicationContext.xml ファイルの表示

@@ -0,0 +1,16 @@
1
+<?xml version="1.0" encoding="UTF-8"?>
2
+
3
+<beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
4
+	xmlns:mvc="http://www.springframework.org/schema/mvc" xmlns:context="http://www.springframework.org/schema/context"
5
+	xsi:schemaLocation="http://www.springframework.org/schema/mvc http://www.springframework.org/schema/mvc/spring-mvc.xsd
6
+		http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd
7
+		http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context.xsd">
8
+
9
+ 	
10
+	<!-- 
11
+	Performs the actual initialization work for the root application context.	
12
+	Useful for all the Spring beans like Services, Repositories, etc.
13
+	-->
14
+	
15
+	
16
+</beans>

+ 40
- 0
Spring-Boot-2.0.0.M7.a.RELEASE/01-spring-framework/simple-spring-webapp/src/main/webapp/WEB-INF/dispatcherServlet-servlet.xml ファイルの表示

@@ -0,0 +1,40 @@
1
+<?xml version="1.0" encoding="UTF-8"?>
2
+
3
+<beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
4
+	xmlns:mvc="http://www.springframework.org/schema/mvc" xmlns:context="http://www.springframework.org/schema/context"
5
+	xsi:schemaLocation="http://www.springframework.org/schema/mvc http://www.springframework.org/schema/mvc/spring-mvc.xsd
6
+		http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd
7
+		http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context.xsd">
8
+
9
+	<!--
10
+	DispatcherServlet creates its own WebApplicationContext and the handlers/controllers/view-resolvers are managed
11
+	by this context.
12
+	-->
13
+
14
+ 	<context:component-scan base-package="io.pivotal.workshop.web" />
15
+
16
+	<!-- Useful when only JSP is required. The javax.servlet.jsp:avax.servlet.jsp-api:2.3.1 dendency is necessary-->
17
+	<!--
18
+	<bean class="org.springframework.web.servlet.view.InternalResourceViewResolver">
19
+	        <property name="prefix" value="/WEB-INF/view/"/>
20
+	        <property name="suffix" value=".jsp"/>
21
+	</bean>
22
+	-->
23
+
24
+	<!-- Thymeleaf Configuration -->
25
+	<bean id="templateResolver" class="org.thymeleaf.spring5.templateresolver.SpringResourceTemplateResolver">
26
+		<property name="prefix" value="/WEB-INF/view/" />
27
+		<property name="suffix" value=".html" />
28
+		<property name="templateMode" value="HTML5" />
29
+	</bean>
30
+
31
+	<bean id="templateEngine" class="org.thymeleaf.spring5.SpringTemplateEngine">
32
+		<property name="templateResolver" ref="templateResolver" />
33
+		<property name="enableSpringELCompiler" value="true" />
34
+	</bean>
35
+
36
+	<bean id="viewResolver" class="org.thymeleaf.spring5.view.ThymeleafViewResolver">
37
+		<property name="templateEngine" ref="templateEngine" />
38
+</bean>
39
+
40
+</beans>

+ 11
- 0
Spring-Boot-2.0.0.M7.a.RELEASE/01-spring-framework/simple-spring-webapp/src/main/webapp/WEB-INF/view/index.html ファイルの表示

@@ -0,0 +1,11 @@
1
+<!DOCTYPE html>
2
+
3
+<html lang="en" xmlns:th="http://www.thymeleaf.org">
4
+	<head>
5
+		<meta charset="utf-8">
6
+		<title>Welcome</title>
7
+	</head>
8
+	<body>
9
+		<p>This page never will show up</p>
10
+	</body>
11
+</html>

+ 11
- 0
Spring-Boot-2.0.0.M7.a.RELEASE/01-spring-framework/simple-spring-webapp/src/main/webapp/WEB-INF/view/showMessage.html ファイルの表示

@@ -0,0 +1,11 @@
1
+<!DOCTYPE html>
2
+
3
+<html lang="en" xmlns:th="http://www.thymeleaf.org">
4
+	<head>
5
+		<meta charset="utf-8">
6
+		<title>Welcome</title>
7
+	</head>
8
+	<body style="font-family: Verdana, sans-serif;">
9
+	<h2><p th:text="${message}"/></h2>
10
+	</body>
11
+</html>

+ 45
- 0
Spring-Boot-2.0.0.M7.a.RELEASE/01-spring-framework/simple-spring-webapp/src/main/webapp/WEB-INF/web.xml ファイルの表示

@@ -0,0 +1,45 @@
1
+<!DOCTYPE web-app PUBLIC
2
+ "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN"
3
+ "http://java.sun.com/dtd/web-app_2_3.dtd" >
4
+
5
+<web-app>	 
6
+  <display-name>Simple Spring Web Application</display-name>
7
+  
8
+  <!-- ContextLoaderListener creates a root web-application-context for the web-application and puts it in the ServletContext.
9
+       This context can be used to load and unload the spring-managed beans ir-respective of what technology is being used in
10
+       the controller layer(Struts or Spring MVC).
11
+  -->
12
+  
13
+  <!-- 
14
+  <listener>
15
+      <listener-class>org.springframework.web.context.ContextLoaderListener</listener-class>
16
+  </listener>
17
+	  
18
+  <context-param>
19
+    <param-name>contextConfigLocation</param-name>
20
+    <param-value>/WEB-INF/applicationContext.xml</param-value>
21
+  </context-param>
22
+  -->
23
+	  
24
+  <!--
25
+	  DispatcherServlet creates its own WebApplicationContext and the handlers/controllers/view-resolvers are managed 
26
+	  by this context.
27
+  -->	  
28
+  <servlet>
29
+      <servlet-name>dispatcherServlet</servlet-name>
30
+      <servlet-class>org.springframework.web.servlet.DispatcherServlet</servlet-class>
31
+	  <!--
32
+      <init-param>
33
+      	<param-name>contextConfigLocation</param-name>
34
+        <param-value>/WEB-INF/dispatcherServlet-servlet.xml</param-value>
35
+      </init-param>  
36
+	  -->
37
+      <load-on-startup>1</load-on-startup>
38
+  </servlet>
39
+
40
+  <servlet-mapping>
41
+      <servlet-name>dispatcherServlet</servlet-name>
42
+      <url-pattern>/</url-pattern>
43
+  </servlet-mapping>
44
+  
45
+</web-app>

バイナリ
Spring-Boot-2.0.0.M7.a.RELEASE/02-spring-boot-overview/.DS_Store ファイルの表示


バイナリ
Spring-Boot-2.0.0.M7.a.RELEASE/02-spring-boot-overview/directory-web/.DS_Store ファイルの表示


+ 31
- 0
Spring-Boot-2.0.0.M7.a.RELEASE/02-spring-boot-overview/directory-web/.classpath ファイルの表示

@@ -0,0 +1,31 @@
1
+<?xml version="1.0" encoding="UTF-8"?>
2
+<classpath>
3
+	<classpathentry kind="src" output="target/classes" path="src/main/java">
4
+		<attributes>
5
+			<attribute name="optional" value="true"/>
6
+			<attribute name="maven.pomderived" value="true"/>
7
+		</attributes>
8
+	</classpathentry>
9
+	<classpathentry excluding="**" kind="src" output="target/classes" path="src/main/resources">
10
+		<attributes>
11
+			<attribute name="maven.pomderived" value="true"/>
12
+		</attributes>
13
+	</classpathentry>
14
+	<classpathentry kind="src" output="target/test-classes" path="src/test/java">
15
+		<attributes>
16
+			<attribute name="optional" value="true"/>
17
+			<attribute name="maven.pomderived" value="true"/>
18
+		</attributes>
19
+	</classpathentry>
20
+	<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.8">
21
+		<attributes>
22
+			<attribute name="maven.pomderived" value="true"/>
23
+		</attributes>
24
+	</classpathentry>
25
+	<classpathentry kind="con" path="org.eclipse.m2e.MAVEN2_CLASSPATH_CONTAINER">
26
+		<attributes>
27
+			<attribute name="maven.pomderived" value="true"/>
28
+		</attributes>
29
+	</classpathentry>
30
+	<classpathentry kind="output" path="target/classes"/>
31
+</classpath>

バイナリ
Spring-Boot-2.0.0.M7.a.RELEASE/02-spring-boot-overview/directory-web/.mvn/wrapper/maven-wrapper.jar ファイルの表示


+ 1
- 0
Spring-Boot-2.0.0.M7.a.RELEASE/02-spring-boot-overview/directory-web/.mvn/wrapper/maven-wrapper.properties ファイルの表示

@@ -0,0 +1 @@
1
+distributionUrl=https://repo1.maven.org/maven2/org/apache/maven/apache-maven/3.5.0/apache-maven-3.5.0-bin.zip

+ 40
- 0
Spring-Boot-2.0.0.M7.a.RELEASE/02-spring-boot-overview/directory-web/.project ファイルの表示

@@ -0,0 +1,40 @@
1
+<?xml version="1.0" encoding="UTF-8"?>
2
+<projectDescription>
3
+	<name>directory-web</name>
4
+	<comment></comment>
5
+	<projects>
6
+	</projects>
7
+	<buildSpec>
8
+		<buildCommand>
9
+			<name>org.eclipse.wst.common.project.facet.core.builder</name>
10
+			<arguments>
11
+			</arguments>
12
+		</buildCommand>
13
+		<buildCommand>
14
+			<name>org.eclipse.jdt.core.javabuilder</name>
15
+			<arguments>
16
+			</arguments>
17
+		</buildCommand>
18
+		<buildCommand>
19
+			<name>org.eclipse.m2e.core.maven2Builder</name>
20
+			<arguments>
21
+			</arguments>
22
+		</buildCommand>
23
+		<buildCommand>
24
+			<name>org.springframework.ide.eclipse.core.springbuilder</name>
25
+			<arguments>
26
+			</arguments>
27
+		</buildCommand>
28
+		<buildCommand>
29
+			<name>org.springframework.ide.eclipse.boot.validation.springbootbuilder</name>
30
+			<arguments>
31
+			</arguments>
32
+		</buildCommand>
33
+	</buildSpec>
34
+	<natures>
35
+		<nature>org.springframework.ide.eclipse.core.springnature</nature>
36
+		<nature>org.eclipse.jdt.core.javanature</nature>
37
+		<nature>org.eclipse.m2e.core.maven2Nature</nature>
38
+		<nature>org.eclipse.wst.common.project.facet.core.nature</nature>
39
+	</natures>
40
+</projectDescription>

+ 5
- 0
Spring-Boot-2.0.0.M7.a.RELEASE/02-spring-boot-overview/directory-web/.settings/org.eclipse.core.resources.prefs ファイルの表示

@@ -0,0 +1,5 @@
1
+eclipse.preferences.version=1
2
+encoding//src/main/java=UTF-8
3
+encoding//src/main/resources=UTF-8
4
+encoding//src/test/java=UTF-8
5
+encoding/<project>=UTF-8

+ 5
- 0
Spring-Boot-2.0.0.M7.a.RELEASE/02-spring-boot-overview/directory-web/.settings/org.eclipse.jdt.core.prefs ファイルの表示

@@ -0,0 +1,5 @@
1
+eclipse.preferences.version=1
2
+org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.8
3
+org.eclipse.jdt.core.compiler.compliance=1.8
4
+org.eclipse.jdt.core.compiler.problem.forbiddenReference=warning
5
+org.eclipse.jdt.core.compiler.source=1.8

+ 4
- 0
Spring-Boot-2.0.0.M7.a.RELEASE/02-spring-boot-overview/directory-web/.settings/org.eclipse.m2e.core.prefs ファイルの表示

@@ -0,0 +1,4 @@
1
+activeProfiles=
2
+eclipse.preferences.version=1
3
+resolveWorkspaceProjects=true
4
+version=1

+ 4
- 0
Spring-Boot-2.0.0.M7.a.RELEASE/02-spring-boot-overview/directory-web/.settings/org.eclipse.wst.common.project.facet.core.xml ファイルの表示

@@ -0,0 +1,4 @@
1
+<?xml version="1.0" encoding="UTF-8"?>
2
+<faceted-project>
3
+  <installed facet="cloudfoundry.standalone.app" version="1.0"/>
4
+</faceted-project>

+ 37
- 0
Spring-Boot-2.0.0.M7.a.RELEASE/02-spring-boot-overview/directory-web/build.gradle ファイルの表示

@@ -0,0 +1,37 @@
1
+buildscript {
2
+	ext {
3
+		springBootVersion = '2.0.0.M7'
4
+	}
5
+	repositories {
6
+		mavenCentral()
7
+		maven { url "https://repo.spring.io/snapshot" }
8
+		maven { url "https://repo.spring.io/milestone" }
9
+	}
10
+	dependencies {
11
+		classpath("org.springframework.boot:spring-boot-gradle-plugin:${springBootVersion}")
12
+	}
13
+}
14
+
15
+apply plugin: 'java'
16
+apply plugin: 'eclipse'
17
+apply plugin: 'org.springframework.boot'
18
+apply plugin: 'io.spring.dependency-management'
19
+
20
+version = '0.0.1-SNAPSHOT'
21
+sourceCompatibility = 1.8
22
+
23
+repositories {
24
+	mavenCentral()
25
+	maven { url "https://repo.spring.io/snapshot" }
26
+	maven { url "https://repo.spring.io/milestone" }
27
+}
28
+
29
+
30
+dependencies {
31
+	compile('org.springframework.boot:spring-boot-starter-web')
32
+	
33
+	// SOLUTION: XML response
34
+	// compile('com.fasterxml.jackson.dataformat:jackson-dataformat-xml')
35
+	
36
+	testCompile('org.springframework.boot:spring-boot-starter-test')
37
+}

バイナリ
Spring-Boot-2.0.0.M7.a.RELEASE/02-spring-boot-overview/directory-web/gradle/wrapper/gradle-wrapper.jar ファイルの表示


+ 5
- 0
Spring-Boot-2.0.0.M7.a.RELEASE/02-spring-boot-overview/directory-web/gradle/wrapper/gradle-wrapper.properties ファイルの表示

@@ -0,0 +1,5 @@
1
+distributionBase=GRADLE_USER_HOME
2
+distributionPath=wrapper/dists
3
+zipStoreBase=GRADLE_USER_HOME
4
+zipStorePath=wrapper/dists
5
+distributionUrl=https\://services.gradle.org/distributions/gradle-3.5.1-bin.zip

+ 172
- 0
Spring-Boot-2.0.0.M7.a.RELEASE/02-spring-boot-overview/directory-web/gradlew ファイルの表示

@@ -0,0 +1,172 @@
1
+#!/usr/bin/env sh
2
+
3
+##############################################################################
4
+##
5
+##  Gradle start up script for UN*X
6
+##
7
+##############################################################################
8
+
9
+# Attempt to set APP_HOME
10
+# Resolve links: $0 may be a link
11
+PRG="$0"
12
+# Need this for relative symlinks.
13
+while [ -h "$PRG" ] ; do
14
+    ls=`ls -ld "$PRG"`
15
+    link=`expr "$ls" : '.*-> \(.*\)$'`
16
+    if expr "$link" : '/.*' > /dev/null; then
17
+        PRG="$link"
18
+    else
19
+        PRG=`dirname "$PRG"`"/$link"
20
+    fi
21
+done
22
+SAVED="`pwd`"
23
+cd "`dirname \"$PRG\"`/" >/dev/null
24
+APP_HOME="`pwd -P`"
25
+cd "$SAVED" >/dev/null
26
+
27
+APP_NAME="Gradle"
28
+APP_BASE_NAME=`basename "$0"`
29
+
30
+# Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
31
+DEFAULT_JVM_OPTS=""
32
+
33
+# Use the maximum available, or set MAX_FD != -1 to use that value.
34
+MAX_FD="maximum"
35
+
36
+warn ( ) {
37
+    echo "$*"
38
+}
39
+
40
+die ( ) {
41
+    echo
42
+    echo "$*"
43
+    echo
44
+    exit 1
45
+}
46
+
47
+# OS specific support (must be 'true' or 'false').
48
+cygwin=false
49
+msys=false
50
+darwin=false
51
+nonstop=false
52
+case "`uname`" in
53
+  CYGWIN* )
54
+    cygwin=true
55
+    ;;
56
+  Darwin* )
57
+    darwin=true
58
+    ;;
59
+  MINGW* )
60
+    msys=true
61
+    ;;
62
+  NONSTOP* )
63
+    nonstop=true
64
+    ;;
65
+esac
66
+
67
+CLASSPATH=$APP_HOME/gradle/wrapper/gradle-wrapper.jar
68
+
69
+# Determine the Java command to use to start the JVM.
70
+if [ -n "$JAVA_HOME" ] ; then
71
+    if [ -x "$JAVA_HOME/jre/sh/java" ] ; then
72
+        # IBM's JDK on AIX uses strange locations for the executables
73
+        JAVACMD="$JAVA_HOME/jre/sh/java"
74
+    else
75
+        JAVACMD="$JAVA_HOME/bin/java"
76
+    fi
77
+    if [ ! -x "$JAVACMD" ] ; then
78
+        die "ERROR: JAVA_HOME is set to an invalid directory: $JAVA_HOME
79
+
80
+Please set the JAVA_HOME variable in your environment to match the
81
+location of your Java installation."
82
+    fi
83
+else
84
+    JAVACMD="java"
85
+    which java >/dev/null 2>&1 || die "ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
86
+
87
+Please set the JAVA_HOME variable in your environment to match the
88
+location of your Java installation."
89
+fi
90
+
91
+# Increase the maximum file descriptors if we can.
92
+if [ "$cygwin" = "false" -a "$darwin" = "false" -a "$nonstop" = "false" ] ; then
93
+    MAX_FD_LIMIT=`ulimit -H -n`
94
+    if [ $? -eq 0 ] ; then
95
+        if [ "$MAX_FD" = "maximum" -o "$MAX_FD" = "max" ] ; then
96
+            MAX_FD="$MAX_FD_LIMIT"
97
+        fi
98
+        ulimit -n $MAX_FD
99
+        if [ $? -ne 0 ] ; then
100
+            warn "Could not set maximum file descriptor limit: $MAX_FD"
101
+        fi
102
+    else
103
+        warn "Could not query maximum file descriptor limit: $MAX_FD_LIMIT"
104
+    fi
105
+fi
106
+
107
+# For Darwin, add options to specify how the application appears in the dock
108
+if $darwin; then
109
+    GRADLE_OPTS="$GRADLE_OPTS \"-Xdock:name=$APP_NAME\" \"-Xdock:icon=$APP_HOME/media/gradle.icns\""
110
+fi
111
+
112
+# For Cygwin, switch paths to Windows format before running java
113
+if $cygwin ; then
114
+    APP_HOME=`cygpath --path --mixed "$APP_HOME"`
115
+    CLASSPATH=`cygpath --path --mixed "$CLASSPATH"`
116
+    JAVACMD=`cygpath --unix "$JAVACMD"`
117
+
118
+    # We build the pattern for arguments to be converted via cygpath
119
+    ROOTDIRSRAW=`find -L / -maxdepth 1 -mindepth 1 -type d 2>/dev/null`
120
+    SEP=""
121
+    for dir in $ROOTDIRSRAW ; do
122
+        ROOTDIRS="$ROOTDIRS$SEP$dir"
123
+        SEP="|"
124
+    done
125
+    OURCYGPATTERN="(^($ROOTDIRS))"
126
+    # Add a user-defined pattern to the cygpath arguments
127
+    if [ "$GRADLE_CYGPATTERN" != "" ] ; then
128
+        OURCYGPATTERN="$OURCYGPATTERN|($GRADLE_CYGPATTERN)"
129
+    fi
130
+    # Now convert the arguments - kludge to limit ourselves to /bin/sh
131
+    i=0
132
+    for arg in "$@" ; do
133
+        CHECK=`echo "$arg"|egrep -c "$OURCYGPATTERN" -`
134
+        CHECK2=`echo "$arg"|egrep -c "^-"`                                 ### Determine if an option
135
+
136
+        if [ $CHECK -ne 0 ] && [ $CHECK2 -eq 0 ] ; then                    ### Added a condition
137
+            eval `echo args$i`=`cygpath --path --ignore --mixed "$arg"`
138
+        else
139
+            eval `echo args$i`="\"$arg\""
140
+        fi
141
+        i=$((i+1))
142
+    done
143
+    case $i in
144
+        (0) set -- ;;
145
+        (1) set -- "$args0" ;;
146
+        (2) set -- "$args0" "$args1" ;;
147
+        (3) set -- "$args0" "$args1" "$args2" ;;
148
+        (4) set -- "$args0" "$args1" "$args2" "$args3" ;;
149
+        (5) set -- "$args0" "$args1" "$args2" "$args3" "$args4" ;;
150
+        (6) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" ;;
151
+        (7) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" ;;
152
+        (8) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" "$args7" ;;
153
+        (9) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" "$args7" "$args8" ;;
154
+    esac
155
+fi
156
+
157
+# Escape application args
158
+save ( ) {
159
+    for i do printf %s\\n "$i" | sed "s/'/'\\\\''/g;1s/^/'/;\$s/\$/' \\\\/" ; done
160
+    echo " "
161
+}
162
+APP_ARGS=$(save "$@")
163
+
164
+# Collect all arguments for the java command, following the shell quoting and substitution rules
165
+eval set -- $DEFAULT_JVM_OPTS $JAVA_OPTS $GRADLE_OPTS "\"-Dorg.gradle.appname=$APP_BASE_NAME\"" -classpath "\"$CLASSPATH\"" org.gradle.wrapper.GradleWrapperMain "$APP_ARGS"
166
+
167
+# by default we should be in the correct project dir, but when run from Finder on Mac, the cwd is wrong
168
+if [ "$(uname)" = "Darwin" ] && [ "$HOME" = "$PWD" ]; then
169
+  cd "$(dirname "$0")"
170
+fi
171
+
172
+exec "$JAVACMD" "$@"

+ 84
- 0
Spring-Boot-2.0.0.M7.a.RELEASE/02-spring-boot-overview/directory-web/gradlew.bat ファイルの表示

@@ -0,0 +1,84 @@
1
+@if "%DEBUG%" == "" @echo off
2
+@rem ##########################################################################
3
+@rem
4
+@rem  Gradle startup script for Windows
5
+@rem
6
+@rem ##########################################################################
7
+
8
+@rem Set local scope for the variables with windows NT shell
9
+if "%OS%"=="Windows_NT" setlocal
10
+
11
+set DIRNAME=%~dp0
12
+if "%DIRNAME%" == "" set DIRNAME=.
13
+set APP_BASE_NAME=%~n0
14
+set APP_HOME=%DIRNAME%
15
+
16
+@rem Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
17
+set DEFAULT_JVM_OPTS=
18
+
19
+@rem Find java.exe
20
+if defined JAVA_HOME goto findJavaFromJavaHome
21
+
22
+set JAVA_EXE=java.exe
23
+%JAVA_EXE% -version >NUL 2>&1
24
+if "%ERRORLEVEL%" == "0" goto init
25
+
26
+echo.
27
+echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
28
+echo.
29
+echo Please set the JAVA_HOME variable in your environment to match the
30
+echo location of your Java installation.
31
+
32
+goto fail
33
+
34
+:findJavaFromJavaHome
35
+set JAVA_HOME=%JAVA_HOME:"=%
36
+set JAVA_EXE=%JAVA_HOME%/bin/java.exe
37
+
38
+if exist "%JAVA_EXE%" goto init
39
+
40
+echo.
41
+echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME%
42
+echo.
43
+echo Please set the JAVA_HOME variable in your environment to match the
44
+echo location of your Java installation.
45
+
46
+goto fail
47
+
48
+:init
49
+@rem Get command-line arguments, handling Windows variants
50
+
51
+if not "%OS%" == "Windows_NT" goto win9xME_args
52
+
53
+:win9xME_args
54
+@rem Slurp the command line arguments.
55
+set CMD_LINE_ARGS=
56
+set _SKIP=2
57
+
58
+:win9xME_args_slurp
59
+if "x%~1" == "x" goto execute
60
+
61
+set CMD_LINE_ARGS=%*
62
+
63
+:execute
64
+@rem Setup the command line
65
+
66
+set CLASSPATH=%APP_HOME%\gradle\wrapper\gradle-wrapper.jar
67
+
68
+@rem Execute Gradle
69
+"%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -classpath "%CLASSPATH%" org.gradle.wrapper.GradleWrapperMain %CMD_LINE_ARGS%
70
+
71
+:end
72
+@rem End local scope for the variables with windows NT shell
73
+if "%ERRORLEVEL%"=="0" goto mainEnd
74
+
75
+:fail
76
+rem Set variable GRADLE_EXIT_CONSOLE if you need the _script_ return code instead of
77
+rem the _cmd.exe /c_ return code!
78
+if  not "" == "%GRADLE_EXIT_CONSOLE%" exit 1
79
+exit /b 1
80
+
81
+:mainEnd
82
+if "%OS%"=="Windows_NT" endlocal
83
+
84
+:omega

+ 225
- 0
Spring-Boot-2.0.0.M7.a.RELEASE/02-spring-boot-overview/directory-web/mvnw ファイルの表示

@@ -0,0 +1,225 @@
1
+#!/bin/sh
2
+# ----------------------------------------------------------------------------
3
+# Licensed to the Apache Software Foundation (ASF) under one
4
+# or more contributor license agreements.  See the NOTICE file
5
+# distributed with this work for additional information
6
+# regarding copyright ownership.  The ASF licenses this file
7
+# to you under the Apache License, Version 2.0 (the
8
+# "License"); you may not use this file except in compliance
9
+# with the License.  You may obtain a copy of the License at
10
+#
11
+#    http://www.apache.org/licenses/LICENSE-2.0
12
+#
13
+# Unless required by applicable law or agreed to in writing,
14
+# software distributed under the License is distributed on an
15
+# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16
+# KIND, either express or implied.  See the License for the
17
+# specific language governing permissions and limitations
18
+# under the License.
19
+# ----------------------------------------------------------------------------
20
+
21
+# ----------------------------------------------------------------------------
22
+# Maven2 Start Up Batch script
23
+#
24
+# Required ENV vars:
25
+# ------------------
26
+#   JAVA_HOME - location of a JDK home dir
27
+#
28
+# Optional ENV vars
29
+# -----------------
30
+#   M2_HOME - location of maven2's installed home dir
31
+#   MAVEN_OPTS - parameters passed to the Java VM when running Maven
32
+#     e.g. to debug Maven itself, use
33
+#       set MAVEN_OPTS=-Xdebug -Xrunjdwp:transport=dt_socket,server=y,suspend=y,address=8000
34
+#   MAVEN_SKIP_RC - flag to disable loading of mavenrc files
35
+# ----------------------------------------------------------------------------
36
+
37
+if [ -z "$MAVEN_SKIP_RC" ] ; then
38
+
39
+  if [ -f /etc/mavenrc ] ; then
40
+    . /etc/mavenrc
41
+  fi
42
+
43
+  if [ -f "$HOME/.mavenrc" ] ; then
44
+    . "$HOME/.mavenrc"
45
+  fi
46
+
47
+fi
48
+
49
+# OS specific support.  $var _must_ be set to either true or false.
50
+cygwin=false;
51
+darwin=false;
52
+mingw=false
53
+case "`uname`" in
54
+  CYGWIN*) cygwin=true ;;
55
+  MINGW*) mingw=true;;
56
+  Darwin*) darwin=true
57
+    # Use /usr/libexec/java_home if available, otherwise fall back to /Library/Java/Home
58
+    # See https://developer.apple.com/library/mac/qa/qa1170/_index.html
59
+    if [ -z "$JAVA_HOME" ]; then
60
+      if [ -x "/usr/libexec/java_home" ]; then
61
+        export JAVA_HOME="`/usr/libexec/java_home`"
62
+      else
63
+        export JAVA_HOME="/Library/Java/Home"
64
+      fi
65
+    fi
66
+    ;;
67
+esac
68
+
69
+if [ -z "$JAVA_HOME" ] ; then
70
+  if [ -r /etc/gentoo-release ] ; then
71
+    JAVA_HOME=`java-config --jre-home`
72
+  fi
73
+fi
74
+
75
+if [ -z "$M2_HOME" ] ; then
76
+  ## resolve links - $0 may be a link to maven's home
77
+  PRG="$0"
78
+
79
+  # need this for relative symlinks
80
+  while [ -h "$PRG" ] ; do
81
+    ls=`ls -ld "$PRG"`
82
+    link=`expr "$ls" : '.*-> \(.*\)$'`
83
+    if expr "$link" : '/.*' > /dev/null; then
84
+      PRG="$link"
85
+    else
86
+      PRG="`dirname "$PRG"`/$link"
87
+    fi
88
+  done
89
+
90
+  saveddir=`pwd`
91
+
92
+  M2_HOME=`dirname "$PRG"`/..
93
+
94
+  # make it fully qualified
95
+  M2_HOME=`cd "$M2_HOME" && pwd`
96
+
97
+  cd "$saveddir"
98
+  # echo Using m2 at $M2_HOME
99
+fi
100
+
101
+# For Cygwin, ensure paths are in UNIX format before anything is touched
102
+if $cygwin ; then
103
+  [ -n "$M2_HOME" ] &&
104
+    M2_HOME=`cygpath --unix "$M2_HOME"`
105
+  [ -n "$JAVA_HOME" ] &&
106
+    JAVA_HOME=`cygpath --unix "$JAVA_HOME"`
107
+  [ -n "$CLASSPATH" ] &&
108
+    CLASSPATH=`cygpath --path --unix "$CLASSPATH"`
109
+fi
110
+
111
+# For Migwn, ensure paths are in UNIX format before anything is touched
112
+if $mingw ; then
113
+  [ -n "$M2_HOME" ] &&
114
+    M2_HOME="`(cd "$M2_HOME"; pwd)`"
115
+  [ -n "$JAVA_HOME" ] &&
116
+    JAVA_HOME="`(cd "$JAVA_HOME"; pwd)`"
117
+  # TODO classpath?
118
+fi
119
+
120
+if [ -z "$JAVA_HOME" ]; then
121
+  javaExecutable="`which javac`"
122
+  if [ -n "$javaExecutable" ] && ! [ "`expr \"$javaExecutable\" : '\([^ ]*\)'`" = "no" ]; then
123
+    # readlink(1) is not available as standard on Solaris 10.
124
+    readLink=`which readlink`
125
+    if [ ! `expr "$readLink" : '\([^ ]*\)'` = "no" ]; then
126
+      if $darwin ; then
127
+        javaHome="`dirname \"$javaExecutable\"`"
128
+        javaExecutable="`cd \"$javaHome\" && pwd -P`/javac"
129
+      else
130
+        javaExecutable="`readlink -f \"$javaExecutable\"`"
131
+      fi
132
+      javaHome="`dirname \"$javaExecutable\"`"
133
+      javaHome=`expr "$javaHome" : '\(.*\)/bin'`
134
+      JAVA_HOME="$javaHome"
135
+      export JAVA_HOME
136
+    fi
137
+  fi
138
+fi
139
+
140
+if [ -z "$JAVACMD" ] ; then
141
+  if [ -n "$JAVA_HOME"  ] ; then
142
+    if [ -x "$JAVA_HOME/jre/sh/java" ] ; then
143
+      # IBM's JDK on AIX uses strange locations for the executables
144
+      JAVACMD="$JAVA_HOME/jre/sh/java"
145
+    else
146
+      JAVACMD="$JAVA_HOME/bin/java"
147
+    fi
148
+  else
149
+    JAVACMD="`which java`"
150
+  fi
151
+fi
152
+
153
+if [ ! -x "$JAVACMD" ] ; then
154
+  echo "Error: JAVA_HOME is not defined correctly." >&2
155
+  echo "  We cannot execute $JAVACMD" >&2
156
+  exit 1
157
+fi
158
+
159
+if [ -z "$JAVA_HOME" ] ; then
160
+  echo "Warning: JAVA_HOME environment variable is not set."
161
+fi
162
+
163
+CLASSWORLDS_LAUNCHER=org.codehaus.plexus.classworlds.launcher.Launcher
164
+
165
+# traverses directory structure from process work directory to filesystem root
166
+# first directory with .mvn subdirectory is considered project base directory
167
+find_maven_basedir() {
168
+
169
+  if [ -z "$1" ]
170
+  then
171
+    echo "Path not specified to find_maven_basedir"
172
+    return 1
173
+  fi
174
+
175
+  basedir="$1"
176
+  wdir="$1"
177
+  while [ "$wdir" != '/' ] ; do
178
+    if [ -d "$wdir"/.mvn ] ; then
179
+      basedir=$wdir
180
+      break
181
+    fi
182
+    # workaround for JBEAP-8937 (on Solaris 10/Sparc)
183
+    if [ -d "${wdir}" ]; then
184
+      wdir=`cd "$wdir/.."; pwd`
185
+    fi
186
+    # end of workaround
187
+  done
188
+  echo "${basedir}"
189
+}
190
+
191
+# concatenates all lines of a file
192
+concat_lines() {
193
+  if [ -f "$1" ]; then
194
+    echo "$(tr -s '\n' ' ' < "$1")"
195
+  fi
196
+}
197
+
198
+BASE_DIR=`find_maven_basedir "$(pwd)"`
199
+if [ -z "$BASE_DIR" ]; then
200
+  exit 1;
201
+fi
202
+
203
+export MAVEN_PROJECTBASEDIR=${MAVEN_BASEDIR:-"$BASE_DIR"}
204
+echo $MAVEN_PROJECTBASEDIR
205
+MAVEN_OPTS="$(concat_lines "$MAVEN_PROJECTBASEDIR/.mvn/jvm.config") $MAVEN_OPTS"
206
+
207
+# For Cygwin, switch paths to Windows format before running java
208
+if $cygwin; then
209
+  [ -n "$M2_HOME" ] &&
210
+    M2_HOME=`cygpath --path --windows "$M2_HOME"`
211
+  [ -n "$JAVA_HOME" ] &&
212
+    JAVA_HOME=`cygpath --path --windows "$JAVA_HOME"`
213
+  [ -n "$CLASSPATH" ] &&
214
+    CLASSPATH=`cygpath --path --windows "$CLASSPATH"`
215
+  [ -n "$MAVEN_PROJECTBASEDIR" ] &&
216
+    MAVEN_PROJECTBASEDIR=`cygpath --path --windows "$MAVEN_PROJECTBASEDIR"`
217
+fi
218
+
219
+WRAPPER_LAUNCHER=org.apache.maven.wrapper.MavenWrapperMain
220
+
221
+exec "$JAVACMD" \
222
+  $MAVEN_OPTS \
223
+  -classpath "$MAVEN_PROJECTBASEDIR/.mvn/wrapper/maven-wrapper.jar" \
224
+  "-Dmaven.home=${M2_HOME}" "-Dmaven.multiModuleProjectDirectory=${MAVEN_PROJECTBASEDIR}" \
225
+  ${WRAPPER_LAUNCHER} $MAVEN_CONFIG "$@"

+ 143
- 0
Spring-Boot-2.0.0.M7.a.RELEASE/02-spring-boot-overview/directory-web/mvnw.cmd ファイルの表示

@@ -0,0 +1,143 @@
1
+@REM ----------------------------------------------------------------------------
2
+@REM Licensed to the Apache Software Foundation (ASF) under one
3
+@REM or more contributor license agreements.  See the NOTICE file
4
+@REM distributed with this work for additional information
5
+@REM regarding copyright ownership.  The ASF licenses this file
6
+@REM to you under the Apache License, Version 2.0 (the
7
+@REM "License"); you may not use this file except in compliance
8
+@REM with the License.  You may obtain a copy of the License at
9
+@REM
10
+@REM    http://www.apache.org/licenses/LICENSE-2.0
11
+@REM
12
+@REM Unless required by applicable law or agreed to in writing,
13
+@REM software distributed under the License is distributed on an
14
+@REM "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15
+@REM KIND, either express or implied.  See the License for the
16
+@REM specific language governing permissions and limitations
17
+@REM under the License.
18
+@REM ----------------------------------------------------------------------------
19
+
20
+@REM ----------------------------------------------------------------------------
21
+@REM Maven2 Start Up Batch script
22
+@REM
23
+@REM Required ENV vars:
24
+@REM JAVA_HOME - location of a JDK home dir
25
+@REM
26
+@REM Optional ENV vars
27
+@REM M2_HOME - location of maven2's installed home dir
28
+@REM MAVEN_BATCH_ECHO - set to 'on' to enable the echoing of the batch commands
29
+@REM MAVEN_BATCH_PAUSE - set to 'on' to wait for a key stroke before ending
30
+@REM MAVEN_OPTS - parameters passed to the Java VM when running Maven
31
+@REM     e.g. to debug Maven itself, use
32
+@REM set MAVEN_OPTS=-Xdebug -Xrunjdwp:transport=dt_socket,server=y,suspend=y,address=8000
33
+@REM MAVEN_SKIP_RC - flag to disable loading of mavenrc files
34
+@REM ----------------------------------------------------------------------------
35
+
36
+@REM Begin all REM lines with '@' in case MAVEN_BATCH_ECHO is 'on'
37
+@echo off
38
+@REM enable echoing my setting MAVEN_BATCH_ECHO to 'on'
39
+@if "%MAVEN_BATCH_ECHO%" == "on"  echo %MAVEN_BATCH_ECHO%
40
+
41
+@REM set %HOME% to equivalent of $HOME
42
+if "%HOME%" == "" (set "HOME=%HOMEDRIVE%%HOMEPATH%")
43
+
44
+@REM Execute a user defined script before this one
45
+if not "%MAVEN_SKIP_RC%" == "" goto skipRcPre
46
+@REM check for pre script, once with legacy .bat ending and once with .cmd ending
47
+if exist "%HOME%\mavenrc_pre.bat" call "%HOME%\mavenrc_pre.bat"
48
+if exist "%HOME%\mavenrc_pre.cmd" call "%HOME%\mavenrc_pre.cmd"
49
+:skipRcPre
50
+
51
+@setlocal
52
+
53
+set ERROR_CODE=0
54
+
55
+@REM To isolate internal variables from possible post scripts, we use another setlocal
56
+@setlocal
57
+
58
+@REM ==== START VALIDATION ====
59
+if not "%JAVA_HOME%" == "" goto OkJHome
60
+
61
+echo.
62
+echo Error: JAVA_HOME not found in your environment. >&2
63
+echo Please set the JAVA_HOME variable in your environment to match the >&2
64
+echo location of your Java installation. >&2
65
+echo.
66
+goto error
67
+
68
+:OkJHome
69
+if exist "%JAVA_HOME%\bin\java.exe" goto init
70
+
71
+echo.
72
+echo Error: JAVA_HOME is set to an invalid directory. >&2
73
+echo JAVA_HOME = "%JAVA_HOME%" >&2
74
+echo Please set the JAVA_HOME variable in your environment to match the >&2
75
+echo location of your Java installation. >&2
76
+echo.
77
+goto error
78
+
79
+@REM ==== END VALIDATION ====
80
+
81
+:init
82
+
83
+@REM Find the project base dir, i.e. the directory that contains the folder ".mvn".
84
+@REM Fallback to current working directory if not found.
85
+
86
+set MAVEN_PROJECTBASEDIR=%MAVEN_BASEDIR%
87
+IF NOT "%MAVEN_PROJECTBASEDIR%"=="" goto endDetectBaseDir
88
+
89
+set EXEC_DIR=%CD%
90
+set WDIR=%EXEC_DIR%
91
+:findBaseDir
92
+IF EXIST "%WDIR%"\.mvn goto baseDirFound
93
+cd ..
94
+IF "%WDIR%"=="%CD%" goto baseDirNotFound
95
+set WDIR=%CD%
96
+goto findBaseDir
97
+
98
+:baseDirFound
99
+set MAVEN_PROJECTBASEDIR=%WDIR%
100
+cd "%EXEC_DIR%"
101
+goto endDetectBaseDir
102
+
103
+:baseDirNotFound
104
+set MAVEN_PROJECTBASEDIR=%EXEC_DIR%
105
+cd "%EXEC_DIR%"
106
+
107
+:endDetectBaseDir
108
+
109
+IF NOT EXIST "%MAVEN_PROJECTBASEDIR%\.mvn\jvm.config" goto endReadAdditionalConfig
110
+
111
+@setlocal EnableExtensions EnableDelayedExpansion
112
+for /F "usebackq delims=" %%a in ("%MAVEN_PROJECTBASEDIR%\.mvn\jvm.config") do set JVM_CONFIG_MAVEN_PROPS=!JVM_CONFIG_MAVEN_PROPS! %%a
113
+@endlocal & set JVM_CONFIG_MAVEN_PROPS=%JVM_CONFIG_MAVEN_PROPS%
114
+
115
+:endReadAdditionalConfig
116
+
117
+SET MAVEN_JAVA_EXE="%JAVA_HOME%\bin\java.exe"
118
+
119
+set WRAPPER_JAR="%MAVEN_PROJECTBASEDIR%\.mvn\wrapper\maven-wrapper.jar"
120
+set WRAPPER_LAUNCHER=org.apache.maven.wrapper.MavenWrapperMain
121
+
122
+%MAVEN_JAVA_EXE% %JVM_CONFIG_MAVEN_PROPS% %MAVEN_OPTS% %MAVEN_DEBUG_OPTS% -classpath %WRAPPER_JAR% "-Dmaven.multiModuleProjectDirectory=%MAVEN_PROJECTBASEDIR%" %WRAPPER_LAUNCHER% %MAVEN_CONFIG% %*
123
+if ERRORLEVEL 1 goto error
124
+goto end
125
+
126
+:error
127
+set ERROR_CODE=1
128
+
129
+:end
130
+@endlocal & set ERROR_CODE=%ERROR_CODE%
131
+
132
+if not "%MAVEN_SKIP_RC%" == "" goto skipRcPost
133
+@REM check for post script, once with legacy .bat ending and once with .cmd ending
134
+if exist "%HOME%\mavenrc_post.bat" call "%HOME%\mavenrc_post.bat"
135
+if exist "%HOME%\mavenrc_post.cmd" call "%HOME%\mavenrc_post.cmd"
136
+:skipRcPost
137
+
138
+@REM pause the script if MAVEN_BATCH_PAUSE is set to 'on'
139
+if "%MAVEN_BATCH_PAUSE%" == "on" pause
140
+
141
+if "%MAVEN_TERMINATE_CMD%" == "on" exit %ERROR_CODE%
142
+
143
+exit /B %ERROR_CODE%

+ 101
- 0
Spring-Boot-2.0.0.M7.a.RELEASE/02-spring-boot-overview/directory-web/pom.xml ファイルの表示

@@ -0,0 +1,101 @@
1
+<?xml version="1.0" encoding="UTF-8"?>
2
+<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
3
+	xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
4
+	<modelVersion>4.0.0</modelVersion>
5
+
6
+	<groupId>io.pivotal.workshop</groupId>
7
+	<artifactId>directory-web</artifactId>
8
+	<version>0.0.1-SNAPSHOT</version>
9
+	<packaging>jar</packaging>
10
+
11
+	<name>directory-web</name>
12
+	<description>Demo project for Spring Boot</description>
13
+
14
+	<parent>
15
+		<groupId>org.springframework.boot</groupId>
16
+		<artifactId>spring-boot-starter-parent</artifactId>
17
+		<version>2.0.0.M7</version>
18
+		<relativePath /> <!-- lookup parent from repository -->
19
+	</parent>
20
+
21
+	<properties>
22
+		<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
23
+		<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
24
+		<java.version>1.8</java.version>
25
+	</properties>
26
+
27
+	<dependencies>
28
+		<dependency>
29
+			<groupId>org.springframework.boot</groupId>
30
+			<artifactId>spring-boot-starter-web</artifactId>
31
+		</dependency>
32
+
33
+
34
+		<!-- SOLUTION: XML reponse -->
35
+		<!--
36
+		<dependency>
37
+			<groupId>com.fasterxml.jackson.dataformat</groupId>
38
+			<artifactId>jackson-dataformat-xml</artifactId>
39
+		</dependency>
40
+		-->
41
+
42
+		<dependency>
43
+			<groupId>org.springframework.boot</groupId>
44
+			<artifactId>spring-boot-starter-test</artifactId>
45
+			<scope>test</scope>
46
+		</dependency>
47
+	</dependencies>
48
+
49
+	<build>
50
+		<plugins>
51
+			<plugin>
52
+				<groupId>org.springframework.boot</groupId>
53
+				<artifactId>spring-boot-maven-plugin</artifactId>
54
+
55
+
56
+
57
+			</plugin>
58
+		</plugins>
59
+	</build>
60
+
61
+
62
+    <repositories>
63
+        <repository>
64
+            <id>spring-snapshots</id>
65
+            <name>Spring Snapshots</name>
66
+            <url>https://repo.spring.io/snapshot</url>
67
+            <snapshots>
68
+                <enabled>true</enabled>
69
+            </snapshots>
70
+        </repository>
71
+        <repository>
72
+            <id>spring-milestones</id>
73
+            <name>Spring Milestones</name>
74
+            <url>https://repo.spring.io/milestone</url>
75
+            <snapshots>
76
+                <enabled>false</enabled>
77
+            </snapshots>
78
+        </repository>
79
+    </repositories>
80
+
81
+    <pluginRepositories>
82
+        <pluginRepository>
83
+            <id>spring-snapshots</id>
84
+            <name>Spring Snapshots</name>
85
+            <url>https://repo.spring.io/snapshot</url>
86
+            <snapshots>
87
+                <enabled>true</enabled>
88
+            </snapshots>
89
+        </pluginRepository>
90
+        <pluginRepository>
91
+            <id>spring-milestones</id>
92
+            <name>Spring Milestones</name>
93
+            <url>https://repo.spring.io/milestone</url>
94
+            <snapshots>
95
+                <enabled>false</enabled>
96
+            </snapshots>
97
+        </pluginRepository>
98
+    </pluginRepositories>
99
+
100
+
101
+</project>

+ 12
- 0
Spring-Boot-2.0.0.M7.a.RELEASE/02-spring-boot-overview/directory-web/src/main/java/io/pivotal/workshop/directory/DirectoryWebApplication.java ファイルの表示

@@ -0,0 +1,12 @@
1
+package io.pivotal.workshop.directory;
2
+
3
+import org.springframework.boot.SpringApplication;
4
+import org.springframework.boot.autoconfigure.SpringBootApplication;
5
+
6
+@SpringBootApplication
7
+public class DirectoryWebApplication {
8
+
9
+	public static void main(String[] args) {
10
+		SpringApplication.run(DirectoryWebApplication.class, args);
11
+	}
12
+}

+ 116
- 0
Spring-Boot-2.0.0.M7.a.RELEASE/02-spring-boot-overview/directory-web/src/main/java/io/pivotal/workshop/directory/controller/DirectoryController.java ファイルの表示

@@ -0,0 +1,116 @@
1
+package io.pivotal.workshop.directory.controller;
2
+
3
+import java.net.URI;
4
+import java.util.Optional;
5
+
6
+import org.springframework.beans.factory.annotation.Autowired;
7
+import org.springframework.http.HttpStatus;
8
+import org.springframework.http.ResponseEntity;
9
+import org.springframework.web.bind.annotation.PathVariable;
10
+import org.springframework.web.bind.annotation.RequestBody;
11
+import org.springframework.web.bind.annotation.RequestMapping;
12
+import org.springframework.web.bind.annotation.RequestMethod;
13
+import org.springframework.web.bind.annotation.RequestParam;
14
+import org.springframework.web.bind.annotation.ResponseStatus;
15
+import org.springframework.web.bind.annotation.RestController;
16
+import org.springframework.web.servlet.support.ServletUriComponentsBuilder;
17
+
18
+import io.pivotal.workshop.directory.domain.Person;
19
+import io.pivotal.workshop.directory.repository.DirectoryRepository;
20
+
21
+@RestController
22
+public class DirectoryController {
23
+
24
+	private DirectoryRepository repo;
25
+
26
+	@Autowired
27
+	public DirectoryController(DirectoryRepository repo) {
28
+		this.repo = repo;
29
+	}
30
+
31
+	@RequestMapping("/directory")
32
+	public ResponseEntity<Iterable<Person>> findAll() {
33
+		return ResponseEntity.ok(this.repo.findAll());
34
+	}
35
+	
36
+	
37
+	//SOLUTION: Challenges
38
+	@RequestMapping("/directory/{id}")
39
+	public ResponseEntity<?> findById(@PathVariable String id) {
40
+		Optional<Person> result = this.repo.findById(id);
41
+
42
+		if (result.isPresent()) {
43
+			return ResponseEntity.ok(result.get());
44
+		}
45
+
46
+		return ResponseEntity.status(HttpStatus.NOT_FOUND).body("{}");
47
+	}
48
+
49
+	@RequestMapping("/directory/search")
50
+	public ResponseEntity<?> searchByEmail(@RequestParam String email) {
51
+		Optional<Person> result = this.repo.findByEmail(email);
52
+
53
+		if (result.isPresent()) {
54
+			return ResponseEntity.ok(result.get());
55
+		}
56
+
57
+		return ResponseEntity.status(HttpStatus.NOT_FOUND).body("{}");
58
+	}
59
+
60
+	@RequestMapping(value = "/directory/{id}", method = { RequestMethod.DELETE })
61
+	@ResponseStatus(HttpStatus.NO_CONTENT)
62
+	public void deletePerson(@PathVariable String id) {
63
+		this.repo.delete(id);
64
+	}
65
+	
66
+	
67
+	@RequestMapping(value = "/directory", method = { RequestMethod.POST })
68
+	public ResponseEntity<?> addPerson(@RequestBody Person person) {
69
+
70
+		return this.save(person);
71
+	}
72
+
73
+	@RequestMapping(value = "/directory", method = { RequestMethod.PUT })
74
+	public ResponseEntity<?> updatePerson(@RequestBody Person person) {
75
+		return this.save(person);
76
+	}
77
+
78
+	private ResponseEntity<?> save(Person person) {
79
+		
80
+		Person result = this.repo.save(person);
81
+
82
+		final URI location = ServletUriComponentsBuilder.fromCurrentServletMapping().path("/directory/{id}").build()
83
+				.expand(person.getId()).toUri();
84
+
85
+		return ResponseEntity.created(location).body(result);
86
+	}
87
+	
88
+
89
+	//SOLUTION: Homework
90
+	/*
91
+	@RequestMapping(value = "/directory", method = { RequestMethod.POST })
92
+	public ResponseEntity<?> addPerson(@Valid @RequestBody Person person, BindingResult bindingResult) {
93
+
94
+		return this.save(person, bindingResult);
95
+	}
96
+
97
+	@RequestMapping(value = "/directory", method = { RequestMethod.PUT })
98
+	public ResponseEntity<?> updatePerson(@Valid @RequestBody Person person, BindingResult bindingResult) {
99
+		return this.save(person, bindingResult);
100
+	}
101
+
102
+	private ResponseEntity<?> save(Person person, BindingResult bindingResult) {
103
+		
104
+		if (bindingResult.hasErrors()) {
105
+			return ResponseEntity.status(HttpStatus.BAD_REQUEST).body(new PersonError(bindingResult.getAllErrors()));
106
+		}
107
+
108
+		Person result = this.repo.save(person);
109
+
110
+		final URI location = ServletUriComponentsBuilder.fromCurrentServletMapping().path("/directory/{id}").build()
111
+				.expand(person.getId()).toUri();
112
+
113
+		return ResponseEntity.created(location).body(result);
114
+	}
115
+	*/
116
+}

+ 109
- 0
Spring-Boot-2.0.0.M7.a.RELEASE/02-spring-boot-overview/directory-web/src/main/java/io/pivotal/workshop/directory/domain/Person.java ファイルの表示

@@ -0,0 +1,109 @@
1
+package io.pivotal.workshop.directory.domain;
2
+
3
+import java.text.ParseException;
4
+import java.text.SimpleDateFormat;
5
+import java.util.Date;
6
+import java.util.UUID;
7
+
8
+import javax.validation.constraints.NotNull;
9
+
10
+public class Person {
11
+
12
+	private SimpleDateFormat date = new SimpleDateFormat("yyyy-MM-dd");
13
+	
14
+	private String id;
15
+	
16
+	@NotNull
17
+	private String email;
18
+	@NotNull
19
+	private String name;
20
+	@NotNull
21
+	private String password;
22
+	private Date birthday;
23
+	private Date created;
24
+	private Date modified;
25
+
26
+	public Person(){
27
+		this.id = UUID.randomUUID().toString().replaceAll("-", "");
28
+		this.created = new Date();
29
+		this.modified = new Date();
30
+	}
31
+	
32
+	public Person(String email, String name, String password, String birthday) {
33
+		this();
34
+		this.email = email;
35
+		this.name = name;
36
+		this.password = password;
37
+		
38
+		try {
39
+			this.birthday = date.parse(birthday);
40
+		} catch (ParseException e) {
41
+			this.birthday = null;
42
+		}
43
+	}
44
+	
45
+	public Person(String email, String name, String password, Date birthday) {
46
+		this();
47
+		this.email = email;
48
+		this.name = name;
49
+		this.password = password;
50
+		this.birthday = birthday;
51
+	}
52
+
53
+	public String getId() {
54
+		return id;
55
+	}
56
+
57
+	public void setId(String id) {
58
+		this.id = id;
59
+	}
60
+
61
+	public String getEmail() {
62
+		return email;
63
+	}
64
+
65
+	public void setEmail(String email) {
66
+		this.email = email;
67
+	}
68
+
69
+	public String getName() {
70
+		return name;
71
+	}
72
+
73
+	public void setName(String name) {
74
+		this.name = name;
75
+	}
76
+
77
+	public String getPassword() {
78
+		return password;
79
+	}
80
+
81
+	public void setPassword(String password) {
82
+		this.password = password;
83
+	}
84
+
85
+	public Date getBirthday() {
86
+		return birthday;
87
+	}
88
+
89
+	public void setBirthday(Date birthday) {
90
+		this.birthday = birthday;
91
+	}
92
+
93
+	public Date getCreated() {
94
+		return created;
95
+	}
96
+
97
+	public void setCreated(Date created) {
98
+		this.created = created;
99
+	}
100
+
101
+	public Date getModified() {
102
+		return modified;
103
+	}
104
+
105
+	public void setModified(Date modified) {
106
+		this.modified = modified;
107
+	}
108
+
109
+}

+ 40
- 0
Spring-Boot-2.0.0.M7.a.RELEASE/02-spring-boot-overview/directory-web/src/main/java/io/pivotal/workshop/directory/error/PersonError.java ファイルの表示

@@ -0,0 +1,40 @@
1
+package io.pivotal.workshop.directory.error;
2
+
3
+import java.util.Date;
4
+import java.util.List;
5
+
6
+import org.springframework.validation.ObjectError;
7
+
8
+public class PersonError {
9
+
10
+	private List<ObjectError> errors;
11
+	private Date date;
12
+	
13
+	public PersonError(){
14
+		this.date = new Date();
15
+	}
16
+	
17
+	public PersonError(List<ObjectError> errors){
18
+		this();
19
+		this.errors = errors;
20
+	}
21
+
22
+	public List<ObjectError> getErrors() {
23
+		return errors;
24
+	}
25
+
26
+	public void setErrors(List<ObjectError> errors) {
27
+		this.errors = errors;
28
+	}
29
+
30
+	public Date getDate() {
31
+		return date;
32
+	}
33
+
34
+	public void setDate(Date date) {
35
+		this.date = date;
36
+	}
37
+	
38
+	
39
+	
40
+}

+ 77
- 0
Spring-Boot-2.0.0.M7.a.RELEASE/02-spring-boot-overview/directory-web/src/main/java/io/pivotal/workshop/directory/repository/DirectoryRepository.java ファイルの表示

@@ -0,0 +1,77 @@
1
+package io.pivotal.workshop.directory.repository;
2
+
3
+import java.util.ArrayList;
4
+import java.util.Date;
5
+import java.util.List;
6
+import java.util.Optional;
7
+import java.util.UUID;
8
+import java.util.function.Predicate;
9
+
10
+import org.springframework.stereotype.Repository;
11
+
12
+import io.pivotal.workshop.directory.domain.Person;
13
+
14
+@Repository
15
+public class DirectoryRepository {
16
+	
17
+	
18
+	@SuppressWarnings("serial")
19
+	private List<Person> directory = new ArrayList<Person>(){{
20
+		add(new Person("john@email.com","John S","password","1985-11-10"));
21
+		add(new Person("mike@email.com","Mike H","password","1984-12-02"));
22
+		add(new Person("dan@email.com","Dan B","password","1983-03-07"));
23
+		add(new Person("bill@email.com","Bill G","password","1983-06-12"));
24
+		add(new Person("mark@email.com","Mark S","password","1986-02-22"));
25
+	}};
26
+	
27
+	public Iterable<Person> findAll(){
28
+		return this.directory;
29
+	}
30
+	
31
+	// SOLUTION:
32
+	public Optional<Person> findByEmail(String email){
33
+		return findFirstBy( p -> p.getEmail().equals(email));
34
+	}
35
+	
36
+	public Optional<Person> findById(String id){
37
+		return findFirstBy( p -> p.getId().equals(id));
38
+	}
39
+	
40
+	public Person save(Person person){
41
+		Optional<Person> result = this.findById(person.getId());
42
+		
43
+		if(result.isPresent()){
44
+			
45
+			if( person.getEmail() != null) result.get().setEmail(person.getEmail());
46
+			if( person.getName() != null) result.get().setName(person.getName());
47
+			if( person.getPassword() != null) result.get().setPassword(person.getPassword());
48
+			if( person.getBirthday() != null) result.get().setBirthday(person.getBirthday());
49
+			result.get().setModified(new Date());
50
+			
51
+			return result.get();
52
+			
53
+		}else{
54
+			
55
+			if (person.getId() != null){
56
+				person.setId(UUID.randomUUID().toString().replaceAll("-",""));
57
+			}
58
+			
59
+			person.setCreated(new Date());
60
+			person.setModified(new Date());
61
+			this.directory.add(person);
62
+			
63
+			return person;
64
+		}
65
+	}
66
+	
67
+	public void delete(String id){
68
+		this.findById(id).ifPresent(p -> { this.directory.remove(p); }); 
69
+	}
70
+	
71
+	private Optional<Person> findFirstBy(Predicate<Person> findBy){
72
+		return directory.stream()
73
+		.filter(findBy)
74
+		.findFirst();
75
+	}
76
+	
77
+}

+ 2
- 0
Spring-Boot-2.0.0.M7.a.RELEASE/02-spring-boot-overview/directory-web/src/main/resources/application.properties ファイルの表示

@@ -0,0 +1,2 @@
1
+# SOLUTION: Date format
2
+#spring.jackson.date-format=yyyy-MM-dd

+ 16
- 0
Spring-Boot-2.0.0.M7.a.RELEASE/02-spring-boot-overview/directory-web/src/test/java/io/pivotal/workshop/directory/DirectoryWebApplicationTests.java ファイルの表示

@@ -0,0 +1,16 @@
1
+package io.pivotal.workshop.directory;
2
+
3
+import org.junit.Test;
4
+import org.junit.runner.RunWith;
5
+import org.springframework.boot.test.context.SpringBootTest;
6
+import org.springframework.test.context.junit4.SpringRunner;
7
+
8
+@RunWith(SpringRunner.class)
9
+@SpringBootTest
10
+public class DirectoryWebApplicationTests {
11
+
12
+	@Test
13
+	public void contextLoads() {
14
+	}
15
+
16
+}

バイナリ
Spring-Boot-2.0.0.M7.a.RELEASE/03-spring-boot-internals/.DS_Store ファイルの表示


バイナリ
Spring-Boot-2.0.0.M7.a.RELEASE/03-spring-boot-internals/directory-web-internals/.DS_Store ファイルの表示


+ 36
- 0
Spring-Boot-2.0.0.M7.a.RELEASE/03-spring-boot-internals/directory-web-internals/.classpath ファイルの表示

@@ -0,0 +1,36 @@
1
+<?xml version="1.0" encoding="UTF-8"?>
2
+<classpath>
3
+	<classpathentry kind="src" output="target/classes" path="src/main/java">
4
+		<attributes>
5
+			<attribute name="optional" value="true"/>
6
+			<attribute name="maven.pomderived" value="true"/>
7
+		</attributes>
8
+	</classpathentry>
9
+	<classpathentry excluding="**" kind="src" output="target/classes" path="src/main/resources">
10
+		<attributes>
11
+			<attribute name="maven.pomderived" value="true"/>
12
+		</attributes>
13
+	</classpathentry>
14
+	<classpathentry kind="src" output="target/test-classes" path="src/test/java">
15
+		<attributes>
16
+			<attribute name="optional" value="true"/>
17
+			<attribute name="maven.pomderived" value="true"/>
18
+		</attributes>
19
+	</classpathentry>
20
+	<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.8">
21
+		<attributes>
22
+			<attribute name="maven.pomderived" value="true"/>
23
+		</attributes>
24
+	</classpathentry>
25
+	<classpathentry kind="con" path="org.eclipse.m2e.MAVEN2_CLASSPATH_CONTAINER">
26
+		<attributes>
27
+			<attribute name="maven.pomderived" value="true"/>
28
+		</attributes>
29
+	</classpathentry>
30
+	<classpathentry kind="src" path=".apt_generated">
31
+		<attributes>
32
+			<attribute name="optional" value="true"/>
33
+		</attributes>
34
+	</classpathentry>
35
+	<classpathentry kind="output" path="target/classes"/>
36
+</classpath>

+ 53
- 0
Spring-Boot-2.0.0.M7.a.RELEASE/03-spring-boot-internals/directory-web-internals/.factorypath ファイルの表示

@@ -0,0 +1,53 @@
1
+<factorypath>
2
+    <factorypathentry kind="VARJAR" id="M2_REPO/org/springframework/boot/spring-boot-starter-web/1.5.4.RELEASE/spring-boot-starter-web-1.5.4.RELEASE.jar" enabled="true" runInBatchMode="false"/>
3
+    <factorypathentry kind="VARJAR" id="M2_REPO/org/springframework/boot/spring-boot-starter/1.5.4.RELEASE/spring-boot-starter-1.5.4.RELEASE.jar" enabled="true" runInBatchMode="false"/>
4
+    <factorypathentry kind="VARJAR" id="M2_REPO/org/springframework/boot/spring-boot-starter-logging/1.5.4.RELEASE/spring-boot-starter-logging-1.5.4.RELEASE.jar" enabled="true" runInBatchMode="false"/>
5
+    <factorypathentry kind="VARJAR" id="M2_REPO/ch/qos/logback/logback-classic/1.1.11/logback-classic-1.1.11.jar" enabled="true" runInBatchMode="false"/>
6
+    <factorypathentry kind="VARJAR" id="M2_REPO/ch/qos/logback/logback-core/1.1.11/logback-core-1.1.11.jar" enabled="true" runInBatchMode="false"/>
7
+    <factorypathentry kind="VARJAR" id="M2_REPO/org/slf4j/jcl-over-slf4j/1.7.25/jcl-over-slf4j-1.7.25.jar" enabled="true" runInBatchMode="false"/>
8
+    <factorypathentry kind="VARJAR" id="M2_REPO/org/slf4j/jul-to-slf4j/1.7.25/jul-to-slf4j-1.7.25.jar" enabled="true" runInBatchMode="false"/>
9
+    <factorypathentry kind="VARJAR" id="M2_REPO/org/slf4j/log4j-over-slf4j/1.7.25/log4j-over-slf4j-1.7.25.jar" enabled="true" runInBatchMode="false"/>
10
+    <factorypathentry kind="VARJAR" id="M2_REPO/org/yaml/snakeyaml/1.17/snakeyaml-1.17.jar" enabled="true" runInBatchMode="false"/>
11
+    <factorypathentry kind="VARJAR" id="M2_REPO/org/springframework/boot/spring-boot-starter-tomcat/1.5.4.RELEASE/spring-boot-starter-tomcat-1.5.4.RELEASE.jar" enabled="true" runInBatchMode="false"/>
12
+    <factorypathentry kind="VARJAR" id="M2_REPO/org/apache/tomcat/embed/tomcat-embed-core/8.5.15/tomcat-embed-core-8.5.15.jar" enabled="true" runInBatchMode="false"/>
13
+    <factorypathentry kind="VARJAR" id="M2_REPO/org/apache/tomcat/embed/tomcat-embed-el/8.5.15/tomcat-embed-el-8.5.15.jar" enabled="true" runInBatchMode="false"/>
14
+    <factorypathentry kind="VARJAR" id="M2_REPO/org/apache/tomcat/embed/tomcat-embed-websocket/8.5.15/tomcat-embed-websocket-8.5.15.jar" enabled="true" runInBatchMode="false"/>
15
+    <factorypathentry kind="VARJAR" id="M2_REPO/org/hibernate/hibernate-validator/5.3.5.Final/hibernate-validator-5.3.5.Final.jar" enabled="true" runInBatchMode="false"/>
16
+    <factorypathentry kind="VARJAR" id="M2_REPO/javax/validation/validation-api/1.1.0.Final/validation-api-1.1.0.Final.jar" enabled="true" runInBatchMode="false"/>
17
+    <factorypathentry kind="VARJAR" id="M2_REPO/org/jboss/logging/jboss-logging/3.3.1.Final/jboss-logging-3.3.1.Final.jar" enabled="true" runInBatchMode="false"/>
18
+    <factorypathentry kind="VARJAR" id="M2_REPO/com/fasterxml/classmate/1.3.3/classmate-1.3.3.jar" enabled="true" runInBatchMode="false"/>
19
+    <factorypathentry kind="VARJAR" id="M2_REPO/com/fasterxml/jackson/core/jackson-databind/2.8.8/jackson-databind-2.8.8.jar" enabled="true" runInBatchMode="false"/>
20
+    <factorypathentry kind="VARJAR" id="M2_REPO/com/fasterxml/jackson/core/jackson-annotations/2.8.0/jackson-annotations-2.8.0.jar" enabled="true" runInBatchMode="false"/>
21
+    <factorypathentry kind="VARJAR" id="M2_REPO/com/fasterxml/jackson/core/jackson-core/2.8.8/jackson-core-2.8.8.jar" enabled="true" runInBatchMode="false"/>
22
+    <factorypathentry kind="VARJAR" id="M2_REPO/org/springframework/spring-web/4.3.9.RELEASE/spring-web-4.3.9.RELEASE.jar" enabled="true" runInBatchMode="false"/>
23
+    <factorypathentry kind="VARJAR" id="M2_REPO/org/springframework/spring-beans/4.3.9.RELEASE/spring-beans-4.3.9.RELEASE.jar" enabled="true" runInBatchMode="false"/>
24
+    <factorypathentry kind="VARJAR" id="M2_REPO/org/springframework/spring-context/4.3.9.RELEASE/spring-context-4.3.9.RELEASE.jar" enabled="true" runInBatchMode="false"/>
25
+    <factorypathentry kind="VARJAR" id="M2_REPO/org/springframework/spring-webmvc/4.3.9.RELEASE/spring-webmvc-4.3.9.RELEASE.jar" enabled="true" runInBatchMode="false"/>
26
+    <factorypathentry kind="VARJAR" id="M2_REPO/org/springframework/spring-expression/4.3.9.RELEASE/spring-expression-4.3.9.RELEASE.jar" enabled="true" runInBatchMode="false"/>
27
+    <factorypathentry kind="VARJAR" id="M2_REPO/org/springframework/boot/spring-boot-starter-aop/1.5.4.RELEASE/spring-boot-starter-aop-1.5.4.RELEASE.jar" enabled="true" runInBatchMode="false"/>
28
+    <factorypathentry kind="VARJAR" id="M2_REPO/org/springframework/spring-aop/4.3.9.RELEASE/spring-aop-4.3.9.RELEASE.jar" enabled="true" runInBatchMode="false"/>
29
+    <factorypathentry kind="VARJAR" id="M2_REPO/org/aspectj/aspectjweaver/1.8.10/aspectjweaver-1.8.10.jar" enabled="true" runInBatchMode="false"/>
30
+    <factorypathentry kind="VARJAR" id="M2_REPO/org/springframework/boot/spring-boot-devtools/1.5.4.RELEASE/spring-boot-devtools-1.5.4.RELEASE.jar" enabled="true" runInBatchMode="false"/>
31
+    <factorypathentry kind="VARJAR" id="M2_REPO/org/springframework/boot/spring-boot/1.5.4.RELEASE/spring-boot-1.5.4.RELEASE.jar" enabled="true" runInBatchMode="false"/>
32
+    <factorypathentry kind="VARJAR" id="M2_REPO/org/springframework/boot/spring-boot-autoconfigure/1.5.4.RELEASE/spring-boot-autoconfigure-1.5.4.RELEASE.jar" enabled="true" runInBatchMode="false"/>
33
+    <factorypathentry kind="VARJAR" id="M2_REPO/org/springframework/boot/spring-boot-starter-test/1.5.4.RELEASE/spring-boot-starter-test-1.5.4.RELEASE.jar" enabled="true" runInBatchMode="false"/>
34
+    <factorypathentry kind="VARJAR" id="M2_REPO/org/springframework/boot/spring-boot-test/1.5.4.RELEASE/spring-boot-test-1.5.4.RELEASE.jar" enabled="true" runInBatchMode="false"/>
35
+    <factorypathentry kind="VARJAR" id="M2_REPO/org/springframework/boot/spring-boot-test-autoconfigure/1.5.4.RELEASE/spring-boot-test-autoconfigure-1.5.4.RELEASE.jar" enabled="true" runInBatchMode="false"/>
36
+    <factorypathentry kind="VARJAR" id="M2_REPO/com/jayway/jsonpath/json-path/2.2.0/json-path-2.2.0.jar" enabled="true" runInBatchMode="false"/>
37
+    <factorypathentry kind="VARJAR" id="M2_REPO/net/minidev/json-smart/2.2.1/json-smart-2.2.1.jar" enabled="true" runInBatchMode="false"/>
38
+    <factorypathentry kind="VARJAR" id="M2_REPO/net/minidev/accessors-smart/1.1/accessors-smart-1.1.jar" enabled="true" runInBatchMode="false"/>
39
+    <factorypathentry kind="VARJAR" id="M2_REPO/org/ow2/asm/asm/5.0.3/asm-5.0.3.jar" enabled="true" runInBatchMode="false"/>
40
+    <factorypathentry kind="VARJAR" id="M2_REPO/org/slf4j/slf4j-api/1.7.25/slf4j-api-1.7.25.jar" enabled="true" runInBatchMode="false"/>
41
+    <factorypathentry kind="VARJAR" id="M2_REPO/junit/junit/4.12/junit-4.12.jar" enabled="true" runInBatchMode="false"/>
42
+    <factorypathentry kind="VARJAR" id="M2_REPO/org/assertj/assertj-core/2.6.0/assertj-core-2.6.0.jar" enabled="true" runInBatchMode="false"/>
43
+    <factorypathentry kind="VARJAR" id="M2_REPO/org/mockito/mockito-core/1.10.19/mockito-core-1.10.19.jar" enabled="true" runInBatchMode="false"/>
44
+    <factorypathentry kind="VARJAR" id="M2_REPO/org/objenesis/objenesis/2.1/objenesis-2.1.jar" enabled="true" runInBatchMode="false"/>
45
+    <factorypathentry kind="VARJAR" id="M2_REPO/org/hamcrest/hamcrest-core/1.3/hamcrest-core-1.3.jar" enabled="true" runInBatchMode="false"/>
46
+    <factorypathentry kind="VARJAR" id="M2_REPO/org/hamcrest/hamcrest-library/1.3/hamcrest-library-1.3.jar" enabled="true" runInBatchMode="false"/>
47
+    <factorypathentry kind="VARJAR" id="M2_REPO/org/skyscreamer/jsonassert/1.4.0/jsonassert-1.4.0.jar" enabled="true" runInBatchMode="false"/>
48
+    <factorypathentry kind="VARJAR" id="M2_REPO/org/springframework/spring-core/4.3.9.RELEASE/spring-core-4.3.9.RELEASE.jar" enabled="true" runInBatchMode="false"/>
49
+    <factorypathentry kind="VARJAR" id="M2_REPO/org/springframework/spring-test/4.3.9.RELEASE/spring-test-4.3.9.RELEASE.jar" enabled="true" runInBatchMode="false"/>
50
+    <factorypathentry kind="VARJAR" id="M2_REPO/org/springframework/boot/spring-boot-configuration-processor/1.5.4.RELEASE/spring-boot-configuration-processor-1.5.4.RELEASE.jar" enabled="true" runInBatchMode="false"/>
51
+    <factorypathentry kind="VARJAR" id="M2_REPO/com/vaadin/external/google/android-json/0.0.20131108.vaadin1/android-json-0.0.20131108.vaadin1.jar" enabled="true" runInBatchMode="false"/>
52
+    <factorypathentry kind="PLUGIN" id="org.eclipse.jst.ws.annotations.core" enabled="true" runInBatchMode="false"/>
53
+</factorypath>

バイナリ
Spring-Boot-2.0.0.M7.a.RELEASE/03-spring-boot-internals/directory-web-internals/.mvn/wrapper/maven-wrapper.jar ファイルの表示


+ 1
- 0
Spring-Boot-2.0.0.M7.a.RELEASE/03-spring-boot-internals/directory-web-internals/.mvn/wrapper/maven-wrapper.properties ファイルの表示

@@ -0,0 +1 @@
1
+distributionUrl=https://repo1.maven.org/maven2/org/apache/maven/apache-maven/3.5.0/apache-maven-3.5.0-bin.zip

+ 40
- 0
Spring-Boot-2.0.0.M7.a.RELEASE/03-spring-boot-internals/directory-web-internals/.project ファイルの表示

@@ -0,0 +1,40 @@
1
+<?xml version="1.0" encoding="UTF-8"?>
2
+<projectDescription>
3
+	<name>directory-web-internals</name>
4
+	<comment></comment>
5
+	<projects>
6
+	</projects>
7
+	<buildSpec>
8
+		<buildCommand>
9
+			<name>org.eclipse.wst.common.project.facet.core.builder</name>
10
+			<arguments>
11
+			</arguments>
12
+		</buildCommand>
13
+		<buildCommand>
14
+			<name>org.eclipse.jdt.core.javabuilder</name>
15
+			<arguments>
16
+			</arguments>
17
+		</buildCommand>
18
+		<buildCommand>
19
+			<name>org.eclipse.m2e.core.maven2Builder</name>
20
+			<arguments>
21
+			</arguments>
22
+		</buildCommand>
23
+		<buildCommand>
24
+			<name>org.springframework.ide.eclipse.core.springbuilder</name>
25
+			<arguments>
26
+			</arguments>
27
+		</buildCommand>
28
+		<buildCommand>
29
+			<name>org.springframework.ide.eclipse.boot.validation.springbootbuilder</name>
30
+			<arguments>
31
+			</arguments>
32
+		</buildCommand>
33
+	</buildSpec>
34
+	<natures>
35
+		<nature>org.springframework.ide.eclipse.core.springnature</nature>
36
+		<nature>org.eclipse.jdt.core.javanature</nature>
37
+		<nature>org.eclipse.m2e.core.maven2Nature</nature>
38
+		<nature>org.eclipse.wst.common.project.facet.core.nature</nature>
39
+	</natures>
40
+</projectDescription>

+ 5
- 0
Spring-Boot-2.0.0.M7.a.RELEASE/03-spring-boot-internals/directory-web-internals/.settings/org.eclipse.core.resources.prefs ファイルの表示

@@ -0,0 +1,5 @@
1
+eclipse.preferences.version=1
2
+encoding//src/main/java=UTF-8
3
+encoding//src/main/resources=UTF-8
4
+encoding//src/test/java=UTF-8
5
+encoding/<project>=UTF-8

+ 2
- 0
Spring-Boot-2.0.0.M7.a.RELEASE/03-spring-boot-internals/directory-web-internals/.settings/org.eclipse.jdt.apt.core.prefs ファイルの表示

@@ -0,0 +1,2 @@
1
+eclipse.preferences.version=1
2
+org.eclipse.jdt.apt.aptEnabled=true

+ 6
- 0
Spring-Boot-2.0.0.M7.a.RELEASE/03-spring-boot-internals/directory-web-internals/.settings/org.eclipse.jdt.core.prefs ファイルの表示

@@ -0,0 +1,6 @@
1
+eclipse.preferences.version=1
2
+org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.8
3
+org.eclipse.jdt.core.compiler.compliance=1.8
4
+org.eclipse.jdt.core.compiler.problem.forbiddenReference=warning
5
+org.eclipse.jdt.core.compiler.processAnnotations=enabled
6
+org.eclipse.jdt.core.compiler.source=1.8

+ 4
- 0
Spring-Boot-2.0.0.M7.a.RELEASE/03-spring-boot-internals/directory-web-internals/.settings/org.eclipse.m2e.core.prefs ファイルの表示

@@ -0,0 +1,4 @@
1
+activeProfiles=
2
+eclipse.preferences.version=1
3
+resolveWorkspaceProjects=true
4
+version=1

+ 4
- 0
Spring-Boot-2.0.0.M7.a.RELEASE/03-spring-boot-internals/directory-web-internals/.settings/org.eclipse.wst.common.project.facet.core.xml ファイルの表示

@@ -0,0 +1,4 @@
1
+<?xml version="1.0" encoding="UTF-8"?>
2
+<faceted-project>
3
+  <installed facet="cloudfoundry.standalone.app" version="1.0"/>
4
+</faceted-project>

+ 42
- 0
Spring-Boot-2.0.0.M7.a.RELEASE/03-spring-boot-internals/directory-web-internals/build.gradle ファイルの表示

@@ -0,0 +1,42 @@
1
+buildscript {
2
+    ext {
3
+        springBootVersion = '2.0.0.M7'
4
+    }
5
+    repositories {
6
+        mavenCentral()
7
+        maven { url "https://repo.spring.io/snapshot" }
8
+        maven { url "https://repo.spring.io/milestone" }
9
+    }
10
+    dependencies {
11
+        classpath("org.springframework.boot:spring-boot-gradle-plugin:${springBootVersion}")
12
+    }
13
+}
14
+
15
+apply plugin: 'java'
16
+apply plugin: 'eclipse'
17
+apply plugin: 'org.springframework.boot'
18
+apply plugin: 'io.spring.dependency-management'
19
+
20
+version = '0.0.1-SNAPSHOT'
21
+sourceCompatibility = 1.8
22
+
23
+repositories {
24
+    mavenCentral()
25
+    maven { url "https://repo.spring.io/snapshot" }
26
+    maven { url "https://repo.spring.io/milestone" }
27
+}
28
+
29
+
30
+dependencies {
31
+	compile('org.springframework.boot:spring-boot-starter-web')
32
+	compile('org.springframework.boot:spring-boot-starter-aop')
33
+	
34
+	
35
+	compile('org.springframework.boot:spring-boot-devtools')
36
+	optional("org.springframework.boot:spring-boot-configuration-processor")
37
+	
38
+	// SOLUTION: XML response
39
+	// compile('com.fasterxml.jackson.dataformat:jackson-dataformat-xml')
40
+	
41
+	testCompile('org.springframework.boot:spring-boot-starter-test')
42
+}

バイナリ
Spring-Boot-2.0.0.M7.a.RELEASE/03-spring-boot-internals/directory-web-internals/gradle/.DS_Store ファイルの表示


バイナリ
Spring-Boot-2.0.0.M7.a.RELEASE/03-spring-boot-internals/directory-web-internals/gradle/wrapper/gradle-wrapper.jar ファイルの表示


+ 5
- 0
Spring-Boot-2.0.0.M7.a.RELEASE/03-spring-boot-internals/directory-web-internals/gradle/wrapper/gradle-wrapper.properties ファイルの表示

@@ -0,0 +1,5 @@
1
+distributionBase=GRADLE_USER_HOME
2
+distributionPath=wrapper/dists
3
+zipStoreBase=GRADLE_USER_HOME
4
+zipStorePath=wrapper/dists
5
+distributionUrl=https\://services.gradle.org/distributions/gradle-3.5.1-bin.zip

+ 172
- 0
Spring-Boot-2.0.0.M7.a.RELEASE/03-spring-boot-internals/directory-web-internals/gradlew ファイルの表示

@@ -0,0 +1,172 @@
1
+#!/usr/bin/env sh
2
+
3
+##############################################################################
4
+##
5
+##  Gradle start up script for UN*X
6
+##
7
+##############################################################################
8
+
9
+# Attempt to set APP_HOME
10
+# Resolve links: $0 may be a link
11
+PRG="$0"
12
+# Need this for relative symlinks.
13
+while [ -h "$PRG" ] ; do
14
+    ls=`ls -ld "$PRG"`
15
+    link=`expr "$ls" : '.*-> \(.*\)$'`
16
+    if expr "$link" : '/.*' > /dev/null; then
17
+        PRG="$link"
18
+    else
19
+        PRG=`dirname "$PRG"`"/$link"
20
+    fi
21
+done
22
+SAVED="`pwd`"
23
+cd "`dirname \"$PRG\"`/" >/dev/null
24
+APP_HOME="`pwd -P`"
25
+cd "$SAVED" >/dev/null
26
+
27
+APP_NAME="Gradle"
28
+APP_BASE_NAME=`basename "$0"`
29
+
30
+# Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
31
+DEFAULT_JVM_OPTS=""
32
+
33
+# Use the maximum available, or set MAX_FD != -1 to use that value.
34
+MAX_FD="maximum"
35
+
36
+warn ( ) {
37
+    echo "$*"
38
+}
39
+
40
+die ( ) {
41
+    echo
42
+    echo "$*"
43
+    echo
44
+    exit 1
45
+}
46
+
47
+# OS specific support (must be 'true' or 'false').
48
+cygwin=false
49
+msys=false
50
+darwin=false
51
+nonstop=false
52
+case "`uname`" in
53
+  CYGWIN* )
54
+    cygwin=true
55
+    ;;
56
+  Darwin* )
57
+    darwin=true
58
+    ;;
59
+  MINGW* )
60
+    msys=true
61
+    ;;
62
+  NONSTOP* )
63
+    nonstop=true
64
+    ;;
65
+esac
66
+
67
+CLASSPATH=$APP_HOME/gradle/wrapper/gradle-wrapper.jar
68
+
69
+# Determine the Java command to use to start the JVM.
70
+if [ -n "$JAVA_HOME" ] ; then
71
+    if [ -x "$JAVA_HOME/jre/sh/java" ] ; then
72
+        # IBM's JDK on AIX uses strange locations for the executables
73
+        JAVACMD="$JAVA_HOME/jre/sh/java"
74
+    else
75
+        JAVACMD="$JAVA_HOME/bin/java"
76
+    fi
77
+    if [ ! -x "$JAVACMD" ] ; then
78
+        die "ERROR: JAVA_HOME is set to an invalid directory: $JAVA_HOME
79
+
80
+Please set the JAVA_HOME variable in your environment to match the
81
+location of your Java installation."
82
+    fi
83
+else
84
+    JAVACMD="java"
85
+    which java >/dev/null 2>&1 || die "ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
86
+
87
+Please set the JAVA_HOME variable in your environment to match the
88
+location of your Java installation."
89
+fi
90
+
91
+# Increase the maximum file descriptors if we can.
92
+if [ "$cygwin" = "false" -a "$darwin" = "false" -a "$nonstop" = "false" ] ; then
93
+    MAX_FD_LIMIT=`ulimit -H -n`
94
+    if [ $? -eq 0 ] ; then
95
+        if [ "$MAX_FD" = "maximum" -o "$MAX_FD" = "max" ] ; then
96
+            MAX_FD="$MAX_FD_LIMIT"
97
+        fi
98
+        ulimit -n $MAX_FD
99
+        if [ $? -ne 0 ] ; then
100
+            warn "Could not set maximum file descriptor limit: $MAX_FD"
101
+        fi
102
+    else
103
+        warn "Could not query maximum file descriptor limit: $MAX_FD_LIMIT"
104
+    fi
105
+fi
106
+
107
+# For Darwin, add options to specify how the application appears in the dock
108
+if $darwin; then
109
+    GRADLE_OPTS="$GRADLE_OPTS \"-Xdock:name=$APP_NAME\" \"-Xdock:icon=$APP_HOME/media/gradle.icns\""
110
+fi
111
+
112
+# For Cygwin, switch paths to Windows format before running java
113
+if $cygwin ; then
114
+    APP_HOME=`cygpath --path --mixed "$APP_HOME"`
115
+    CLASSPATH=`cygpath --path --mixed "$CLASSPATH"`
116
+    JAVACMD=`cygpath --unix "$JAVACMD"`
117
+
118
+    # We build the pattern for arguments to be converted via cygpath
119
+    ROOTDIRSRAW=`find -L / -maxdepth 1 -mindepth 1 -type d 2>/dev/null`
120
+    SEP=""
121
+    for dir in $ROOTDIRSRAW ; do
122
+        ROOTDIRS="$ROOTDIRS$SEP$dir"
123
+        SEP="|"
124
+    done
125
+    OURCYGPATTERN="(^($ROOTDIRS))"
126
+    # Add a user-defined pattern to the cygpath arguments
127
+    if [ "$GRADLE_CYGPATTERN" != "" ] ; then
128
+        OURCYGPATTERN="$OURCYGPATTERN|($GRADLE_CYGPATTERN)"
129
+    fi
130
+    # Now convert the arguments - kludge to limit ourselves to /bin/sh
131
+    i=0
132
+    for arg in "$@" ; do
133
+        CHECK=`echo "$arg"|egrep -c "$OURCYGPATTERN" -`
134
+        CHECK2=`echo "$arg"|egrep -c "^-"`                                 ### Determine if an option
135
+
136
+        if [ $CHECK -ne 0 ] && [ $CHECK2 -eq 0 ] ; then                    ### Added a condition
137
+            eval `echo args$i`=`cygpath --path --ignore --mixed "$arg"`
138
+        else
139
+            eval `echo args$i`="\"$arg\""
140
+        fi
141
+        i=$((i+1))
142
+    done
143
+    case $i in
144
+        (0) set -- ;;
145
+        (1) set -- "$args0" ;;
146
+        (2) set -- "$args0" "$args1" ;;
147
+        (3) set -- "$args0" "$args1" "$args2" ;;
148
+        (4) set -- "$args0" "$args1" "$args2" "$args3" ;;
149
+        (5) set -- "$args0" "$args1" "$args2" "$args3" "$args4" ;;
150
+        (6) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" ;;
151
+        (7) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" ;;
152
+        (8) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" "$args7" ;;
153
+        (9) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" "$args7" "$args8" ;;
154
+    esac
155
+fi
156
+
157
+# Escape application args
158
+save ( ) {
159
+    for i do printf %s\\n "$i" | sed "s/'/'\\\\''/g;1s/^/'/;\$s/\$/' \\\\/" ; done
160
+    echo " "
161
+}
162
+APP_ARGS=$(save "$@")
163
+
164
+# Collect all arguments for the java command, following the shell quoting and substitution rules
165
+eval set -- $DEFAULT_JVM_OPTS $JAVA_OPTS $GRADLE_OPTS "\"-Dorg.gradle.appname=$APP_BASE_NAME\"" -classpath "\"$CLASSPATH\"" org.gradle.wrapper.GradleWrapperMain "$APP_ARGS"
166
+
167
+# by default we should be in the correct project dir, but when run from Finder on Mac, the cwd is wrong
168
+if [ "$(uname)" = "Darwin" ] && [ "$HOME" = "$PWD" ]; then
169
+  cd "$(dirname "$0")"
170
+fi
171
+
172
+exec "$JAVACMD" "$@"

+ 84
- 0
Spring-Boot-2.0.0.M7.a.RELEASE/03-spring-boot-internals/directory-web-internals/gradlew.bat ファイルの表示

@@ -0,0 +1,84 @@
1
+@if "%DEBUG%" == "" @echo off
2
+@rem ##########################################################################
3
+@rem
4
+@rem  Gradle startup script for Windows
5
+@rem
6
+@rem ##########################################################################
7
+
8
+@rem Set local scope for the variables with windows NT shell
9
+if "%OS%"=="Windows_NT" setlocal
10
+
11
+set DIRNAME=%~dp0
12
+if "%DIRNAME%" == "" set DIRNAME=.
13
+set APP_BASE_NAME=%~n0
14
+set APP_HOME=%DIRNAME%
15
+
16
+@rem Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
17
+set DEFAULT_JVM_OPTS=
18
+
19
+@rem Find java.exe
20
+if defined JAVA_HOME goto findJavaFromJavaHome
21
+
22
+set JAVA_EXE=java.exe
23
+%JAVA_EXE% -version >NUL 2>&1
24
+if "%ERRORLEVEL%" == "0" goto init
25
+
26
+echo.
27
+echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
28
+echo.
29
+echo Please set the JAVA_HOME variable in your environment to match the
30
+echo location of your Java installation.
31
+
32
+goto fail
33
+
34
+:findJavaFromJavaHome
35
+set JAVA_HOME=%JAVA_HOME:"=%
36
+set JAVA_EXE=%JAVA_HOME%/bin/java.exe
37
+
38
+if exist "%JAVA_EXE%" goto init
39
+
40
+echo.
41
+echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME%
42
+echo.
43
+echo Please set the JAVA_HOME variable in your environment to match the
44
+echo location of your Java installation.
45
+
46
+goto fail
47
+
48
+:init
49
+@rem Get command-line arguments, handling Windows variants
50
+
51
+if not "%OS%" == "Windows_NT" goto win9xME_args
52
+
53
+:win9xME_args
54
+@rem Slurp the command line arguments.
55
+set CMD_LINE_ARGS=
56
+set _SKIP=2
57
+
58
+:win9xME_args_slurp
59
+if "x%~1" == "x" goto execute
60
+
61
+set CMD_LINE_ARGS=%*
62
+
63
+:execute
64
+@rem Setup the command line
65
+
66
+set CLASSPATH=%APP_HOME%\gradle\wrapper\gradle-wrapper.jar
67
+
68
+@rem Execute Gradle
69
+"%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -classpath "%CLASSPATH%" org.gradle.wrapper.GradleWrapperMain %CMD_LINE_ARGS%
70
+
71
+:end
72
+@rem End local scope for the variables with windows NT shell
73
+if "%ERRORLEVEL%"=="0" goto mainEnd
74
+
75
+:fail
76
+rem Set variable GRADLE_EXIT_CONSOLE if you need the _script_ return code instead of
77
+rem the _cmd.exe /c_ return code!
78
+if  not "" == "%GRADLE_EXIT_CONSOLE%" exit 1
79
+exit /b 1
80
+
81
+:mainEnd
82
+if "%OS%"=="Windows_NT" endlocal
83
+
84
+:omega

+ 225
- 0
Spring-Boot-2.0.0.M7.a.RELEASE/03-spring-boot-internals/directory-web-internals/mvnw ファイルの表示

@@ -0,0 +1,225 @@
1
+#!/bin/sh
2
+# ----------------------------------------------------------------------------
3
+# Licensed to the Apache Software Foundation (ASF) under one
4
+# or more contributor license agreements.  See the NOTICE file
5
+# distributed with this work for additional information
6
+# regarding copyright ownership.  The ASF licenses this file
7
+# to you under the Apache License, Version 2.0 (the
8
+# "License"); you may not use this file except in compliance
9
+# with the License.  You may obtain a copy of the License at
10
+#
11
+#    http://www.apache.org/licenses/LICENSE-2.0
12
+#
13
+# Unless required by applicable law or agreed to in writing,
14
+# software distributed under the License is distributed on an
15
+# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16
+# KIND, either express or implied.  See the License for the
17
+# specific language governing permissions and limitations
18
+# under the License.
19
+# ----------------------------------------------------------------------------
20
+
21
+# ----------------------------------------------------------------------------
22
+# Maven2 Start Up Batch script
23
+#
24
+# Required ENV vars:
25
+# ------------------
26
+#   JAVA_HOME - location of a JDK home dir
27
+#
28
+# Optional ENV vars
29
+# -----------------
30
+#   M2_HOME - location of maven2's installed home dir
31
+#   MAVEN_OPTS - parameters passed to the Java VM when running Maven
32
+#     e.g. to debug Maven itself, use
33
+#       set MAVEN_OPTS=-Xdebug -Xrunjdwp:transport=dt_socket,server=y,suspend=y,address=8000
34
+#   MAVEN_SKIP_RC - flag to disable loading of mavenrc files
35
+# ----------------------------------------------------------------------------
36
+
37
+if [ -z "$MAVEN_SKIP_RC" ] ; then
38
+
39
+  if [ -f /etc/mavenrc ] ; then
40
+    . /etc/mavenrc
41
+  fi
42
+
43
+  if [ -f "$HOME/.mavenrc" ] ; then
44
+    . "$HOME/.mavenrc"
45
+  fi
46
+
47
+fi
48
+
49
+# OS specific support.  $var _must_ be set to either true or false.
50
+cygwin=false;
51
+darwin=false;
52
+mingw=false
53
+case "`uname`" in
54
+  CYGWIN*) cygwin=true ;;
55
+  MINGW*) mingw=true;;
56
+  Darwin*) darwin=true
57
+    # Use /usr/libexec/java_home if available, otherwise fall back to /Library/Java/Home
58
+    # See https://developer.apple.com/library/mac/qa/qa1170/_index.html
59
+    if [ -z "$JAVA_HOME" ]; then
60
+      if [ -x "/usr/libexec/java_home" ]; then
61
+        export JAVA_HOME="`/usr/libexec/java_home`"
62
+      else
63
+        export JAVA_HOME="/Library/Java/Home"
64
+      fi
65
+    fi
66
+    ;;
67
+esac
68
+
69
+if [ -z "$JAVA_HOME" ] ; then
70
+  if [ -r /etc/gentoo-release ] ; then
71
+    JAVA_HOME=`java-config --jre-home`
72
+  fi
73
+fi
74
+
75
+if [ -z "$M2_HOME" ] ; then
76
+  ## resolve links - $0 may be a link to maven's home
77
+  PRG="$0"
78
+
79
+  # need this for relative symlinks
80
+  while [ -h "$PRG" ] ; do
81
+    ls=`ls -ld "$PRG"`
82
+    link=`expr "$ls" : '.*-> \(.*\)$'`
83
+    if expr "$link" : '/.*' > /dev/null; then
84
+      PRG="$link"
85
+    else
86
+      PRG="`dirname "$PRG"`/$link"
87
+    fi
88
+  done
89
+
90
+  saveddir=`pwd`
91
+
92
+  M2_HOME=`dirname "$PRG"`/..
93
+
94
+  # make it fully qualified
95
+  M2_HOME=`cd "$M2_HOME" && pwd`
96
+
97
+  cd "$saveddir"
98
+  # echo Using m2 at $M2_HOME
99
+fi
100
+
101
+# For Cygwin, ensure paths are in UNIX format before anything is touched
102
+if $cygwin ; then
103
+  [ -n "$M2_HOME" ] &&
104
+    M2_HOME=`cygpath --unix "$M2_HOME"`
105
+  [ -n "$JAVA_HOME" ] &&
106
+    JAVA_HOME=`cygpath --unix "$JAVA_HOME"`
107
+  [ -n "$CLASSPATH" ] &&
108
+    CLASSPATH=`cygpath --path --unix "$CLASSPATH"`
109
+fi
110
+
111
+# For Migwn, ensure paths are in UNIX format before anything is touched
112
+if $mingw ; then
113
+  [ -n "$M2_HOME" ] &&
114
+    M2_HOME="`(cd "$M2_HOME"; pwd)`"
115
+  [ -n "$JAVA_HOME" ] &&
116
+    JAVA_HOME="`(cd "$JAVA_HOME"; pwd)`"
117
+  # TODO classpath?
118
+fi
119
+
120
+if [ -z "$JAVA_HOME" ]; then
121
+  javaExecutable="`which javac`"
122
+  if [ -n "$javaExecutable" ] && ! [ "`expr \"$javaExecutable\" : '\([^ ]*\)'`" = "no" ]; then
123
+    # readlink(1) is not available as standard on Solaris 10.
124
+    readLink=`which readlink`
125
+    if [ ! `expr "$readLink" : '\([^ ]*\)'` = "no" ]; then
126
+      if $darwin ; then
127
+        javaHome="`dirname \"$javaExecutable\"`"
128
+        javaExecutable="`cd \"$javaHome\" && pwd -P`/javac"
129
+      else
130
+        javaExecutable="`readlink -f \"$javaExecutable\"`"
131
+      fi
132
+      javaHome="`dirname \"$javaExecutable\"`"
133
+      javaHome=`expr "$javaHome" : '\(.*\)/bin'`
134
+      JAVA_HOME="$javaHome"
135
+      export JAVA_HOME
136
+    fi
137
+  fi
138
+fi
139
+
140
+if [ -z "$JAVACMD" ] ; then
141
+  if [ -n "$JAVA_HOME"  ] ; then
142
+    if [ -x "$JAVA_HOME/jre/sh/java" ] ; then
143
+      # IBM's JDK on AIX uses strange locations for the executables
144
+      JAVACMD="$JAVA_HOME/jre/sh/java"
145
+    else
146
+      JAVACMD="$JAVA_HOME/bin/java"
147
+    fi
148
+  else
149
+    JAVACMD="`which java`"
150
+  fi
151
+fi
152
+
153
+if [ ! -x "$JAVACMD" ] ; then
154
+  echo "Error: JAVA_HOME is not defined correctly." >&2
155
+  echo "  We cannot execute $JAVACMD" >&2
156
+  exit 1
157
+fi
158
+
159
+if [ -z "$JAVA_HOME" ] ; then
160
+  echo "Warning: JAVA_HOME environment variable is not set."
161
+fi
162
+
163
+CLASSWORLDS_LAUNCHER=org.codehaus.plexus.classworlds.launcher.Launcher
164
+
165
+# traverses directory structure from process work directory to filesystem root
166
+# first directory with .mvn subdirectory is considered project base directory
167
+find_maven_basedir() {
168
+
169
+  if [ -z "$1" ]
170
+  then
171
+    echo "Path not specified to find_maven_basedir"
172
+    return 1
173
+  fi
174
+
175
+  basedir="$1"
176
+  wdir="$1"
177
+  while [ "$wdir" != '/' ] ; do
178
+    if [ -d "$wdir"/.mvn ] ; then
179
+      basedir=$wdir
180
+      break
181
+    fi
182
+    # workaround for JBEAP-8937 (on Solaris 10/Sparc)
183
+    if [ -d "${wdir}" ]; then
184
+      wdir=`cd "$wdir/.."; pwd`
185
+    fi
186
+    # end of workaround
187
+  done
188
+  echo "${basedir}"
189
+}
190
+
191
+# concatenates all lines of a file
192
+concat_lines() {
193
+  if [ -f "$1" ]; then
194
+    echo "$(tr -s '\n' ' ' < "$1")"
195
+  fi
196
+}
197
+
198
+BASE_DIR=`find_maven_basedir "$(pwd)"`
199
+if [ -z "$BASE_DIR" ]; then
200
+  exit 1;
201
+fi
202
+
203
+export MAVEN_PROJECTBASEDIR=${MAVEN_BASEDIR:-"$BASE_DIR"}
204
+echo $MAVEN_PROJECTBASEDIR
205
+MAVEN_OPTS="$(concat_lines "$MAVEN_PROJECTBASEDIR/.mvn/jvm.config") $MAVEN_OPTS"
206
+
207
+# For Cygwin, switch paths to Windows format before running java
208
+if $cygwin; then
209
+  [ -n "$M2_HOME" ] &&
210
+    M2_HOME=`cygpath --path --windows "$M2_HOME"`
211
+  [ -n "$JAVA_HOME" ] &&
212
+    JAVA_HOME=`cygpath --path --windows "$JAVA_HOME"`
213
+  [ -n "$CLASSPATH" ] &&
214
+    CLASSPATH=`cygpath --path --windows "$CLASSPATH"`
215
+  [ -n "$MAVEN_PROJECTBASEDIR" ] &&
216
+    MAVEN_PROJECTBASEDIR=`cygpath --path --windows "$MAVEN_PROJECTBASEDIR"`
217
+fi
218
+
219
+WRAPPER_LAUNCHER=org.apache.maven.wrapper.MavenWrapperMain
220
+
221
+exec "$JAVACMD" \
222
+  $MAVEN_OPTS \
223
+  -classpath "$MAVEN_PROJECTBASEDIR/.mvn/wrapper/maven-wrapper.jar" \
224
+  "-Dmaven.home=${M2_HOME}" "-Dmaven.multiModuleProjectDirectory=${MAVEN_PROJECTBASEDIR}" \
225
+  ${WRAPPER_LAUNCHER} $MAVEN_CONFIG "$@"

+ 143
- 0
Spring-Boot-2.0.0.M7.a.RELEASE/03-spring-boot-internals/directory-web-internals/mvnw.cmd ファイルの表示

@@ -0,0 +1,143 @@
1
+@REM ----------------------------------------------------------------------------
2
+@REM Licensed to the Apache Software Foundation (ASF) under one
3
+@REM or more contributor license agreements.  See the NOTICE file
4
+@REM distributed with this work for additional information
5
+@REM regarding copyright ownership.  The ASF licenses this file
6
+@REM to you under the Apache License, Version 2.0 (the
7
+@REM "License"); you may not use this file except in compliance
8
+@REM with the License.  You may obtain a copy of the License at
9
+@REM
10
+@REM    http://www.apache.org/licenses/LICENSE-2.0
11
+@REM
12
+@REM Unless required by applicable law or agreed to in writing,
13
+@REM software distributed under the License is distributed on an
14
+@REM "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15
+@REM KIND, either express or implied.  See the License for the
16
+@REM specific language governing permissions and limitations
17
+@REM under the License.
18
+@REM ----------------------------------------------------------------------------
19
+
20
+@REM ----------------------------------------------------------------------------
21
+@REM Maven2 Start Up Batch script
22
+@REM
23
+@REM Required ENV vars:
24
+@REM JAVA_HOME - location of a JDK home dir
25
+@REM
26
+@REM Optional ENV vars
27
+@REM M2_HOME - location of maven2's installed home dir
28
+@REM MAVEN_BATCH_ECHO - set to 'on' to enable the echoing of the batch commands
29
+@REM MAVEN_BATCH_PAUSE - set to 'on' to wait for a key stroke before ending
30
+@REM MAVEN_OPTS - parameters passed to the Java VM when running Maven
31
+@REM     e.g. to debug Maven itself, use
32
+@REM set MAVEN_OPTS=-Xdebug -Xrunjdwp:transport=dt_socket,server=y,suspend=y,address=8000
33
+@REM MAVEN_SKIP_RC - flag to disable loading of mavenrc files
34
+@REM ----------------------------------------------------------------------------
35
+
36
+@REM Begin all REM lines with '@' in case MAVEN_BATCH_ECHO is 'on'
37
+@echo off
38
+@REM enable echoing my setting MAVEN_BATCH_ECHO to 'on'
39
+@if "%MAVEN_BATCH_ECHO%" == "on"  echo %MAVEN_BATCH_ECHO%
40
+
41
+@REM set %HOME% to equivalent of $HOME
42
+if "%HOME%" == "" (set "HOME=%HOMEDRIVE%%HOMEPATH%")
43
+
44
+@REM Execute a user defined script before this one
45
+if not "%MAVEN_SKIP_RC%" == "" goto skipRcPre
46
+@REM check for pre script, once with legacy .bat ending and once with .cmd ending
47
+if exist "%HOME%\mavenrc_pre.bat" call "%HOME%\mavenrc_pre.bat"
48
+if exist "%HOME%\mavenrc_pre.cmd" call "%HOME%\mavenrc_pre.cmd"
49
+:skipRcPre
50
+
51
+@setlocal
52
+
53
+set ERROR_CODE=0
54
+
55
+@REM To isolate internal variables from possible post scripts, we use another setlocal
56
+@setlocal
57
+
58
+@REM ==== START VALIDATION ====
59
+if not "%JAVA_HOME%" == "" goto OkJHome
60
+
61
+echo.
62
+echo Error: JAVA_HOME not found in your environment. >&2
63
+echo Please set the JAVA_HOME variable in your environment to match the >&2
64
+echo location of your Java installation. >&2
65
+echo.
66
+goto error
67
+
68
+:OkJHome
69
+if exist "%JAVA_HOME%\bin\java.exe" goto init
70
+
71
+echo.
72
+echo Error: JAVA_HOME is set to an invalid directory. >&2
73
+echo JAVA_HOME = "%JAVA_HOME%" >&2
74
+echo Please set the JAVA_HOME variable in your environment to match the >&2
75
+echo location of your Java installation. >&2
76
+echo.
77
+goto error
78
+
79
+@REM ==== END VALIDATION ====
80
+
81
+:init
82
+
83
+@REM Find the project base dir, i.e. the directory that contains the folder ".mvn".
84
+@REM Fallback to current working directory if not found.
85
+
86
+set MAVEN_PROJECTBASEDIR=%MAVEN_BASEDIR%
87
+IF NOT "%MAVEN_PROJECTBASEDIR%"=="" goto endDetectBaseDir
88
+
89
+set EXEC_DIR=%CD%
90
+set WDIR=%EXEC_DIR%
91
+:findBaseDir
92
+IF EXIST "%WDIR%"\.mvn goto baseDirFound
93
+cd ..
94
+IF "%WDIR%"=="%CD%" goto baseDirNotFound
95
+set WDIR=%CD%
96
+goto findBaseDir
97
+
98
+:baseDirFound
99
+set MAVEN_PROJECTBASEDIR=%WDIR%
100
+cd "%EXEC_DIR%"
101
+goto endDetectBaseDir
102
+
103
+:baseDirNotFound
104
+set MAVEN_PROJECTBASEDIR=%EXEC_DIR%
105
+cd "%EXEC_DIR%"
106
+
107
+:endDetectBaseDir
108
+
109
+IF NOT EXIST "%MAVEN_PROJECTBASEDIR%\.mvn\jvm.config" goto endReadAdditionalConfig
110
+
111
+@setlocal EnableExtensions EnableDelayedExpansion
112
+for /F "usebackq delims=" %%a in ("%MAVEN_PROJECTBASEDIR%\.mvn\jvm.config") do set JVM_CONFIG_MAVEN_PROPS=!JVM_CONFIG_MAVEN_PROPS! %%a
113
+@endlocal & set JVM_CONFIG_MAVEN_PROPS=%JVM_CONFIG_MAVEN_PROPS%
114
+
115
+:endReadAdditionalConfig
116
+
117
+SET MAVEN_JAVA_EXE="%JAVA_HOME%\bin\java.exe"
118
+
119
+set WRAPPER_JAR="%MAVEN_PROJECTBASEDIR%\.mvn\wrapper\maven-wrapper.jar"
120
+set WRAPPER_LAUNCHER=org.apache.maven.wrapper.MavenWrapperMain
121
+
122
+%MAVEN_JAVA_EXE% %JVM_CONFIG_MAVEN_PROPS% %MAVEN_OPTS% %MAVEN_DEBUG_OPTS% -classpath %WRAPPER_JAR% "-Dmaven.multiModuleProjectDirectory=%MAVEN_PROJECTBASEDIR%" %WRAPPER_LAUNCHER% %MAVEN_CONFIG% %*
123
+if ERRORLEVEL 1 goto error
124
+goto end
125
+
126
+:error
127
+set ERROR_CODE=1
128
+
129
+:end
130
+@endlocal & set ERROR_CODE=%ERROR_CODE%
131
+
132
+if not "%MAVEN_SKIP_RC%" == "" goto skipRcPost
133
+@REM check for post script, once with legacy .bat ending and once with .cmd ending
134
+if exist "%HOME%\mavenrc_post.bat" call "%HOME%\mavenrc_post.bat"
135
+if exist "%HOME%\mavenrc_post.cmd" call "%HOME%\mavenrc_post.cmd"
136
+:skipRcPost
137
+
138
+@REM pause the script if MAVEN_BATCH_PAUSE is set to 'on'
139
+if "%MAVEN_BATCH_PAUSE%" == "on" pause
140
+
141
+if "%MAVEN_TERMINATE_CMD%" == "on" exit %ERROR_CODE%
142
+
143
+exit /B %ERROR_CODE%

+ 114
- 0
Spring-Boot-2.0.0.M7.a.RELEASE/03-spring-boot-internals/directory-web-internals/pom.xml ファイルの表示

@@ -0,0 +1,114 @@
1
+<?xml version="1.0" encoding="UTF-8"?>
2
+<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
3
+	xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
4
+	<modelVersion>4.0.0</modelVersion>
5
+
6
+	<groupId>io.pivotal.workshop</groupId>
7
+	<artifactId>directory-web-internals</artifactId>
8
+	<version>0.0.1-SNAPSHOT</version>
9
+	<packaging>jar</packaging>
10
+
11
+	<name>directory-web-internals</name>
12
+	<description>Demo project for Spring Boot</description>
13
+
14
+	<parent>
15
+		<groupId>org.springframework.boot</groupId>
16
+		<artifactId>spring-boot-starter-parent</artifactId>
17
+		<version>2.0.0.M7</version>
18
+		<relativePath /> <!-- lookup parent from repository -->
19
+	</parent>
20
+
21
+	<properties>
22
+		<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
23
+		<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
24
+		<java.version>1.8</java.version>
25
+	</properties>
26
+
27
+	<dependencies>
28
+		<dependency>
29
+			<groupId>org.springframework.boot</groupId>
30
+			<artifactId>spring-boot-starter-web</artifactId>
31
+		</dependency>
32
+		
33
+		<dependency>
34
+			<groupId>org.springframework.boot</groupId>
35
+			<artifactId>spring-boot-starter-aop</artifactId>
36
+		</dependency>
37
+
38
+
39
+		<!-- SOLUTION: XML reponse -->
40
+		<!--
41
+		<dependency>
42
+			<groupId>com.fasterxml.jackson.dataformat</groupId>
43
+			<artifactId>jackson-dataformat-xml</artifactId>
44
+		</dependency>
45
+		-->
46
+
47
+		<dependency>
48
+			<groupId>org.springframework.boot</groupId>
49
+			<artifactId>spring-boot-devtools</artifactId>
50
+		</dependency>
51
+		
52
+
53
+		<dependency>
54
+			<groupId>org.springframework.boot</groupId>
55
+			<artifactId>spring-boot-starter-test</artifactId>
56
+			<scope>test</scope>
57
+		</dependency>
58
+		
59
+		<dependency>
60
+			<groupId>org.springframework.boot</groupId>
61
+			<artifactId>spring-boot-configuration-processor</artifactId>
62
+			<optional>true</optional>
63
+		</dependency>
64
+	</dependencies>
65
+
66
+	<build>
67
+		<plugins>
68
+			<plugin>
69
+				<groupId>org.springframework.boot</groupId>
70
+				<artifactId>spring-boot-maven-plugin</artifactId>
71
+			</plugin>
72
+		</plugins>
73
+	</build>
74
+
75
+    <repositories>
76
+        <repository>
77
+            <id>spring-snapshots</id>
78
+            <name>Spring Snapshots</name>
79
+            <url>https://repo.spring.io/snapshot</url>
80
+            <snapshots>
81
+                <enabled>true</enabled>
82
+            </snapshots>
83
+        </repository>
84
+        <repository>
85
+            <id>spring-milestones</id>
86
+            <name>Spring Milestones</name>
87
+            <url>https://repo.spring.io/milestone</url>
88
+            <snapshots>
89
+                <enabled>false</enabled>
90
+            </snapshots>
91
+        </repository>
92
+    </repositories>
93
+
94
+    <pluginRepositories>
95
+        <pluginRepository>
96
+            <id>spring-snapshots</id>
97
+            <name>Spring Snapshots</name>
98
+            <url>https://repo.spring.io/snapshot</url>
99
+            <snapshots>
100
+                <enabled>true</enabled>
101
+            </snapshots>
102
+        </pluginRepository>
103
+        <pluginRepository>
104
+            <id>spring-milestones</id>
105
+            <name>Spring Milestones</name>
106
+            <url>https://repo.spring.io/milestone</url>
107
+            <snapshots>
108
+                <enabled>false</enabled>
109
+            </snapshots>
110
+        </pluginRepository>
111
+    </pluginRepositories>
112
+
113
+
114
+</project>

+ 12
- 0
Spring-Boot-2.0.0.M7.a.RELEASE/03-spring-boot-internals/directory-web-internals/src/main/java/io/pivotal/workshop/directory/DirectoryWebInternalsApplication.java ファイルの表示

@@ -0,0 +1,12 @@
1
+package io.pivotal.workshop.directory;
2
+
3
+import org.springframework.boot.SpringApplication;
4
+import org.springframework.boot.autoconfigure.SpringBootApplication;
5
+
6
+@SpringBootApplication
7
+public class DirectoryWebInternalsApplication {
8
+
9
+	public static void main(String[] args) {
10
+		SpringApplication.run(DirectoryWebInternalsApplication.class, args);
11
+	}
12
+}

+ 12
- 0
Spring-Boot-2.0.0.M7.a.RELEASE/03-spring-boot-internals/directory-web-internals/src/main/java/io/pivotal/workshop/directory/annotation/Audit.java ファイルの表示

@@ -0,0 +1,12 @@
1
+package io.pivotal.workshop.directory.annotation;
2
+
3
+import java.lang.annotation.ElementType;
4
+import java.lang.annotation.Retention;
5
+import java.lang.annotation.RetentionPolicy;
6
+import java.lang.annotation.Target;
7
+
8
+@Target(ElementType.METHOD)
9
+@Retention(RetentionPolicy.RUNTIME)
10
+public @interface Audit {
11
+	Auditor value() default Auditor.NOTHING;
12
+}

+ 5
- 0
Spring-Boot-2.0.0.M7.a.RELEASE/03-spring-boot-internals/directory-web-internals/src/main/java/io/pivotal/workshop/directory/annotation/Auditor.java ファイルの表示

@@ -0,0 +1,5 @@
1
+package io.pivotal.workshop.directory.annotation;
2
+
3
+public enum Auditor {
4
+	BEFORE, AFTER, BEFORE_AND_AFTER, NOTHING
5
+}

+ 74
- 0
Spring-Boot-2.0.0.M7.a.RELEASE/03-spring-boot-internals/directory-web-internals/src/main/java/io/pivotal/workshop/directory/aop/DirectoryAudit.java ファイルの表示

@@ -0,0 +1,74 @@
1
+package io.pivotal.workshop.directory.aop;
2
+
3
+import java.util.stream.IntStream;
4
+
5
+import org.aspectj.lang.ProceedingJoinPoint;
6
+import org.aspectj.lang.annotation.Around;
7
+import org.aspectj.lang.annotation.Aspect;
8
+import org.slf4j.Logger;
9
+import org.slf4j.LoggerFactory;
10
+
11
+import io.pivotal.workshop.directory.annotation.Audit;
12
+import io.pivotal.workshop.directory.config.DirectoryProperties;
13
+
14
+@Aspect
15
+public class DirectoryAudit {
16
+
17
+	private DirectoryProperties props;
18
+	
19
+	public DirectoryAudit(DirectoryProperties props){
20
+		this.props = props;
21
+	}
22
+	
23
+	private static Logger log = LoggerFactory.getLogger("[AUDIT]");
24
+
25
+	@Around("execution(* *(..)) && @annotation(audit)")
26
+	public Object audit(ProceedingJoinPoint jp, Audit audit) throws Throwable {
27
+		// Step. Get the Arguments
28
+		Object[] args = jp.getArgs();
29
+
30
+		// Step. Print execution information
31
+		this.printBar();
32
+		this.print("[executing] " + (props.getInfo().toLowerCase().equals("short") ? jp.getSignature().getName() : jp.getSignature() ));
33
+
34
+		// Step. Print arguments if any
35
+		switch (audit.value()) {
36
+		case BEFORE:
37
+		case BEFORE_AND_AFTER:
38
+			this.printArgs(args);
39
+		default:
40
+			break;
41
+		}
42
+
43
+		// Step. Proceed
44
+		Object obj = jp.proceed(args);
45
+
46
+		// Step. Print result if needed
47
+		switch (audit.value()) {
48
+		case AFTER:
49
+		case BEFORE_AND_AFTER:
50
+			this.print("[result] " + obj);
51
+		default:
52
+			this.printBar();
53
+			break;
54
+		}
55
+		
56
+		// Step. Return
57
+		return obj;
58
+	}
59
+
60
+	private void print(Object obj) {
61
+		log.info(obj.toString());
62
+	}
63
+
64
+	private void printArgs(Object[] args) {
65
+		IntStream.range(0, args.length).forEach(idx -> {
66
+			log.info(String.format("[params] arg%d = %s", idx, args[idx]));
67
+		});
68
+
69
+	}
70
+	
71
+	private void printBar(){
72
+		log.info("===========");
73
+	}
74
+}

+ 20
- 0
Spring-Boot-2.0.0.M7.a.RELEASE/03-spring-boot-internals/directory-web-internals/src/main/java/io/pivotal/workshop/directory/aop/SimpleAudit.java ファイルの表示

@@ -0,0 +1,20 @@
1
+package io.pivotal.workshop.directory.aop;
2
+
3
+import org.aspectj.lang.JoinPoint;
4
+import org.aspectj.lang.annotation.Aspect;
5
+import org.aspectj.lang.annotation.Before;
6
+import org.slf4j.Logger;
7
+import org.slf4j.LoggerFactory;
8
+
9
+import io.pivotal.workshop.directory.annotation.Audit;
10
+
11
+@Aspect
12
+public class SimpleAudit {
13
+
14
+	private static Logger log = LoggerFactory.getLogger("[AUDIT]");
15
+	
16
+	@Before("@annotation(audit)")
17
+	public void audit(JoinPoint jp, Audit audit){
18
+		log.info("[EXECUTING] " + jp.getSignature());
19
+	}
20
+}

+ 33
- 0
Spring-Boot-2.0.0.M7.a.RELEASE/03-spring-boot-internals/directory-web-internals/src/main/java/io/pivotal/workshop/directory/config/DirectoryConfig.java ファイルの表示

@@ -0,0 +1,33 @@
1
+package io.pivotal.workshop.directory.config;
2
+
3
+import org.springframework.boot.autoconfigure.condition.ConditionalOnClass;
4
+import org.springframework.context.annotation.Bean;
5
+import org.springframework.context.annotation.Configuration;
6
+
7
+import io.pivotal.workshop.directory.aop.SimpleAudit;
8
+
9
+@Configuration
10
+public class DirectoryConfig {
11
+	
12
+	@ConditionalOnClass(name={"io.pivotal.workshop.directory.repository.DirectoryRepository"})
13
+	@Bean
14
+	public SimpleAudit simpleAudit(){
15
+		return new SimpleAudit();
16
+	}
17
+	
18
+}
19
+
20
+// SOLUTION: 
21
+/*
22
+@Configuration
23
+@EnableConfigurationProperties(DirectoryProperties.class)
24
+public class DirectoryConfig {
25
+	
26
+	@ConditionalOnProperty(prefix="directory",name="audit",havingValue="on")
27
+	@Bean
28
+	public DirectoryAudit directoryAudit(DirectoryProperties props){
29
+		return new DirectoryAudit(props);
30
+	}
31
+	
32
+}
33
+*/

+ 29
- 0
Spring-Boot-2.0.0.M7.a.RELEASE/03-spring-boot-internals/directory-web-internals/src/main/java/io/pivotal/workshop/directory/config/DirectoryProperties.java ファイルの表示

@@ -0,0 +1,29 @@
1
+package io.pivotal.workshop.directory.config;
2
+
3
+import org.springframework.boot.context.properties.ConfigurationProperties;
4
+
5
+
6
+//SOLUTION: 
7
+@ConfigurationProperties(prefix = "directory")
8
+public class DirectoryProperties {
9
+
10
+	private String audit = "off";
11
+	private String info = "long";
12
+
13
+	public String getAudit() {
14
+		return audit;
15
+	}
16
+
17
+	public void setAudit(String audit) {
18
+		this.audit = audit;
19
+	}
20
+
21
+	public String getInfo() {
22
+		return info;
23
+	}
24
+
25
+	public void setInfo(String info) {
26
+		this.info = info;
27
+	}
28
+
29
+}

+ 116
- 0
Spring-Boot-2.0.0.M7.a.RELEASE/03-spring-boot-internals/directory-web-internals/src/main/java/io/pivotal/workshop/directory/controller/DirectoryController.java ファイルの表示

@@ -0,0 +1,116 @@
1
+package io.pivotal.workshop.directory.controller;
2
+
3
+import java.net.URI;
4
+import java.util.Optional;
5
+
6
+import org.springframework.beans.factory.annotation.Autowired;
7
+import org.springframework.http.HttpStatus;
8
+import org.springframework.http.ResponseEntity;
9
+import org.springframework.web.bind.annotation.PathVariable;
10
+import org.springframework.web.bind.annotation.RequestBody;
11
+import org.springframework.web.bind.annotation.RequestMapping;
12
+import org.springframework.web.bind.annotation.RequestMethod;
13
+import org.springframework.web.bind.annotation.RequestParam;
14
+import org.springframework.web.bind.annotation.ResponseStatus;
15
+import org.springframework.web.bind.annotation.RestController;
16
+import org.springframework.web.servlet.support.ServletUriComponentsBuilder;
17
+
18
+import io.pivotal.workshop.directory.domain.Person;
19
+import io.pivotal.workshop.directory.repository.DirectoryRepository;
20
+
21
+@RestController
22
+public class DirectoryController {
23
+
24
+	private DirectoryRepository repo;
25
+
26
+	@Autowired
27
+	public DirectoryController(DirectoryRepository repo) {
28
+		this.repo = repo;
29
+	}
30
+
31
+	@RequestMapping("/directory")
32
+	public ResponseEntity<Iterable<Person>> findAll() {
33
+		return ResponseEntity.ok(this.repo.findAll());
34
+	}
35
+	
36
+	
37
+	//SOLUTION: Challenges
38
+	@RequestMapping("/directory/{id}")
39
+	public ResponseEntity<?> findById(@PathVariable String id) {
40
+		Optional<Person> result = this.repo.findById(id);
41
+
42
+		if (result.isPresent()) {
43
+			return ResponseEntity.ok(result.get());
44
+		}
45
+
46
+		return ResponseEntity.status(HttpStatus.NOT_FOUND).body("{}");
47
+	}
48
+
49
+	@RequestMapping("/directory/search")
50
+	public ResponseEntity<?> searchByEmail(@RequestParam String email) {
51
+		Optional<Person> result = this.repo.findByEmail(email);
52
+
53
+		if (result.isPresent()) {
54
+			return ResponseEntity.ok(result.get());
55
+		}
56
+
57
+		return ResponseEntity.status(HttpStatus.NOT_FOUND).body("{}");
58
+	}
59
+
60
+	@RequestMapping(value = "/directory/{id}", method = { RequestMethod.DELETE })
61
+	@ResponseStatus(HttpStatus.NO_CONTENT)
62
+	public void deletePerson(@PathVariable String id) {
63
+		this.repo.delete(id);
64
+	}
65
+	
66
+	
67
+	@RequestMapping(value = "/directory", method = { RequestMethod.POST })
68
+	public ResponseEntity<?> addPerson(@RequestBody Person person) {
69
+
70
+		return this.save(person);
71
+	}
72
+
73
+	@RequestMapping(value = "/directory", method = { RequestMethod.PUT })
74
+	public ResponseEntity<?> updatePerson(@RequestBody Person person) {
75
+		return this.save(person);
76
+	}
77
+
78
+	private ResponseEntity<?> save(Person person) {
79
+		
80
+		Person result = this.repo.save(person);
81
+
82
+		final URI location = ServletUriComponentsBuilder.fromCurrentServletMapping().path("/directory/{id}").build()
83
+				.expand(person.getId()).toUri();
84
+
85
+		return ResponseEntity.created(location).body(result);
86
+	}
87
+	
88
+
89
+	//SOLUTION: Homework
90
+	/*
91
+	@RequestMapping(value = "/directory", method = { RequestMethod.POST })
92
+	public ResponseEntity<?> addPerson(@Valid @RequestBody Person person, BindingResult bindingResult) {
93
+
94
+		return this.save(person, bindingResult);
95
+	}
96
+
97
+	@RequestMapping(value = "/directory", method = { RequestMethod.PUT })
98
+	public ResponseEntity<?> updatePerson(@Valid @RequestBody Person person, BindingResult bindingResult) {
99
+		return this.save(person, bindingResult);
100
+	}
101
+
102
+	private ResponseEntity<?> save(Person person, BindingResult bindingResult) {
103
+		
104
+		if (bindingResult.hasErrors()) {
105
+			return ResponseEntity.status(HttpStatus.BAD_REQUEST).body(new PersonError(bindingResult.getAllErrors()));
106
+		}
107
+
108
+		Person result = this.repo.save(person);
109
+
110
+		final URI location = ServletUriComponentsBuilder.fromCurrentServletMapping().path("/directory/{id}").build()
111
+				.expand(person.getId()).toUri();
112
+
113
+		return ResponseEntity.created(location).body(result);
114
+	}
115
+	*/
116
+}

+ 115
- 0
Spring-Boot-2.0.0.M7.a.RELEASE/03-spring-boot-internals/directory-web-internals/src/main/java/io/pivotal/workshop/directory/domain/Person.java ファイルの表示

@@ -0,0 +1,115 @@
1
+package io.pivotal.workshop.directory.domain;
2
+
3
+import java.text.ParseException;
4
+import java.text.SimpleDateFormat;
5
+import java.util.Date;
6
+import java.util.UUID;
7
+
8
+import javax.validation.constraints.NotNull;
9
+
10
+public class Person {
11
+
12
+	private SimpleDateFormat date = new SimpleDateFormat("yyyy-MM-dd");
13
+
14
+	private String id;
15
+
16
+	@NotNull
17
+	private String email;
18
+	@NotNull
19
+	private String name;
20
+	@NotNull
21
+	private String password;
22
+	private Date birthday;
23
+	private Date created;
24
+	private Date modified;
25
+
26
+	public Person() {
27
+		this.id = UUID.randomUUID().toString().replaceAll("-", "");
28
+		this.created = new Date();
29
+		this.modified = new Date();
30
+	}
31
+
32
+	public Person(String email, String name, String password, String birthday) {
33
+		this();
34
+		this.email = email;
35
+		this.name = name;
36
+		this.password = password;
37
+
38
+		try {
39
+			this.birthday = date.parse(birthday);
40
+		} catch (ParseException e) {
41
+			this.birthday = null;
42
+		}
43
+	}
44
+
45
+	public Person(String email, String name, String password, Date birthday) {
46
+		this();
47
+		this.email = email;
48
+		this.name = name;
49
+		this.password = password;
50
+		this.birthday = birthday;
51
+	}
52
+
53
+	public String getId() {
54
+		return id;
55
+	}
56
+
57
+	public void setId(String id) {
58
+		this.id = id;
59
+	}
60
+
61
+	public String getEmail() {
62
+		return email;
63
+	}
64
+
65
+	public void setEmail(String email) {
66
+		this.email = email;
67
+	}
68
+
69
+	public String getName() {
70
+		return name;
71
+	}
72
+
73
+	public void setName(String name) {
74
+		this.name = name;
75
+	}
76
+
77
+	public String getPassword() {
78
+		return password;
79
+	}
80
+
81
+	public void setPassword(String password) {
82
+		this.password = password;
83
+	}
84
+
85
+	public Date getBirthday() {
86
+		return birthday;
87
+	}
88
+
89
+	public void setBirthday(Date birthday) {
90
+		this.birthday = birthday;
91
+	}
92
+
93
+	public Date getCreated() {
94
+		return created;
95
+	}
96
+
97
+	public void setCreated(Date created) {
98
+		this.created = created;
99
+	}
100
+
101
+	public Date getModified() {
102
+		return modified;
103
+	}
104
+
105
+	public void setModified(Date modified) {
106
+		this.modified = modified;
107
+	}
108
+
109
+	@Override
110
+	public String toString() {
111
+		return "Person [date=" + date + ", id=" + id + ", email=" + email + ", name=" + name + ", password=" + password
112
+				+ ", birthday=" + birthday + ", created=" + created + ", modified=" + modified + "]";
113
+	}
114
+
115
+}

+ 40
- 0
Spring-Boot-2.0.0.M7.a.RELEASE/03-spring-boot-internals/directory-web-internals/src/main/java/io/pivotal/workshop/directory/error/PersonError.java ファイルの表示

@@ -0,0 +1,40 @@
1
+package io.pivotal.workshop.directory.error;
2
+
3
+import java.util.Date;
4
+import java.util.List;
5
+
6
+import org.springframework.validation.ObjectError;
7
+
8
+public class PersonError {
9
+
10
+	private List<ObjectError> errors;
11
+	private Date date;
12
+	
13
+	public PersonError(){
14
+		this.date = new Date();
15
+	}
16
+	
17
+	public PersonError(List<ObjectError> errors){
18
+		this();
19
+		this.errors = errors;
20
+	}
21
+
22
+	public List<ObjectError> getErrors() {
23
+		return errors;
24
+	}
25
+
26
+	public void setErrors(List<ObjectError> errors) {
27
+		this.errors = errors;
28
+	}
29
+
30
+	public Date getDate() {
31
+		return date;
32
+	}
33
+
34
+	public void setDate(Date date) {
35
+		this.date = date;
36
+	}
37
+	
38
+	
39
+	
40
+}

+ 79
- 0
Spring-Boot-2.0.0.M7.a.RELEASE/03-spring-boot-internals/directory-web-internals/src/main/java/io/pivotal/workshop/directory/repository/DirectoryRepository.java ファイルの表示

@@ -0,0 +1,79 @@
1
+package io.pivotal.workshop.directory.repository;
2
+
3
+import java.util.ArrayList;
4
+import java.util.Date;
5
+import java.util.List;
6
+import java.util.Optional;
7
+import java.util.UUID;
8
+import java.util.function.Predicate;
9
+
10
+import org.springframework.stereotype.Repository;
11
+
12
+import io.pivotal.workshop.directory.annotation.Audit;
13
+import io.pivotal.workshop.directory.domain.Person;
14
+
15
+@Repository
16
+public class DirectoryRepository {
17
+	
18
+	
19
+	@SuppressWarnings("serial")
20
+	private List<Person> directory = new ArrayList<Person>(){{
21
+		add(new Person("john@email.com","John S","password","1985-11-10"));
22
+		add(new Person("mike@email.com","Mike H","password","1984-12-02"));
23
+		add(new Person("dan@email.com","Dan B","password","1983-03-07"));
24
+		add(new Person("bill@email.com","Bill G","password","1983-06-12"));
25
+		add(new Person("mark@email.com","Mark S","password","1986-02-22"));
26
+	}};
27
+	
28
+	public Iterable<Person> findAll(){
29
+		return this.directory;
30
+	}
31
+	
32
+	// SOLUTION:
33
+	@Audit
34
+	public Optional<Person> findByEmail(String email){
35
+		return findFirstBy( p -> p.getEmail().equals(email));
36
+	}
37
+	
38
+	public Optional<Person> findById(String id){
39
+		return findFirstBy( p -> p.getId().equals(id));
40
+	}
41
+	
42
+	public Person save(Person person){
43
+		Optional<Person> result = this.findById(person.getId());
44
+		
45
+		if(result.isPresent()){
46
+			
47
+			if( person.getEmail() != null) result.get().setEmail(person.getEmail());
48
+			if( person.getName() != null) result.get().setName(person.getName());
49
+			if( person.getPassword() != null) result.get().setPassword(person.getPassword());
50
+			if( person.getBirthday() != null) result.get().setBirthday(person.getBirthday());
51
+			result.get().setModified(new Date());
52
+			
53
+			return result.get();
54
+			
55
+		}else{
56
+			
57
+			if (person.getId() != null){
58
+				person.setId(UUID.randomUUID().toString().replaceAll("-",""));
59
+			}
60
+			
61
+			person.setCreated(new Date());
62
+			person.setModified(new Date());
63
+			this.directory.add(person);
64
+			
65
+			return person;
66
+		}
67
+	}
68
+	
69
+	public void delete(String id){
70
+		this.findById(id).ifPresent(p -> { this.directory.remove(p); }); 
71
+	}
72
+	
73
+	private Optional<Person> findFirstBy(Predicate<Person> findBy){
74
+		return directory.stream()
75
+		.filter(findBy)
76
+		.findFirst();
77
+	}
78
+	
79
+}

+ 9
- 0
Spring-Boot-2.0.0.M7.a.RELEASE/03-spring-boot-internals/directory-web-internals/src/main/resources/META-INF/additional-spring-configuration-metadata.json ファイルの表示

@@ -0,0 +1,9 @@
1
+{"properties": [{
2
+  "name": "directory.audit",
3
+  "type": "java.lang.String",
4
+  "description": "Directory Audit, use the @Audit annotation over methods, possible values: on, off"
5
+},{
6
+  "name": "directory.info",
7
+  "type": "java.lang.String",
8
+  "description": "Directory Audit, print out information about paramters and result. Possible values: short, long (default)"
9
+}]}

+ 6
- 0
Spring-Boot-2.0.0.M7.a.RELEASE/03-spring-boot-internals/directory-web-internals/src/main/resources/application.properties ファイルの表示

@@ -0,0 +1,6 @@
1
+# SOLUTION: Date format
2
+#spring.jackson.date-format=yyyy-MM-dd
3
+
4
+
5
+#directory.audit=off
6
+#directory.info=short

+ 16
- 0
Spring-Boot-2.0.0.M7.a.RELEASE/03-spring-boot-internals/directory-web-internals/src/test/java/io/pivotal/workshop/directory/DirectoryWebInternalsApplicationTests.java ファイルの表示

@@ -0,0 +1,16 @@
1
+package io.pivotal.workshop.directory;
2
+
3
+import org.junit.Test;
4
+import org.junit.runner.RunWith;
5
+import org.springframework.boot.test.context.SpringBootTest;
6
+import org.springframework.test.context.junit4.SpringRunner;
7
+
8
+@RunWith(SpringRunner.class)
9
+@SpringBootTest
10
+public class DirectoryWebInternalsApplicationTests {
11
+
12
+	@Test
13
+	public void contextLoads() {
14
+	}
15
+
16
+}

バイナリ
Spring-Boot-2.0.0.M7.a.RELEASE/04-spring-boot-features/.DS_Store ファイルの表示


バイナリ
Spring-Boot-2.0.0.M7.a.RELEASE/04-spring-boot-features/directory-web-features/.DS_Store ファイルの表示


+ 36
- 0
Spring-Boot-2.0.0.M7.a.RELEASE/04-spring-boot-features/directory-web-features/.classpath ファイルの表示

@@ -0,0 +1,36 @@
1
+<?xml version="1.0" encoding="UTF-8"?>
2
+<classpath>
3
+	<classpathentry kind="src" output="target/classes" path="src/main/java">
4
+		<attributes>
5
+			<attribute name="optional" value="true"/>
6
+			<attribute name="maven.pomderived" value="true"/>
7
+		</attributes>
8
+	</classpathentry>
9
+	<classpathentry excluding="**" kind="src" output="target/classes" path="src/main/resources">
10
+		<attributes>
11
+			<attribute name="maven.pomderived" value="true"/>
12
+		</attributes>
13
+	</classpathentry>
14
+	<classpathentry kind="src" output="target/test-classes" path="src/test/java">
15
+		<attributes>
16
+			<attribute name="optional" value="true"/>
17
+			<attribute name="maven.pomderived" value="true"/>
18
+		</attributes>
19
+	</classpathentry>
20
+	<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.8">
21
+		<attributes>
22
+			<attribute name="maven.pomderived" value="true"/>
23
+		</attributes>
24
+	</classpathentry>
25
+	<classpathentry kind="con" path="org.eclipse.m2e.MAVEN2_CLASSPATH_CONTAINER">
26
+		<attributes>
27
+			<attribute name="maven.pomderived" value="true"/>
28
+		</attributes>
29
+	</classpathentry>
30
+	<classpathentry kind="src" path=".apt_generated">
31
+		<attributes>
32
+			<attribute name="optional" value="true"/>
33
+		</attributes>
34
+	</classpathentry>
35
+	<classpathentry kind="output" path="target/classes"/>
36
+</classpath>

+ 53
- 0
Spring-Boot-2.0.0.M7.a.RELEASE/04-spring-boot-features/directory-web-features/.factorypath ファイルの表示

@@ -0,0 +1,53 @@
1
+<factorypath>
2
+    <factorypathentry kind="VARJAR" id="M2_REPO/org/springframework/boot/spring-boot-starter-web/1.5.4.RELEASE/spring-boot-starter-web-1.5.4.RELEASE.jar" enabled="true" runInBatchMode="false"/>
3
+    <factorypathentry kind="VARJAR" id="M2_REPO/org/springframework/boot/spring-boot-starter/1.5.4.RELEASE/spring-boot-starter-1.5.4.RELEASE.jar" enabled="true" runInBatchMode="false"/>
4
+    <factorypathentry kind="VARJAR" id="M2_REPO/org/springframework/boot/spring-boot-starter-logging/1.5.4.RELEASE/spring-boot-starter-logging-1.5.4.RELEASE.jar" enabled="true" runInBatchMode="false"/>
5
+    <factorypathentry kind="VARJAR" id="M2_REPO/ch/qos/logback/logback-classic/1.1.11/logback-classic-1.1.11.jar" enabled="true" runInBatchMode="false"/>
6
+    <factorypathentry kind="VARJAR" id="M2_REPO/ch/qos/logback/logback-core/1.1.11/logback-core-1.1.11.jar" enabled="true" runInBatchMode="false"/>
7
+    <factorypathentry kind="VARJAR" id="M2_REPO/org/slf4j/jcl-over-slf4j/1.7.25/jcl-over-slf4j-1.7.25.jar" enabled="true" runInBatchMode="false"/>
8
+    <factorypathentry kind="VARJAR" id="M2_REPO/org/slf4j/jul-to-slf4j/1.7.25/jul-to-slf4j-1.7.25.jar" enabled="true" runInBatchMode="false"/>
9
+    <factorypathentry kind="VARJAR" id="M2_REPO/org/slf4j/log4j-over-slf4j/1.7.25/log4j-over-slf4j-1.7.25.jar" enabled="true" runInBatchMode="false"/>
10
+    <factorypathentry kind="VARJAR" id="M2_REPO/org/yaml/snakeyaml/1.17/snakeyaml-1.17.jar" enabled="true" runInBatchMode="false"/>
11
+    <factorypathentry kind="VARJAR" id="M2_REPO/org/springframework/boot/spring-boot-starter-tomcat/1.5.4.RELEASE/spring-boot-starter-tomcat-1.5.4.RELEASE.jar" enabled="true" runInBatchMode="false"/>
12
+    <factorypathentry kind="VARJAR" id="M2_REPO/org/apache/tomcat/embed/tomcat-embed-core/8.5.15/tomcat-embed-core-8.5.15.jar" enabled="true" runInBatchMode="false"/>
13
+    <factorypathentry kind="VARJAR" id="M2_REPO/org/apache/tomcat/embed/tomcat-embed-el/8.5.15/tomcat-embed-el-8.5.15.jar" enabled="true" runInBatchMode="false"/>
14
+    <factorypathentry kind="VARJAR" id="M2_REPO/org/apache/tomcat/embed/tomcat-embed-websocket/8.5.15/tomcat-embed-websocket-8.5.15.jar" enabled="true" runInBatchMode="false"/>
15
+    <factorypathentry kind="VARJAR" id="M2_REPO/org/hibernate/hibernate-validator/5.3.5.Final/hibernate-validator-5.3.5.Final.jar" enabled="true" runInBatchMode="false"/>
16
+    <factorypathentry kind="VARJAR" id="M2_REPO/javax/validation/validation-api/1.1.0.Final/validation-api-1.1.0.Final.jar" enabled="true" runInBatchMode="false"/>
17
+    <factorypathentry kind="VARJAR" id="M2_REPO/org/jboss/logging/jboss-logging/3.3.1.Final/jboss-logging-3.3.1.Final.jar" enabled="true" runInBatchMode="false"/>
18
+    <factorypathentry kind="VARJAR" id="M2_REPO/com/fasterxml/classmate/1.3.3/classmate-1.3.3.jar" enabled="true" runInBatchMode="false"/>
19
+    <factorypathentry kind="VARJAR" id="M2_REPO/com/fasterxml/jackson/core/jackson-databind/2.8.8/jackson-databind-2.8.8.jar" enabled="true" runInBatchMode="false"/>
20
+    <factorypathentry kind="VARJAR" id="M2_REPO/com/fasterxml/jackson/core/jackson-annotations/2.8.0/jackson-annotations-2.8.0.jar" enabled="true" runInBatchMode="false"/>
21
+    <factorypathentry kind="VARJAR" id="M2_REPO/com/fasterxml/jackson/core/jackson-core/2.8.8/jackson-core-2.8.8.jar" enabled="true" runInBatchMode="false"/>
22
+    <factorypathentry kind="VARJAR" id="M2_REPO/org/springframework/spring-web/4.3.9.RELEASE/spring-web-4.3.9.RELEASE.jar" enabled="true" runInBatchMode="false"/>
23
+    <factorypathentry kind="VARJAR" id="M2_REPO/org/springframework/spring-beans/4.3.9.RELEASE/spring-beans-4.3.9.RELEASE.jar" enabled="true" runInBatchMode="false"/>
24
+    <factorypathentry kind="VARJAR" id="M2_REPO/org/springframework/spring-context/4.3.9.RELEASE/spring-context-4.3.9.RELEASE.jar" enabled="true" runInBatchMode="false"/>
25
+    <factorypathentry kind="VARJAR" id="M2_REPO/org/springframework/spring-webmvc/4.3.9.RELEASE/spring-webmvc-4.3.9.RELEASE.jar" enabled="true" runInBatchMode="false"/>
26
+    <factorypathentry kind="VARJAR" id="M2_REPO/org/springframework/spring-expression/4.3.9.RELEASE/spring-expression-4.3.9.RELEASE.jar" enabled="true" runInBatchMode="false"/>
27
+    <factorypathentry kind="VARJAR" id="M2_REPO/org/springframework/boot/spring-boot-starter-aop/1.5.4.RELEASE/spring-boot-starter-aop-1.5.4.RELEASE.jar" enabled="true" runInBatchMode="false"/>
28
+    <factorypathentry kind="VARJAR" id="M2_REPO/org/springframework/spring-aop/4.3.9.RELEASE/spring-aop-4.3.9.RELEASE.jar" enabled="true" runInBatchMode="false"/>
29
+    <factorypathentry kind="VARJAR" id="M2_REPO/org/aspectj/aspectjweaver/1.8.10/aspectjweaver-1.8.10.jar" enabled="true" runInBatchMode="false"/>
30
+    <factorypathentry kind="VARJAR" id="M2_REPO/org/springframework/boot/spring-boot-devtools/1.5.4.RELEASE/spring-boot-devtools-1.5.4.RELEASE.jar" enabled="true" runInBatchMode="false"/>
31
+    <factorypathentry kind="VARJAR" id="M2_REPO/org/springframework/boot/spring-boot/1.5.4.RELEASE/spring-boot-1.5.4.RELEASE.jar" enabled="true" runInBatchMode="false"/>
32
+    <factorypathentry kind="VARJAR" id="M2_REPO/org/springframework/boot/spring-boot-autoconfigure/1.5.4.RELEASE/spring-boot-autoconfigure-1.5.4.RELEASE.jar" enabled="true" runInBatchMode="false"/>
33
+    <factorypathentry kind="VARJAR" id="M2_REPO/org/springframework/boot/spring-boot-starter-test/1.5.4.RELEASE/spring-boot-starter-test-1.5.4.RELEASE.jar" enabled="true" runInBatchMode="false"/>
34
+    <factorypathentry kind="VARJAR" id="M2_REPO/org/springframework/boot/spring-boot-test/1.5.4.RELEASE/spring-boot-test-1.5.4.RELEASE.jar" enabled="true" runInBatchMode="false"/>
35
+    <factorypathentry kind="VARJAR" id="M2_REPO/org/springframework/boot/spring-boot-test-autoconfigure/1.5.4.RELEASE/spring-boot-test-autoconfigure-1.5.4.RELEASE.jar" enabled="true" runInBatchMode="false"/>
36
+    <factorypathentry kind="VARJAR" id="M2_REPO/com/jayway/jsonpath/json-path/2.2.0/json-path-2.2.0.jar" enabled="true" runInBatchMode="false"/>
37
+    <factorypathentry kind="VARJAR" id="M2_REPO/net/minidev/json-smart/2.2.1/json-smart-2.2.1.jar" enabled="true" runInBatchMode="false"/>
38
+    <factorypathentry kind="VARJAR" id="M2_REPO/net/minidev/accessors-smart/1.1/accessors-smart-1.1.jar" enabled="true" runInBatchMode="false"/>
39
+    <factorypathentry kind="VARJAR" id="M2_REPO/org/ow2/asm/asm/5.0.3/asm-5.0.3.jar" enabled="true" runInBatchMode="false"/>
40
+    <factorypathentry kind="VARJAR" id="M2_REPO/org/slf4j/slf4j-api/1.7.25/slf4j-api-1.7.25.jar" enabled="true" runInBatchMode="false"/>
41
+    <factorypathentry kind="VARJAR" id="M2_REPO/junit/junit/4.12/junit-4.12.jar" enabled="true" runInBatchMode="false"/>
42
+    <factorypathentry kind="VARJAR" id="M2_REPO/org/assertj/assertj-core/2.6.0/assertj-core-2.6.0.jar" enabled="true" runInBatchMode="false"/>
43
+    <factorypathentry kind="VARJAR" id="M2_REPO/org/mockito/mockito-core/1.10.19/mockito-core-1.10.19.jar" enabled="true" runInBatchMode="false"/>
44
+    <factorypathentry kind="VARJAR" id="M2_REPO/org/objenesis/objenesis/2.1/objenesis-2.1.jar" enabled="true" runInBatchMode="false"/>
45
+    <factorypathentry kind="VARJAR" id="M2_REPO/org/hamcrest/hamcrest-core/1.3/hamcrest-core-1.3.jar" enabled="true" runInBatchMode="false"/>
46
+    <factorypathentry kind="VARJAR" id="M2_REPO/org/hamcrest/hamcrest-library/1.3/hamcrest-library-1.3.jar" enabled="true" runInBatchMode="false"/>
47
+    <factorypathentry kind="VARJAR" id="M2_REPO/org/skyscreamer/jsonassert/1.4.0/jsonassert-1.4.0.jar" enabled="true" runInBatchMode="false"/>
48
+    <factorypathentry kind="VARJAR" id="M2_REPO/org/springframework/spring-core/4.3.9.RELEASE/spring-core-4.3.9.RELEASE.jar" enabled="true" runInBatchMode="false"/>
49
+    <factorypathentry kind="VARJAR" id="M2_REPO/org/springframework/spring-test/4.3.9.RELEASE/spring-test-4.3.9.RELEASE.jar" enabled="true" runInBatchMode="false"/>
50
+    <factorypathentry kind="VARJAR" id="M2_REPO/org/springframework/boot/spring-boot-configuration-processor/1.5.4.RELEASE/spring-boot-configuration-processor-1.5.4.RELEASE.jar" enabled="true" runInBatchMode="false"/>
51
+    <factorypathentry kind="VARJAR" id="M2_REPO/com/vaadin/external/google/android-json/0.0.20131108.vaadin1/android-json-0.0.20131108.vaadin1.jar" enabled="true" runInBatchMode="false"/>
52
+    <factorypathentry kind="PLUGIN" id="org.eclipse.jst.ws.annotations.core" enabled="true" runInBatchMode="false"/>
53
+</factorypath>

バイナリ
Spring-Boot-2.0.0.M7.a.RELEASE/04-spring-boot-features/directory-web-features/.mvn/wrapper/maven-wrapper.jar ファイルの表示


+ 1
- 0
Spring-Boot-2.0.0.M7.a.RELEASE/04-spring-boot-features/directory-web-features/.mvn/wrapper/maven-wrapper.properties ファイルの表示

@@ -0,0 +1 @@
1
+distributionUrl=https://repo1.maven.org/maven2/org/apache/maven/apache-maven/3.5.0/apache-maven-3.5.0-bin.zip

+ 35
- 0
Spring-Boot-2.0.0.M7.a.RELEASE/04-spring-boot-features/directory-web-features/.project ファイルの表示

@@ -0,0 +1,35 @@
1
+<?xml version="1.0" encoding="UTF-8"?>
2
+<projectDescription>
3
+	<name>directory-web-features</name>
4
+	<comment></comment>
5
+	<projects>
6
+	</projects>
7
+	<buildSpec>
8
+		<buildCommand>
9
+			<name>org.eclipse.wst.common.project.facet.core.builder</name>
10
+			<arguments>
11
+			</arguments>
12
+		</buildCommand>
13
+		<buildCommand>
14
+			<name>org.eclipse.jdt.core.javabuilder</name>
15
+			<arguments>
16
+			</arguments>
17
+		</buildCommand>
18
+		<buildCommand>
19
+			<name>org.springframework.ide.eclipse.core.springbuilder</name>
20
+			<arguments>
21
+			</arguments>
22
+		</buildCommand>
23
+		<buildCommand>
24
+			<name>org.eclipse.m2e.core.maven2Builder</name>
25
+			<arguments>
26
+			</arguments>
27
+		</buildCommand>
28
+	</buildSpec>
29
+	<natures>
30
+		<nature>org.springframework.ide.eclipse.core.springnature</nature>
31
+		<nature>org.eclipse.jdt.core.javanature</nature>
32
+		<nature>org.eclipse.m2e.core.maven2Nature</nature>
33
+		<nature>org.eclipse.wst.common.project.facet.core.nature</nature>
34
+	</natures>
35
+</projectDescription>

+ 5
- 0
Spring-Boot-2.0.0.M7.a.RELEASE/04-spring-boot-features/directory-web-features/.settings/org.eclipse.core.resources.prefs ファイルの表示

@@ -0,0 +1,5 @@
1
+eclipse.preferences.version=1
2
+encoding//src/main/java=UTF-8
3
+encoding//src/main/resources=UTF-8
4
+encoding//src/test/java=UTF-8
5
+encoding/<project>=UTF-8

+ 2
- 0
Spring-Boot-2.0.0.M7.a.RELEASE/04-spring-boot-features/directory-web-features/.settings/org.eclipse.jdt.apt.core.prefs ファイルの表示

@@ -0,0 +1,2 @@
1
+eclipse.preferences.version=1
2
+org.eclipse.jdt.apt.aptEnabled=true

+ 6
- 0
Spring-Boot-2.0.0.M7.a.RELEASE/04-spring-boot-features/directory-web-features/.settings/org.eclipse.jdt.core.prefs ファイルの表示

@@ -0,0 +1,6 @@
1
+eclipse.preferences.version=1
2
+org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.8
3
+org.eclipse.jdt.core.compiler.compliance=1.8
4
+org.eclipse.jdt.core.compiler.problem.forbiddenReference=warning
5
+org.eclipse.jdt.core.compiler.processAnnotations=enabled
6
+org.eclipse.jdt.core.compiler.source=1.8

+ 4
- 0
Spring-Boot-2.0.0.M7.a.RELEASE/04-spring-boot-features/directory-web-features/.settings/org.eclipse.m2e.core.prefs ファイルの表示

@@ -0,0 +1,4 @@
1
+activeProfiles=
2
+eclipse.preferences.version=1
3
+resolveWorkspaceProjects=true
4
+version=1

+ 4
- 0
Spring-Boot-2.0.0.M7.a.RELEASE/04-spring-boot-features/directory-web-features/.settings/org.eclipse.wst.common.project.facet.core.xml ファイルの表示

@@ -0,0 +1,4 @@
1
+<?xml version="1.0" encoding="UTF-8"?>
2
+<faceted-project>
3
+  <installed facet="cloudfoundry.standalone.app" version="1.0"/>
4
+</faceted-project>

+ 42
- 0
Spring-Boot-2.0.0.M7.a.RELEASE/04-spring-boot-features/directory-web-features/build.gradle ファイルの表示

@@ -0,0 +1,42 @@
1
+buildscript {
2
+    ext {
3
+        springBootVersion = '2.0.0.M7'
4
+    }
5
+    repositories {
6
+        mavenCentral()
7
+        maven { url "https://repo.spring.io/snapshot" }
8
+        maven { url "https://repo.spring.io/milestone" }
9
+    }
10
+    dependencies {
11
+        classpath("org.springframework.boot:spring-boot-gradle-plugin:${springBootVersion}")
12
+    }
13
+}
14
+
15
+apply plugin: 'java'
16
+apply plugin: 'eclipse'
17
+apply plugin: 'org.springframework.boot'
18
+apply plugin: 'io.spring.dependency-management'
19
+
20
+version = '0.0.1-SNAPSHOT'
21
+sourceCompatibility = 1.8
22
+
23
+repositories {
24
+    mavenCentral()
25
+    maven { url "https://repo.spring.io/snapshot" }
26
+    maven { url "https://repo.spring.io/milestone" }
27
+}
28
+
29
+
30
+dependencies {
31
+	compile('org.springframework.boot:spring-boot-starter-web')
32
+	compile('org.springframework.boot:spring-boot-starter-aop')
33
+	
34
+	
35
+	compile('org.springframework.boot:spring-boot-devtools')
36
+	optional("org.springframework.boot:spring-boot-configuration-processor")
37
+	
38
+	// SOLUTION: XML response
39
+	// compile('com.fasterxml.jackson.dataformat:jackson-dataformat-xml')
40
+	
41
+	testCompile('org.springframework.boot:spring-boot-starter-test')
42
+}

バイナリ
Spring-Boot-2.0.0.M7.a.RELEASE/04-spring-boot-features/directory-web-features/gradle/wrapper/gradle-wrapper.jar ファイルの表示


+ 5
- 0
Spring-Boot-2.0.0.M7.a.RELEASE/04-spring-boot-features/directory-web-features/gradle/wrapper/gradle-wrapper.properties ファイルの表示

@@ -0,0 +1,5 @@
1
+distributionBase=GRADLE_USER_HOME
2
+distributionPath=wrapper/dists
3
+zipStoreBase=GRADLE_USER_HOME
4
+zipStorePath=wrapper/dists
5
+distributionUrl=https\://services.gradle.org/distributions/gradle-3.5.1-bin.zip

+ 0
- 0
Spring-Boot-2.0.0.M7.a.RELEASE/04-spring-boot-features/directory-web-features/gradlew ファイルの表示


多くのファイルが変更されたため、一部のファイルはこの差分に表示されません