diff --git a/.DS_Store b/.DS_Store index ec849f08d..89dba2bc9 100644 Binary files a/.DS_Store and b/.DS_Store differ diff --git a/README.md b/README.md index 2eb2eee32..85352c6c2 100644 --- a/README.md +++ b/README.md @@ -1,20 +1,100 @@ - >转载请标明出处: > http://blog.csdn.net/forezp/article/details/70148833 > 本文出自[方志朋的博客](http://blog.csdn.net/forezp) +> + +#### 获取SpringCloud 、Spring Boot视频:https://www.fangzhipeng.com/share/2017/10/01/resource-sharing.html + +
+

+ +
+ 扫码关注有惊喜 +

+

+ (转载本站文章请注明作者和出处 方志朋的博客 +

+
+ 错过了这一篇,你可能再也学不会 Spring Cloud 了!Spring Boot做为下一代 web 框架,Spring Cloud 作为最新最火的微服务的翘楚,你还有什么理由拒绝。赶快上船吧,老船长带你飞。终章不是最后一篇,它是一个汇总,未来还会写很多篇。 -案例全部采用Spring Boot 1.5.x ,Spring Cloud版本为Dalston.RELEASE + 我为什么这些文章?一是巩固自己的知识,二是希望有更加开放和与人分享的心态,三是接受各位大神的批评指教,有任何问题可以联系我: miles02@163.com . + 码农下载:[https://git.oschina.net/forezp/SpringCloudLearning](https://git.oschina.net/forezp/SpringCloudLearning) + github下载:[https://github.com/forezp/SpringCloudLearning](https://github.com/forezp/SpringCloudLearning),记得star哦! -#### CSDN专栏汇总:[史上最简单的 SpringCloud 教程](http://blog.csdn.net/forezp/article/details/70148833) +欢迎大家访问我的个人博客:https://www.fangzhipeng.com/spring-cloud.html + +**[点击获取SpringCloud 、Spring Boot视频](https://www.fangzhipeng.com/share/2017/10/01/resource-sharing.html)** ### 《史上最简单的 SpringCloud 教程》系列: +### Spring Cloud 2020.0.x版本教程 + +- [SpringCloud 2020版本教程0:springcloud 2020版本概述](https://www.fangzhipeng.com/springcloud/2021/04/01/sc-2020-gs.html) +- [SpringCloud 2020版本教程1:使用nacos作为注册中心和配置中心](https://www.fangzhipeng.com/springcloud/2021/04/02/sc-2020-nacos.html) +- [SpringCloud 2020版本教程2:使用spring cloud gateway作为服务网关](https://www.fangzhipeng.com/springcloud/2021/04/03/sc-2020-gateway.html) +- [SpringCloud 2020版本教程3:使用sentinel作为熔断器](https://www.fangzhipeng.com/springcloud/2021/04/04/sc-2020-sentinel.html) +- [SpringCloud 2020版本教程4:使用spring cloud sleuth+zipkin实现链路追踪](https://www.fangzhipeng.com/springcloud/2021/04/05/sc-2020-sleuth.html) + +### Spring Cloud Alibaba教程 +- [Spring Cloud Alibaba教程:使用Nacos作为服务注册发现组件](https://www.fangzhipeng.com/springcloud/2019/05/30/sc-nacos-discovery.html) +- [Spring Cloud Alibaba教程:使用Nacos作为配置中心](https://www.fangzhipeng.com/springcloud/2019/06/01/sc-nacos-config.html) +- [Spring Cloud Alibaba教程:Sentinel的使用 +](https://www.fangzhipeng.com/springcloud/2019/06/02/sc-sentinel.html) + +### Greenwich版本 + +- [Spring Cloud Consul 之Greenwich版本全攻略](https://www.fangzhipeng.com/springcloud/2019/02/14/sc-consul-g.html) +- [spring cloud config将配置存储在数据库中](https://www.fangzhipeng.com/springcloud/2019/02/21/config-jdbc.html) +- [Spring Cloud Sleuth 之Greenwich版本全攻略](https://www.fangzhipeng.com/springcloud/2019/02/05/sc-sleuth-g.html) +- [Spring Boot Admin 2.1.0 全攻略](https://blog.csdn.net/forezp/article/details/86105850) +- [阿里分布式事务框架GTS开源了!](https://www.fangzhipeng.com/springcloud/2019/01/04/sc-f-boot-admin.html) + +### Finchley版本 +Spring Cloud Finchley; Spring Boot 2.0.3 + +* [史上最简单的 SpringCloud 教程 | 第一篇: 服务的注册与发现(Eureka)(Finchley版本)](https://www.fangzhipeng.com/springcloud/2018/08/01/sc-f1-eureka.html) +* [史上最简单的SpringCloud教程 | 第二篇: 服务消费者(rest+ribbon)(Finchley版本)](https://www.fangzhipeng.com/springcloud/2018/08/02/sc-f2-ribbon.html) +* [史上最简单的SpringCloud教程 | 第三篇: 服务消费者(Feign)(Finchley版本)](https://www.fangzhipeng.com/springcloud/2018/08/03/sc-f3-feign.html) +* [史上最简单的SpringCloud教程 | 第四篇:断路器(Hystrix)(Finchley版本)](https://www.fangzhipeng.com/springcloud/2018/08/04/sc-f4-hystrix.html) +* [ 史上最简单的SpringCloud教程 | 第五篇: 路由网关(zuul)(Finchley版本)](https://www.fangzhipeng.com/springcloud/2018/08/05/sc-f5-zuul.html) +* [史上最简单的SpringCloud教程 | 第六篇: 分布式配置中心(Spring Cloud Config)(Finchley版本)](https://www.fangzhipeng.com/springcloud/2018/08/06/sc-f6-config.html) +* [史上最简单的SpringCloud教程 | 第七篇: 高可用的分布式配置中心(Spring Cloud Config)(Finchley版本)](https://www.fangzhipeng.com/springcloud/2018/08/07/sc-f7-config.html) +* [史上最简单的SpringCloud教程 | 第八篇: 消息总线(Spring Cloud Bus)(Finchley版本)](https://www.fangzhipeng.com/springcloud/2018/08/08/sc-f8-bus.html) +* [史上最简单的SpringCloud教程 | 第九篇: 服务链路追踪(Spring Cloud Sleuth)(Finchley版本)](https://www.fangzhipeng.com/springcloud/2018/08/09/sc-f9-sleuth.html) +* [史上最简单的SpringCloud教程 | 第十篇: 高可用的服务注册中心(Finchley版本)](https://www.fangzhipeng.com/springcloud/2018/08/10/sc-f10-eureka.html) + +* [史上最简单的SpringCloud教程 | 第十二篇: 断路器监控(Hystrix Dashboard)(Finchley版本)](https://www.fangzhipeng.com/springcloud/2018/08/12/sc-f12-dash.html) +* [史上最简单的SpringCloud教程 | 第十三篇: 断路器聚合监控(Hystrix Turbine)(Finchley版本)](https://www.fangzhipeng.com/springcloud/2018/08/13/sc-f13-turbine.html) +* [史上最简单的SpringCloud教程 | 第十四篇: Spring Cloud Gateway初体验](https://www.fangzhipeng.com/springcloud/2018/11/06/sc-f-gateway1.html) +* [史上最简单的SpringCloud教程 | 第十五篇: Spring Cloud Gateway 之Predict篇](https://www.fangzhipeng.com/springcloud/2018/12/05/sc-f-gateway2.html) +* [史上最简单的SpringCloud教程 | 第十六篇: Spring Cloud Gateway 之filter篇](https://www.fangzhipeng.com/springcloud/2018/12/21/sc-f-gatway3.html) +* [史上最简单的SpringCloud教程 | 第十七篇: Spring Cloud Gateway 之限流篇](https://www.fangzhipeng.com/springcloud/2018/12/22/sc-f-gatway4.html) +* [史上最简单的SpringCloud教程 | 第十八篇: spring cloud gateway之服务注册与发现](https://www.fangzhipeng.com/springcloud/2018/12/23/sc-f-gateway5.html) + +### 源码篇: + +* [深入理解Feign之源码解析](https://www.fangzhipeng.com/springcloud/2017/08/11/sc-feign-raw.html) +* [深入理解Eureka之源码解析](https://www.fangzhipeng.com/springcloud/2017/08/11/eureka-resources.html) +* [深入理解Ribbon之源码解析](https://www.fangzhipeng.com/springcloud/2017/08/11/Ribbon-resources.html) +* [ 深入理解Hystrix之文档翻译](http://blog.csdn.net/forezp/article/details/75333088) +* [深入理解Zuul之源码解析](https://www.fangzhipeng.com/springcloud/2017/08/11/sc-zuul-raw.html) + +### 进阶篇 + +* [ Spring Cloud Sleuth超详细实战](http://blog.csdn.net/forezp/article/details/76795269) +* [拜托!面试请不要再问我Spring Cloud底层原理](https://blog.csdn.net/forezp/article/details/83999882) +* [微服务注册中心如何承载大型系统的千万级访问?](https://blog.csdn.net/forezp/article/details/83999947) +* [每秒上万并发下的Spring Cloud参数优化实战](https://blog.csdn.net/forezp/article/details/83999975) + + +#### D版本 + * [史上最简单的 SpringCloud 教程 | 第一篇: 服务的注册与发现(Eureka)](http://blog.csdn.net/forezp/article/details/69696915) * [史上最简单的SpringCloud教程 | 第二篇: 服务消费者(rest+ribbon)](http://blog.csdn.net/forezp/article/details/69788938) * [史上最简单的SpringCloud教程 | 第三篇: 服务消费者(Feign)](http://blog.csdn.net/forezp/article/details/69808079) @@ -32,32 +112,32 @@ github下载:[https://github.com/forezp/SpringCloudLearning](https://github.co * 未完。。。 * 还有很多篇。。。 -### 进阶篇 - -* [ Spring Cloud Sleuth超详细实战](http://blog.csdn.net/forezp/article/details/76795269) - -### 源码篇: - -* [深入理解Feign之源码解析](http://blog.csdn.net/forezp/article/details/73480304) -* [深入理解Eureka之源码解析](http://blog.csdn.net/forezp/article/details/73017664) -* [深入理解Ribbon之源码解析](http://blog.csdn.net/forezp/article/details/74820899) -* [ 深入理解Hystrix之文档翻译](http://blog.csdn.net/forezp/article/details/75333088) -* [深入理解Zuul之源码解析](http://blog.csdn.net/forezp/article/details/76211680) - ### 番外篇: * [如何使用MongoDB+Springboot实现分布式ID?](http://blog.csdn.net/forezp/article/details/69056017) * [ 如何在springcloud分布式系统中实现分布式锁?](http://blog.csdn.net/forezp/article/details/68957681) * [ 如何用Redlock实现分布式锁](http://blog.csdn.net/forezp/article/details/70305336) * [ 如何在IDEA启动多个Spring Boot工程实例](http://blog.csdn.net/forezp/article/details/76408139) +* [ JWT如何在Spring Cloud微服务系统中在服务相互调时传](http://blog.csdn.net/forezp/article/details/78676036) + + ### 怎么支持我? * 这个系列会持续更新,敬请关注! -* 关注我的公众号,精彩内容不能错过! -![forezp.jpg](http://upload-images.jianshu.io/upload_images/2279594-0805748d92bba033.jpg?imageMogr2/auto-orient/strip%7CimageView2/2/w/200) +* 关注我的公众号,精彩内容不能错过! +
+

+ +
+ 扫码关注有惊喜 +

+

+ (转载本站文章请注明作者和出处 方志朋的博客 +

+
diff --git a/chapter-sleuth-mysql/.DS_Store b/chapter-sleuth-mysql/.DS_Store new file mode 100644 index 000000000..9d64bc928 Binary files /dev/null and b/chapter-sleuth-mysql/.DS_Store differ diff --git a/chapter-sleuth-mysql/.gitignore b/chapter-sleuth-mysql/.gitignore new file mode 100755 index 000000000..2af7cefb0 --- /dev/null +++ b/chapter-sleuth-mysql/.gitignore @@ -0,0 +1,24 @@ +target/ +!.mvn/wrapper/maven-wrapper.jar + +### STS ### +.apt_generated +.classpath +.factorypath +.project +.settings +.springBeans + +### IntelliJ IDEA ### +.idea +*.iws +*.iml +*.ipr + +### NetBeans ### +nbproject/private/ +build/ +nbbuild/ +dist/ +nbdist/ +.nb-gradle/ \ No newline at end of file diff --git a/chapter-sleuth-mysql/.mvn/wrapper/maven-wrapper.jar b/chapter-sleuth-mysql/.mvn/wrapper/maven-wrapper.jar new file mode 100755 index 000000000..9cc84ea9b Binary files /dev/null and b/chapter-sleuth-mysql/.mvn/wrapper/maven-wrapper.jar differ diff --git a/chapter-sleuth-mysql/.mvn/wrapper/maven-wrapper.properties b/chapter-sleuth-mysql/.mvn/wrapper/maven-wrapper.properties new file mode 100755 index 000000000..c31504370 --- /dev/null +++ b/chapter-sleuth-mysql/.mvn/wrapper/maven-wrapper.properties @@ -0,0 +1 @@ +distributionUrl=https://repo1.maven.org/maven2/org/apache/maven/apache-maven/3.5.0/apache-maven-3.5.0-bin.zip diff --git a/chapter-sleuth-mysql/eureka-server/.gitignore b/chapter-sleuth-mysql/eureka-server/.gitignore new file mode 100755 index 000000000..2af7cefb0 --- /dev/null +++ b/chapter-sleuth-mysql/eureka-server/.gitignore @@ -0,0 +1,24 @@ +target/ +!.mvn/wrapper/maven-wrapper.jar + +### STS ### +.apt_generated +.classpath +.factorypath +.project +.settings +.springBeans + +### IntelliJ IDEA ### +.idea +*.iws +*.iml +*.ipr + +### NetBeans ### +nbproject/private/ +build/ +nbbuild/ +dist/ +nbdist/ +.nb-gradle/ \ No newline at end of file diff --git a/chapter-sleuth-mysql/eureka-server/.mvn/wrapper/maven-wrapper.jar b/chapter-sleuth-mysql/eureka-server/.mvn/wrapper/maven-wrapper.jar new file mode 100755 index 000000000..9cc84ea9b Binary files /dev/null and b/chapter-sleuth-mysql/eureka-server/.mvn/wrapper/maven-wrapper.jar differ diff --git a/chapter-sleuth-mysql/eureka-server/.mvn/wrapper/maven-wrapper.properties b/chapter-sleuth-mysql/eureka-server/.mvn/wrapper/maven-wrapper.properties new file mode 100755 index 000000000..c31504370 --- /dev/null +++ b/chapter-sleuth-mysql/eureka-server/.mvn/wrapper/maven-wrapper.properties @@ -0,0 +1 @@ +distributionUrl=https://repo1.maven.org/maven2/org/apache/maven/apache-maven/3.5.0/apache-maven-3.5.0-bin.zip diff --git a/chapter-sleuth-mysql/eureka-server/mvnw b/chapter-sleuth-mysql/eureka-server/mvnw new file mode 100755 index 000000000..5bf251c07 --- /dev/null +++ b/chapter-sleuth-mysql/eureka-server/mvnw @@ -0,0 +1,225 @@ +#!/bin/sh +# ---------------------------------------------------------------------------- +# Licensed to the Apache Software Foundation (ASF) under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the +# "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. +# ---------------------------------------------------------------------------- + +# ---------------------------------------------------------------------------- +# Maven2 Start Up Batch script +# +# Required ENV vars: +# ------------------ +# JAVA_HOME - location of a JDK home dir +# +# Optional ENV vars +# ----------------- +# M2_HOME - location of maven2's installed home dir +# MAVEN_OPTS - parameters passed to the Java VM when running Maven +# e.g. to debug Maven itself, use +# set MAVEN_OPTS=-Xdebug -Xrunjdwp:transport=dt_socket,server=y,suspend=y,address=8000 +# MAVEN_SKIP_RC - flag to disable loading of mavenrc files +# ---------------------------------------------------------------------------- + +if [ -z "$MAVEN_SKIP_RC" ] ; then + + if [ -f /etc/mavenrc ] ; then + . /etc/mavenrc + fi + + if [ -f "$HOME/.mavenrc" ] ; then + . "$HOME/.mavenrc" + fi + +fi + +# OS specific support. $var _must_ be set to either true or false. +cygwin=false; +darwin=false; +mingw=false +case "`uname`" in + CYGWIN*) cygwin=true ;; + MINGW*) mingw=true;; + Darwin*) darwin=true + # Use /usr/libexec/java_home if available, otherwise fall back to /Library/Java/Home + # See https://developer.apple.com/library/mac/qa/qa1170/_index.html + if [ -z "$JAVA_HOME" ]; then + if [ -x "/usr/libexec/java_home" ]; then + export JAVA_HOME="`/usr/libexec/java_home`" + else + export JAVA_HOME="/Library/Java/Home" + fi + fi + ;; +esac + +if [ -z "$JAVA_HOME" ] ; then + if [ -r /etc/gentoo-release ] ; then + JAVA_HOME=`java-config --jre-home` + fi +fi + +if [ -z "$M2_HOME" ] ; then + ## resolve links - $0 may be a link to maven's home + PRG="$0" + + # need this for relative symlinks + while [ -h "$PRG" ] ; do + ls=`ls -ld "$PRG"` + link=`expr "$ls" : '.*-> \(.*\)$'` + if expr "$link" : '/.*' > /dev/null; then + PRG="$link" + else + PRG="`dirname "$PRG"`/$link" + fi + done + + saveddir=`pwd` + + M2_HOME=`dirname "$PRG"`/.. + + # make it fully qualified + M2_HOME=`cd "$M2_HOME" && pwd` + + cd "$saveddir" + # echo Using m2 at $M2_HOME +fi + +# For Cygwin, ensure paths are in UNIX format before anything is touched +if $cygwin ; then + [ -n "$M2_HOME" ] && + M2_HOME=`cygpath --unix "$M2_HOME"` + [ -n "$JAVA_HOME" ] && + JAVA_HOME=`cygpath --unix "$JAVA_HOME"` + [ -n "$CLASSPATH" ] && + CLASSPATH=`cygpath --path --unix "$CLASSPATH"` +fi + +# For Migwn, ensure paths are in UNIX format before anything is touched +if $mingw ; then + [ -n "$M2_HOME" ] && + M2_HOME="`(cd "$M2_HOME"; pwd)`" + [ -n "$JAVA_HOME" ] && + JAVA_HOME="`(cd "$JAVA_HOME"; pwd)`" + # TODO classpath? +fi + +if [ -z "$JAVA_HOME" ]; then + javaExecutable="`which javac`" + if [ -n "$javaExecutable" ] && ! [ "`expr \"$javaExecutable\" : '\([^ ]*\)'`" = "no" ]; then + # readlink(1) is not available as standard on Solaris 10. + readLink=`which readlink` + if [ ! `expr "$readLink" : '\([^ ]*\)'` = "no" ]; then + if $darwin ; then + javaHome="`dirname \"$javaExecutable\"`" + javaExecutable="`cd \"$javaHome\" && pwd -P`/javac" + else + javaExecutable="`readlink -f \"$javaExecutable\"`" + fi + javaHome="`dirname \"$javaExecutable\"`" + javaHome=`expr "$javaHome" : '\(.*\)/bin'` + JAVA_HOME="$javaHome" + export JAVA_HOME + fi + fi +fi + +if [ -z "$JAVACMD" ] ; then + if [ -n "$JAVA_HOME" ] ; then + if [ -x "$JAVA_HOME/jre/sh/java" ] ; then + # IBM's JDK on AIX uses strange locations for the executables + JAVACMD="$JAVA_HOME/jre/sh/java" + else + JAVACMD="$JAVA_HOME/bin/java" + fi + else + JAVACMD="`which java`" + fi +fi + +if [ ! -x "$JAVACMD" ] ; then + echo "Error: JAVA_HOME is not defined correctly." >&2 + echo " We cannot execute $JAVACMD" >&2 + exit 1 +fi + +if [ -z "$JAVA_HOME" ] ; then + echo "Warning: JAVA_HOME environment variable is not set." +fi + +CLASSWORLDS_LAUNCHER=org.codehaus.plexus.classworlds.launcher.Launcher + +# traverses directory structure from process work directory to filesystem root +# first directory with .mvn subdirectory is considered project base directory +find_maven_basedir() { + + if [ -z "$1" ] + then + echo "Path not specified to find_maven_basedir" + return 1 + fi + + basedir="$1" + wdir="$1" + while [ "$wdir" != '/' ] ; do + if [ -d "$wdir"/.mvn ] ; then + basedir=$wdir + break + fi + # workaround for JBEAP-8937 (on Solaris 10/Sparc) + if [ -d "${wdir}" ]; then + wdir=`cd "$wdir/.."; pwd` + fi + # end of workaround + done + echo "${basedir}" +} + +# concatenates all lines of a file +concat_lines() { + if [ -f "$1" ]; then + echo "$(tr -s '\n' ' ' < "$1")" + fi +} + +BASE_DIR=`find_maven_basedir "$(pwd)"` +if [ -z "$BASE_DIR" ]; then + exit 1; +fi + +export MAVEN_PROJECTBASEDIR=${MAVEN_BASEDIR:-"$BASE_DIR"} +echo $MAVEN_PROJECTBASEDIR +MAVEN_OPTS="$(concat_lines "$MAVEN_PROJECTBASEDIR/.mvn/jvm.config") $MAVEN_OPTS" + +# For Cygwin, switch paths to Windows format before running java +if $cygwin; then + [ -n "$M2_HOME" ] && + M2_HOME=`cygpath --path --windows "$M2_HOME"` + [ -n "$JAVA_HOME" ] && + JAVA_HOME=`cygpath --path --windows "$JAVA_HOME"` + [ -n "$CLASSPATH" ] && + CLASSPATH=`cygpath --path --windows "$CLASSPATH"` + [ -n "$MAVEN_PROJECTBASEDIR" ] && + MAVEN_PROJECTBASEDIR=`cygpath --path --windows "$MAVEN_PROJECTBASEDIR"` +fi + +WRAPPER_LAUNCHER=org.apache.maven.wrapper.MavenWrapperMain + +exec "$JAVACMD" \ + $MAVEN_OPTS \ + -classpath "$MAVEN_PROJECTBASEDIR/.mvn/wrapper/maven-wrapper.jar" \ + "-Dmaven.home=${M2_HOME}" "-Dmaven.multiModuleProjectDirectory=${MAVEN_PROJECTBASEDIR}" \ + ${WRAPPER_LAUNCHER} $MAVEN_CONFIG "$@" diff --git a/chapter-sleuth-mysql/eureka-server/mvnw.cmd b/chapter-sleuth-mysql/eureka-server/mvnw.cmd new file mode 100755 index 000000000..019bd74d7 --- /dev/null +++ b/chapter-sleuth-mysql/eureka-server/mvnw.cmd @@ -0,0 +1,143 @@ +@REM ---------------------------------------------------------------------------- +@REM Licensed to the Apache Software Foundation (ASF) under one +@REM or more contributor license agreements. See the NOTICE file +@REM distributed with this work for additional information +@REM regarding copyright ownership. The ASF licenses this file +@REM to you under the Apache License, Version 2.0 (the +@REM "License"); you may not use this file except in compliance +@REM with the License. You may obtain a copy of the License at +@REM +@REM http://www.apache.org/licenses/LICENSE-2.0 +@REM +@REM Unless required by applicable law or agreed to in writing, +@REM software distributed under the License is distributed on an +@REM "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +@REM KIND, either express or implied. See the License for the +@REM specific language governing permissions and limitations +@REM under the License. +@REM ---------------------------------------------------------------------------- + +@REM ---------------------------------------------------------------------------- +@REM Maven2 Start Up Batch script +@REM +@REM Required ENV vars: +@REM JAVA_HOME - location of a JDK home dir +@REM +@REM Optional ENV vars +@REM M2_HOME - location of maven2's installed home dir +@REM MAVEN_BATCH_ECHO - set to 'on' to enable the echoing of the batch commands +@REM MAVEN_BATCH_PAUSE - set to 'on' to wait for a key stroke before ending +@REM MAVEN_OPTS - parameters passed to the Java VM when running Maven +@REM e.g. to debug Maven itself, use +@REM set MAVEN_OPTS=-Xdebug -Xrunjdwp:transport=dt_socket,server=y,suspend=y,address=8000 +@REM MAVEN_SKIP_RC - flag to disable loading of mavenrc files +@REM ---------------------------------------------------------------------------- + +@REM Begin all REM lines with '@' in case MAVEN_BATCH_ECHO is 'on' +@echo off +@REM enable echoing my setting MAVEN_BATCH_ECHO to 'on' +@if "%MAVEN_BATCH_ECHO%" == "on" echo %MAVEN_BATCH_ECHO% + +@REM set %HOME% to equivalent of $HOME +if "%HOME%" == "" (set "HOME=%HOMEDRIVE%%HOMEPATH%") + +@REM Execute a user defined script before this one +if not "%MAVEN_SKIP_RC%" == "" goto skipRcPre +@REM check for pre script, once with legacy .bat ending and once with .cmd ending +if exist "%HOME%\mavenrc_pre.bat" call "%HOME%\mavenrc_pre.bat" +if exist "%HOME%\mavenrc_pre.cmd" call "%HOME%\mavenrc_pre.cmd" +:skipRcPre + +@setlocal + +set ERROR_CODE=0 + +@REM To isolate internal variables from possible post scripts, we use another setlocal +@setlocal + +@REM ==== START VALIDATION ==== +if not "%JAVA_HOME%" == "" goto OkJHome + +echo. +echo Error: JAVA_HOME not found in your environment. >&2 +echo Please set the JAVA_HOME variable in your environment to match the >&2 +echo location of your Java installation. >&2 +echo. +goto error + +:OkJHome +if exist "%JAVA_HOME%\bin\java.exe" goto init + +echo. +echo Error: JAVA_HOME is set to an invalid directory. >&2 +echo JAVA_HOME = "%JAVA_HOME%" >&2 +echo Please set the JAVA_HOME variable in your environment to match the >&2 +echo location of your Java installation. >&2 +echo. +goto error + +@REM ==== END VALIDATION ==== + +:init + +@REM Find the project base dir, i.e. the directory that contains the folder ".mvn". +@REM Fallback to current working directory if not found. + +set MAVEN_PROJECTBASEDIR=%MAVEN_BASEDIR% +IF NOT "%MAVEN_PROJECTBASEDIR%"=="" goto endDetectBaseDir + +set EXEC_DIR=%CD% +set WDIR=%EXEC_DIR% +:findBaseDir +IF EXIST "%WDIR%"\.mvn goto baseDirFound +cd .. +IF "%WDIR%"=="%CD%" goto baseDirNotFound +set WDIR=%CD% +goto findBaseDir + +:baseDirFound +set MAVEN_PROJECTBASEDIR=%WDIR% +cd "%EXEC_DIR%" +goto endDetectBaseDir + +:baseDirNotFound +set MAVEN_PROJECTBASEDIR=%EXEC_DIR% +cd "%EXEC_DIR%" + +:endDetectBaseDir + +IF NOT EXIST "%MAVEN_PROJECTBASEDIR%\.mvn\jvm.config" goto endReadAdditionalConfig + +@setlocal EnableExtensions EnableDelayedExpansion +for /F "usebackq delims=" %%a in ("%MAVEN_PROJECTBASEDIR%\.mvn\jvm.config") do set JVM_CONFIG_MAVEN_PROPS=!JVM_CONFIG_MAVEN_PROPS! %%a +@endlocal & set JVM_CONFIG_MAVEN_PROPS=%JVM_CONFIG_MAVEN_PROPS% + +:endReadAdditionalConfig + +SET MAVEN_JAVA_EXE="%JAVA_HOME%\bin\java.exe" + +set WRAPPER_JAR="%MAVEN_PROJECTBASEDIR%\.mvn\wrapper\maven-wrapper.jar" +set WRAPPER_LAUNCHER=org.apache.maven.wrapper.MavenWrapperMain + +%MAVEN_JAVA_EXE% %JVM_CONFIG_MAVEN_PROPS% %MAVEN_OPTS% %MAVEN_DEBUG_OPTS% -classpath %WRAPPER_JAR% "-Dmaven.multiModuleProjectDirectory=%MAVEN_PROJECTBASEDIR%" %WRAPPER_LAUNCHER% %MAVEN_CONFIG% %* +if ERRORLEVEL 1 goto error +goto end + +:error +set ERROR_CODE=1 + +:end +@endlocal & set ERROR_CODE=%ERROR_CODE% + +if not "%MAVEN_SKIP_RC%" == "" goto skipRcPost +@REM check for post script, once with legacy .bat ending and once with .cmd ending +if exist "%HOME%\mavenrc_post.bat" call "%HOME%\mavenrc_post.bat" +if exist "%HOME%\mavenrc_post.cmd" call "%HOME%\mavenrc_post.cmd" +:skipRcPost + +@REM pause the script if MAVEN_BATCH_PAUSE is set to 'on' +if "%MAVEN_BATCH_PAUSE%" == "on" pause + +if "%MAVEN_TERMINATE_CMD%" == "on" exit %ERROR_CODE% + +exit /B %ERROR_CODE% diff --git a/chapter-sleuth-mysql/eureka-server/pom.xml b/chapter-sleuth-mysql/eureka-server/pom.xml new file mode 100755 index 000000000..57d3c6fc2 --- /dev/null +++ b/chapter-sleuth-mysql/eureka-server/pom.xml @@ -0,0 +1,43 @@ + + + 4.0.0 + + com.forezp + eureka-server + 0.0.1-SNAPSHOT + jar + + eureka-server + Demo project for Spring Boot + + + com.forezp + sleuth + 0.0.1-SNAPSHOT + + + + + + org.springframework.boot + spring-boot-starter-web + + + + org.springframework.cloud + spring-cloud-starter-eureka-server + + + + + + + org.springframework.boot + spring-boot-maven-plugin + + + + + + diff --git a/chapter-sleuth-mysql/eureka-server/src/main/java/com/forezp/EurekaServerApplication.java b/chapter-sleuth-mysql/eureka-server/src/main/java/com/forezp/EurekaServerApplication.java new file mode 100755 index 000000000..022b2d7b9 --- /dev/null +++ b/chapter-sleuth-mysql/eureka-server/src/main/java/com/forezp/EurekaServerApplication.java @@ -0,0 +1,14 @@ +package com.forezp; + +import org.springframework.boot.SpringApplication; +import org.springframework.boot.autoconfigure.SpringBootApplication; +import org.springframework.cloud.netflix.eureka.server.EnableEurekaServer; + +@SpringBootApplication +@EnableEurekaServer +public class EurekaServerApplication { + + public static void main(String[] args) { + SpringApplication.run(EurekaServerApplication.class, args); + } +} diff --git a/chapter-sleuth-mysql/eureka-server/src/main/resources/application.yml b/chapter-sleuth-mysql/eureka-server/src/main/resources/application.yml new file mode 100755 index 000000000..137a67c57 --- /dev/null +++ b/chapter-sleuth-mysql/eureka-server/src/main/resources/application.yml @@ -0,0 +1,11 @@ +server: + port: 8761 + +eureka: + instance: + hostname: localhost + client: + registerWithEureka: false + fetchRegistry: false + serviceUrl: + defaultZone: http://${eureka.instance.hostname}:${server.port}/eureka/ \ No newline at end of file diff --git a/chapter-sleuth-mysql/eureka-server/src/test/java/com/forezp/EurekaServerApplicationTests.java b/chapter-sleuth-mysql/eureka-server/src/test/java/com/forezp/EurekaServerApplicationTests.java new file mode 100755 index 000000000..8de4708ac --- /dev/null +++ b/chapter-sleuth-mysql/eureka-server/src/test/java/com/forezp/EurekaServerApplicationTests.java @@ -0,0 +1,16 @@ +package com.forezp; + +import org.junit.Test; +import org.junit.runner.RunWith; +import org.springframework.boot.test.context.SpringBootTest; +import org.springframework.test.context.junit4.SpringRunner; + +@RunWith(SpringRunner.class) +@SpringBootTest +public class EurekaServerApplicationTests { + + @Test + public void contextLoads() { + } + +} diff --git a/chapter-sleuth-mysql/gateway-service/.gitignore b/chapter-sleuth-mysql/gateway-service/.gitignore new file mode 100755 index 000000000..2af7cefb0 --- /dev/null +++ b/chapter-sleuth-mysql/gateway-service/.gitignore @@ -0,0 +1,24 @@ +target/ +!.mvn/wrapper/maven-wrapper.jar + +### STS ### +.apt_generated +.classpath +.factorypath +.project +.settings +.springBeans + +### IntelliJ IDEA ### +.idea +*.iws +*.iml +*.ipr + +### NetBeans ### +nbproject/private/ +build/ +nbbuild/ +dist/ +nbdist/ +.nb-gradle/ \ No newline at end of file diff --git a/chapter-sleuth-mysql/gateway-service/.mvn/wrapper/maven-wrapper.jar b/chapter-sleuth-mysql/gateway-service/.mvn/wrapper/maven-wrapper.jar new file mode 100755 index 000000000..9cc84ea9b Binary files /dev/null and b/chapter-sleuth-mysql/gateway-service/.mvn/wrapper/maven-wrapper.jar differ diff --git a/chapter-sleuth-mysql/gateway-service/.mvn/wrapper/maven-wrapper.properties b/chapter-sleuth-mysql/gateway-service/.mvn/wrapper/maven-wrapper.properties new file mode 100755 index 000000000..c31504370 --- /dev/null +++ b/chapter-sleuth-mysql/gateway-service/.mvn/wrapper/maven-wrapper.properties @@ -0,0 +1 @@ +distributionUrl=https://repo1.maven.org/maven2/org/apache/maven/apache-maven/3.5.0/apache-maven-3.5.0-bin.zip diff --git a/chapter-sleuth-mysql/gateway-service/mvnw b/chapter-sleuth-mysql/gateway-service/mvnw new file mode 100755 index 000000000..5bf251c07 --- /dev/null +++ b/chapter-sleuth-mysql/gateway-service/mvnw @@ -0,0 +1,225 @@ +#!/bin/sh +# ---------------------------------------------------------------------------- +# Licensed to the Apache Software Foundation (ASF) under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the +# "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. +# ---------------------------------------------------------------------------- + +# ---------------------------------------------------------------------------- +# Maven2 Start Up Batch script +# +# Required ENV vars: +# ------------------ +# JAVA_HOME - location of a JDK home dir +# +# Optional ENV vars +# ----------------- +# M2_HOME - location of maven2's installed home dir +# MAVEN_OPTS - parameters passed to the Java VM when running Maven +# e.g. to debug Maven itself, use +# set MAVEN_OPTS=-Xdebug -Xrunjdwp:transport=dt_socket,server=y,suspend=y,address=8000 +# MAVEN_SKIP_RC - flag to disable loading of mavenrc files +# ---------------------------------------------------------------------------- + +if [ -z "$MAVEN_SKIP_RC" ] ; then + + if [ -f /etc/mavenrc ] ; then + . /etc/mavenrc + fi + + if [ -f "$HOME/.mavenrc" ] ; then + . "$HOME/.mavenrc" + fi + +fi + +# OS specific support. $var _must_ be set to either true or false. +cygwin=false; +darwin=false; +mingw=false +case "`uname`" in + CYGWIN*) cygwin=true ;; + MINGW*) mingw=true;; + Darwin*) darwin=true + # Use /usr/libexec/java_home if available, otherwise fall back to /Library/Java/Home + # See https://developer.apple.com/library/mac/qa/qa1170/_index.html + if [ -z "$JAVA_HOME" ]; then + if [ -x "/usr/libexec/java_home" ]; then + export JAVA_HOME="`/usr/libexec/java_home`" + else + export JAVA_HOME="/Library/Java/Home" + fi + fi + ;; +esac + +if [ -z "$JAVA_HOME" ] ; then + if [ -r /etc/gentoo-release ] ; then + JAVA_HOME=`java-config --jre-home` + fi +fi + +if [ -z "$M2_HOME" ] ; then + ## resolve links - $0 may be a link to maven's home + PRG="$0" + + # need this for relative symlinks + while [ -h "$PRG" ] ; do + ls=`ls -ld "$PRG"` + link=`expr "$ls" : '.*-> \(.*\)$'` + if expr "$link" : '/.*' > /dev/null; then + PRG="$link" + else + PRG="`dirname "$PRG"`/$link" + fi + done + + saveddir=`pwd` + + M2_HOME=`dirname "$PRG"`/.. + + # make it fully qualified + M2_HOME=`cd "$M2_HOME" && pwd` + + cd "$saveddir" + # echo Using m2 at $M2_HOME +fi + +# For Cygwin, ensure paths are in UNIX format before anything is touched +if $cygwin ; then + [ -n "$M2_HOME" ] && + M2_HOME=`cygpath --unix "$M2_HOME"` + [ -n "$JAVA_HOME" ] && + JAVA_HOME=`cygpath --unix "$JAVA_HOME"` + [ -n "$CLASSPATH" ] && + CLASSPATH=`cygpath --path --unix "$CLASSPATH"` +fi + +# For Migwn, ensure paths are in UNIX format before anything is touched +if $mingw ; then + [ -n "$M2_HOME" ] && + M2_HOME="`(cd "$M2_HOME"; pwd)`" + [ -n "$JAVA_HOME" ] && + JAVA_HOME="`(cd "$JAVA_HOME"; pwd)`" + # TODO classpath? +fi + +if [ -z "$JAVA_HOME" ]; then + javaExecutable="`which javac`" + if [ -n "$javaExecutable" ] && ! [ "`expr \"$javaExecutable\" : '\([^ ]*\)'`" = "no" ]; then + # readlink(1) is not available as standard on Solaris 10. + readLink=`which readlink` + if [ ! `expr "$readLink" : '\([^ ]*\)'` = "no" ]; then + if $darwin ; then + javaHome="`dirname \"$javaExecutable\"`" + javaExecutable="`cd \"$javaHome\" && pwd -P`/javac" + else + javaExecutable="`readlink -f \"$javaExecutable\"`" + fi + javaHome="`dirname \"$javaExecutable\"`" + javaHome=`expr "$javaHome" : '\(.*\)/bin'` + JAVA_HOME="$javaHome" + export JAVA_HOME + fi + fi +fi + +if [ -z "$JAVACMD" ] ; then + if [ -n "$JAVA_HOME" ] ; then + if [ -x "$JAVA_HOME/jre/sh/java" ] ; then + # IBM's JDK on AIX uses strange locations for the executables + JAVACMD="$JAVA_HOME/jre/sh/java" + else + JAVACMD="$JAVA_HOME/bin/java" + fi + else + JAVACMD="`which java`" + fi +fi + +if [ ! -x "$JAVACMD" ] ; then + echo "Error: JAVA_HOME is not defined correctly." >&2 + echo " We cannot execute $JAVACMD" >&2 + exit 1 +fi + +if [ -z "$JAVA_HOME" ] ; then + echo "Warning: JAVA_HOME environment variable is not set." +fi + +CLASSWORLDS_LAUNCHER=org.codehaus.plexus.classworlds.launcher.Launcher + +# traverses directory structure from process work directory to filesystem root +# first directory with .mvn subdirectory is considered project base directory +find_maven_basedir() { + + if [ -z "$1" ] + then + echo "Path not specified to find_maven_basedir" + return 1 + fi + + basedir="$1" + wdir="$1" + while [ "$wdir" != '/' ] ; do + if [ -d "$wdir"/.mvn ] ; then + basedir=$wdir + break + fi + # workaround for JBEAP-8937 (on Solaris 10/Sparc) + if [ -d "${wdir}" ]; then + wdir=`cd "$wdir/.."; pwd` + fi + # end of workaround + done + echo "${basedir}" +} + +# concatenates all lines of a file +concat_lines() { + if [ -f "$1" ]; then + echo "$(tr -s '\n' ' ' < "$1")" + fi +} + +BASE_DIR=`find_maven_basedir "$(pwd)"` +if [ -z "$BASE_DIR" ]; then + exit 1; +fi + +export MAVEN_PROJECTBASEDIR=${MAVEN_BASEDIR:-"$BASE_DIR"} +echo $MAVEN_PROJECTBASEDIR +MAVEN_OPTS="$(concat_lines "$MAVEN_PROJECTBASEDIR/.mvn/jvm.config") $MAVEN_OPTS" + +# For Cygwin, switch paths to Windows format before running java +if $cygwin; then + [ -n "$M2_HOME" ] && + M2_HOME=`cygpath --path --windows "$M2_HOME"` + [ -n "$JAVA_HOME" ] && + JAVA_HOME=`cygpath --path --windows "$JAVA_HOME"` + [ -n "$CLASSPATH" ] && + CLASSPATH=`cygpath --path --windows "$CLASSPATH"` + [ -n "$MAVEN_PROJECTBASEDIR" ] && + MAVEN_PROJECTBASEDIR=`cygpath --path --windows "$MAVEN_PROJECTBASEDIR"` +fi + +WRAPPER_LAUNCHER=org.apache.maven.wrapper.MavenWrapperMain + +exec "$JAVACMD" \ + $MAVEN_OPTS \ + -classpath "$MAVEN_PROJECTBASEDIR/.mvn/wrapper/maven-wrapper.jar" \ + "-Dmaven.home=${M2_HOME}" "-Dmaven.multiModuleProjectDirectory=${MAVEN_PROJECTBASEDIR}" \ + ${WRAPPER_LAUNCHER} $MAVEN_CONFIG "$@" diff --git a/chapter-sleuth-mysql/gateway-service/mvnw.cmd b/chapter-sleuth-mysql/gateway-service/mvnw.cmd new file mode 100755 index 000000000..019bd74d7 --- /dev/null +++ b/chapter-sleuth-mysql/gateway-service/mvnw.cmd @@ -0,0 +1,143 @@ +@REM ---------------------------------------------------------------------------- +@REM Licensed to the Apache Software Foundation (ASF) under one +@REM or more contributor license agreements. See the NOTICE file +@REM distributed with this work for additional information +@REM regarding copyright ownership. The ASF licenses this file +@REM to you under the Apache License, Version 2.0 (the +@REM "License"); you may not use this file except in compliance +@REM with the License. You may obtain a copy of the License at +@REM +@REM http://www.apache.org/licenses/LICENSE-2.0 +@REM +@REM Unless required by applicable law or agreed to in writing, +@REM software distributed under the License is distributed on an +@REM "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +@REM KIND, either express or implied. See the License for the +@REM specific language governing permissions and limitations +@REM under the License. +@REM ---------------------------------------------------------------------------- + +@REM ---------------------------------------------------------------------------- +@REM Maven2 Start Up Batch script +@REM +@REM Required ENV vars: +@REM JAVA_HOME - location of a JDK home dir +@REM +@REM Optional ENV vars +@REM M2_HOME - location of maven2's installed home dir +@REM MAVEN_BATCH_ECHO - set to 'on' to enable the echoing of the batch commands +@REM MAVEN_BATCH_PAUSE - set to 'on' to wait for a key stroke before ending +@REM MAVEN_OPTS - parameters passed to the Java VM when running Maven +@REM e.g. to debug Maven itself, use +@REM set MAVEN_OPTS=-Xdebug -Xrunjdwp:transport=dt_socket,server=y,suspend=y,address=8000 +@REM MAVEN_SKIP_RC - flag to disable loading of mavenrc files +@REM ---------------------------------------------------------------------------- + +@REM Begin all REM lines with '@' in case MAVEN_BATCH_ECHO is 'on' +@echo off +@REM enable echoing my setting MAVEN_BATCH_ECHO to 'on' +@if "%MAVEN_BATCH_ECHO%" == "on" echo %MAVEN_BATCH_ECHO% + +@REM set %HOME% to equivalent of $HOME +if "%HOME%" == "" (set "HOME=%HOMEDRIVE%%HOMEPATH%") + +@REM Execute a user defined script before this one +if not "%MAVEN_SKIP_RC%" == "" goto skipRcPre +@REM check for pre script, once with legacy .bat ending and once with .cmd ending +if exist "%HOME%\mavenrc_pre.bat" call "%HOME%\mavenrc_pre.bat" +if exist "%HOME%\mavenrc_pre.cmd" call "%HOME%\mavenrc_pre.cmd" +:skipRcPre + +@setlocal + +set ERROR_CODE=0 + +@REM To isolate internal variables from possible post scripts, we use another setlocal +@setlocal + +@REM ==== START VALIDATION ==== +if not "%JAVA_HOME%" == "" goto OkJHome + +echo. +echo Error: JAVA_HOME not found in your environment. >&2 +echo Please set the JAVA_HOME variable in your environment to match the >&2 +echo location of your Java installation. >&2 +echo. +goto error + +:OkJHome +if exist "%JAVA_HOME%\bin\java.exe" goto init + +echo. +echo Error: JAVA_HOME is set to an invalid directory. >&2 +echo JAVA_HOME = "%JAVA_HOME%" >&2 +echo Please set the JAVA_HOME variable in your environment to match the >&2 +echo location of your Java installation. >&2 +echo. +goto error + +@REM ==== END VALIDATION ==== + +:init + +@REM Find the project base dir, i.e. the directory that contains the folder ".mvn". +@REM Fallback to current working directory if not found. + +set MAVEN_PROJECTBASEDIR=%MAVEN_BASEDIR% +IF NOT "%MAVEN_PROJECTBASEDIR%"=="" goto endDetectBaseDir + +set EXEC_DIR=%CD% +set WDIR=%EXEC_DIR% +:findBaseDir +IF EXIST "%WDIR%"\.mvn goto baseDirFound +cd .. +IF "%WDIR%"=="%CD%" goto baseDirNotFound +set WDIR=%CD% +goto findBaseDir + +:baseDirFound +set MAVEN_PROJECTBASEDIR=%WDIR% +cd "%EXEC_DIR%" +goto endDetectBaseDir + +:baseDirNotFound +set MAVEN_PROJECTBASEDIR=%EXEC_DIR% +cd "%EXEC_DIR%" + +:endDetectBaseDir + +IF NOT EXIST "%MAVEN_PROJECTBASEDIR%\.mvn\jvm.config" goto endReadAdditionalConfig + +@setlocal EnableExtensions EnableDelayedExpansion +for /F "usebackq delims=" %%a in ("%MAVEN_PROJECTBASEDIR%\.mvn\jvm.config") do set JVM_CONFIG_MAVEN_PROPS=!JVM_CONFIG_MAVEN_PROPS! %%a +@endlocal & set JVM_CONFIG_MAVEN_PROPS=%JVM_CONFIG_MAVEN_PROPS% + +:endReadAdditionalConfig + +SET MAVEN_JAVA_EXE="%JAVA_HOME%\bin\java.exe" + +set WRAPPER_JAR="%MAVEN_PROJECTBASEDIR%\.mvn\wrapper\maven-wrapper.jar" +set WRAPPER_LAUNCHER=org.apache.maven.wrapper.MavenWrapperMain + +%MAVEN_JAVA_EXE% %JVM_CONFIG_MAVEN_PROPS% %MAVEN_OPTS% %MAVEN_DEBUG_OPTS% -classpath %WRAPPER_JAR% "-Dmaven.multiModuleProjectDirectory=%MAVEN_PROJECTBASEDIR%" %WRAPPER_LAUNCHER% %MAVEN_CONFIG% %* +if ERRORLEVEL 1 goto error +goto end + +:error +set ERROR_CODE=1 + +:end +@endlocal & set ERROR_CODE=%ERROR_CODE% + +if not "%MAVEN_SKIP_RC%" == "" goto skipRcPost +@REM check for post script, once with legacy .bat ending and once with .cmd ending +if exist "%HOME%\mavenrc_post.bat" call "%HOME%\mavenrc_post.bat" +if exist "%HOME%\mavenrc_post.cmd" call "%HOME%\mavenrc_post.cmd" +:skipRcPost + +@REM pause the script if MAVEN_BATCH_PAUSE is set to 'on' +if "%MAVEN_BATCH_PAUSE%" == "on" pause + +if "%MAVEN_TERMINATE_CMD%" == "on" exit %ERROR_CODE% + +exit /B %ERROR_CODE% diff --git a/chapter-sleuth-mysql/gateway-service/pom.xml b/chapter-sleuth-mysql/gateway-service/pom.xml new file mode 100755 index 000000000..c7ae273ae --- /dev/null +++ b/chapter-sleuth-mysql/gateway-service/pom.xml @@ -0,0 +1,53 @@ + + + 4.0.0 + + com.forezp + gateway-service + 0.0.1-SNAPSHOT + jar + + gateway-service + Demo project for Spring Boot + + + com.forezp + sleuth + 0.0.1-SNAPSHOT + + + + + + + org.springframework.cloud + spring-cloud-starter-eureka + + + org.springframework.cloud + spring-cloud-starter-zuul + + + org.springframework.boot + spring-boot-starter-web + + + org.springframework.cloud + spring-cloud-starter-zipkin + RELEASE + + + + + + + + org.springframework.boot + spring-boot-maven-plugin + + + + + + diff --git a/chapter-sleuth-mysql/gateway-service/src/main/java/com/forezp/GatewayServiceApplication.java b/chapter-sleuth-mysql/gateway-service/src/main/java/com/forezp/GatewayServiceApplication.java new file mode 100755 index 000000000..9d0b3a505 --- /dev/null +++ b/chapter-sleuth-mysql/gateway-service/src/main/java/com/forezp/GatewayServiceApplication.java @@ -0,0 +1,16 @@ +package com.forezp; + +import org.springframework.boot.SpringApplication; +import org.springframework.boot.autoconfigure.SpringBootApplication; +import org.springframework.cloud.netflix.eureka.EnableEurekaClient; +import org.springframework.cloud.netflix.zuul.EnableZuulProxy; + +@SpringBootApplication +@EnableZuulProxy +@EnableEurekaClient +public class GatewayServiceApplication { + + public static void main(String[] args) { + SpringApplication.run(GatewayServiceApplication.class, args); + } +} diff --git a/chapter-sleuth-mysql/gateway-service/src/main/java/com/forezp/filter/LoggerFilter.java b/chapter-sleuth-mysql/gateway-service/src/main/java/com/forezp/filter/LoggerFilter.java new file mode 100644 index 000000000..f314c3772 --- /dev/null +++ b/chapter-sleuth-mysql/gateway-service/src/main/java/com/forezp/filter/LoggerFilter.java @@ -0,0 +1,39 @@ +package com.forezp.filter; + +import com.netflix.zuul.ZuulFilter; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.cloud.netflix.zuul.filters.support.FilterConstants; +import org.springframework.cloud.sleuth.Tracer; +import org.springframework.stereotype.Component; + +/** + * Created by forezp on 2017/8/3. + */ +@Component +public class LoggerFilter extends ZuulFilter { + + @Autowired + Tracer tracer; + @Override + public String filterType() { + return FilterConstants.POST_TYPE; + } + + @Override + public int filterOrder() { + return 900; + } + + @Override + public boolean shouldFilter() { + return true; + } + + @Override + public Object run() { + + tracer.addTag("operator","forezp"); + System.out.print(tracer.getCurrentSpan().traceIdString()); + return null; + } +} diff --git a/chapter-sleuth-mysql/gateway-service/src/main/resources/application.yml b/chapter-sleuth-mysql/gateway-service/src/main/resources/application.yml new file mode 100755 index 000000000..3d7324675 --- /dev/null +++ b/chapter-sleuth-mysql/gateway-service/src/main/resources/application.yml @@ -0,0 +1,21 @@ +eureka: + client: + serviceUrl: + defaultZone: http://localhost:8761/eureka/ + +server: + port: 5000 +spring: + application: + name: gateway-service + sleuth: + sampler: + percentage: 1.0 + zipkin: + base-url: http://localhost:9411 + +zuul: + routes: + api-a: + path: /user-api/** + serviceId: user-service diff --git a/chapter-sleuth-mysql/gateway-service/src/test/java/com/forezp/GatewayServiceApplicationTests.java b/chapter-sleuth-mysql/gateway-service/src/test/java/com/forezp/GatewayServiceApplicationTests.java new file mode 100755 index 000000000..fcbbf3fbc --- /dev/null +++ b/chapter-sleuth-mysql/gateway-service/src/test/java/com/forezp/GatewayServiceApplicationTests.java @@ -0,0 +1,16 @@ +package com.forezp; + +import org.junit.Test; +import org.junit.runner.RunWith; +import org.springframework.boot.test.context.SpringBootTest; +import org.springframework.test.context.junit4.SpringRunner; + +@RunWith(SpringRunner.class) +@SpringBootTest +public class GatewayServiceApplicationTests { + + @Test + public void contextLoads() { + } + +} diff --git a/chapter-sleuth-mysql/mvnw b/chapter-sleuth-mysql/mvnw new file mode 100755 index 000000000..5bf251c07 --- /dev/null +++ b/chapter-sleuth-mysql/mvnw @@ -0,0 +1,225 @@ +#!/bin/sh +# ---------------------------------------------------------------------------- +# Licensed to the Apache Software Foundation (ASF) under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the +# "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. +# ---------------------------------------------------------------------------- + +# ---------------------------------------------------------------------------- +# Maven2 Start Up Batch script +# +# Required ENV vars: +# ------------------ +# JAVA_HOME - location of a JDK home dir +# +# Optional ENV vars +# ----------------- +# M2_HOME - location of maven2's installed home dir +# MAVEN_OPTS - parameters passed to the Java VM when running Maven +# e.g. to debug Maven itself, use +# set MAVEN_OPTS=-Xdebug -Xrunjdwp:transport=dt_socket,server=y,suspend=y,address=8000 +# MAVEN_SKIP_RC - flag to disable loading of mavenrc files +# ---------------------------------------------------------------------------- + +if [ -z "$MAVEN_SKIP_RC" ] ; then + + if [ -f /etc/mavenrc ] ; then + . /etc/mavenrc + fi + + if [ -f "$HOME/.mavenrc" ] ; then + . "$HOME/.mavenrc" + fi + +fi + +# OS specific support. $var _must_ be set to either true or false. +cygwin=false; +darwin=false; +mingw=false +case "`uname`" in + CYGWIN*) cygwin=true ;; + MINGW*) mingw=true;; + Darwin*) darwin=true + # Use /usr/libexec/java_home if available, otherwise fall back to /Library/Java/Home + # See https://developer.apple.com/library/mac/qa/qa1170/_index.html + if [ -z "$JAVA_HOME" ]; then + if [ -x "/usr/libexec/java_home" ]; then + export JAVA_HOME="`/usr/libexec/java_home`" + else + export JAVA_HOME="/Library/Java/Home" + fi + fi + ;; +esac + +if [ -z "$JAVA_HOME" ] ; then + if [ -r /etc/gentoo-release ] ; then + JAVA_HOME=`java-config --jre-home` + fi +fi + +if [ -z "$M2_HOME" ] ; then + ## resolve links - $0 may be a link to maven's home + PRG="$0" + + # need this for relative symlinks + while [ -h "$PRG" ] ; do + ls=`ls -ld "$PRG"` + link=`expr "$ls" : '.*-> \(.*\)$'` + if expr "$link" : '/.*' > /dev/null; then + PRG="$link" + else + PRG="`dirname "$PRG"`/$link" + fi + done + + saveddir=`pwd` + + M2_HOME=`dirname "$PRG"`/.. + + # make it fully qualified + M2_HOME=`cd "$M2_HOME" && pwd` + + cd "$saveddir" + # echo Using m2 at $M2_HOME +fi + +# For Cygwin, ensure paths are in UNIX format before anything is touched +if $cygwin ; then + [ -n "$M2_HOME" ] && + M2_HOME=`cygpath --unix "$M2_HOME"` + [ -n "$JAVA_HOME" ] && + JAVA_HOME=`cygpath --unix "$JAVA_HOME"` + [ -n "$CLASSPATH" ] && + CLASSPATH=`cygpath --path --unix "$CLASSPATH"` +fi + +# For Migwn, ensure paths are in UNIX format before anything is touched +if $mingw ; then + [ -n "$M2_HOME" ] && + M2_HOME="`(cd "$M2_HOME"; pwd)`" + [ -n "$JAVA_HOME" ] && + JAVA_HOME="`(cd "$JAVA_HOME"; pwd)`" + # TODO classpath? +fi + +if [ -z "$JAVA_HOME" ]; then + javaExecutable="`which javac`" + if [ -n "$javaExecutable" ] && ! [ "`expr \"$javaExecutable\" : '\([^ ]*\)'`" = "no" ]; then + # readlink(1) is not available as standard on Solaris 10. + readLink=`which readlink` + if [ ! `expr "$readLink" : '\([^ ]*\)'` = "no" ]; then + if $darwin ; then + javaHome="`dirname \"$javaExecutable\"`" + javaExecutable="`cd \"$javaHome\" && pwd -P`/javac" + else + javaExecutable="`readlink -f \"$javaExecutable\"`" + fi + javaHome="`dirname \"$javaExecutable\"`" + javaHome=`expr "$javaHome" : '\(.*\)/bin'` + JAVA_HOME="$javaHome" + export JAVA_HOME + fi + fi +fi + +if [ -z "$JAVACMD" ] ; then + if [ -n "$JAVA_HOME" ] ; then + if [ -x "$JAVA_HOME/jre/sh/java" ] ; then + # IBM's JDK on AIX uses strange locations for the executables + JAVACMD="$JAVA_HOME/jre/sh/java" + else + JAVACMD="$JAVA_HOME/bin/java" + fi + else + JAVACMD="`which java`" + fi +fi + +if [ ! -x "$JAVACMD" ] ; then + echo "Error: JAVA_HOME is not defined correctly." >&2 + echo " We cannot execute $JAVACMD" >&2 + exit 1 +fi + +if [ -z "$JAVA_HOME" ] ; then + echo "Warning: JAVA_HOME environment variable is not set." +fi + +CLASSWORLDS_LAUNCHER=org.codehaus.plexus.classworlds.launcher.Launcher + +# traverses directory structure from process work directory to filesystem root +# first directory with .mvn subdirectory is considered project base directory +find_maven_basedir() { + + if [ -z "$1" ] + then + echo "Path not specified to find_maven_basedir" + return 1 + fi + + basedir="$1" + wdir="$1" + while [ "$wdir" != '/' ] ; do + if [ -d "$wdir"/.mvn ] ; then + basedir=$wdir + break + fi + # workaround for JBEAP-8937 (on Solaris 10/Sparc) + if [ -d "${wdir}" ]; then + wdir=`cd "$wdir/.."; pwd` + fi + # end of workaround + done + echo "${basedir}" +} + +# concatenates all lines of a file +concat_lines() { + if [ -f "$1" ]; then + echo "$(tr -s '\n' ' ' < "$1")" + fi +} + +BASE_DIR=`find_maven_basedir "$(pwd)"` +if [ -z "$BASE_DIR" ]; then + exit 1; +fi + +export MAVEN_PROJECTBASEDIR=${MAVEN_BASEDIR:-"$BASE_DIR"} +echo $MAVEN_PROJECTBASEDIR +MAVEN_OPTS="$(concat_lines "$MAVEN_PROJECTBASEDIR/.mvn/jvm.config") $MAVEN_OPTS" + +# For Cygwin, switch paths to Windows format before running java +if $cygwin; then + [ -n "$M2_HOME" ] && + M2_HOME=`cygpath --path --windows "$M2_HOME"` + [ -n "$JAVA_HOME" ] && + JAVA_HOME=`cygpath --path --windows "$JAVA_HOME"` + [ -n "$CLASSPATH" ] && + CLASSPATH=`cygpath --path --windows "$CLASSPATH"` + [ -n "$MAVEN_PROJECTBASEDIR" ] && + MAVEN_PROJECTBASEDIR=`cygpath --path --windows "$MAVEN_PROJECTBASEDIR"` +fi + +WRAPPER_LAUNCHER=org.apache.maven.wrapper.MavenWrapperMain + +exec "$JAVACMD" \ + $MAVEN_OPTS \ + -classpath "$MAVEN_PROJECTBASEDIR/.mvn/wrapper/maven-wrapper.jar" \ + "-Dmaven.home=${M2_HOME}" "-Dmaven.multiModuleProjectDirectory=${MAVEN_PROJECTBASEDIR}" \ + ${WRAPPER_LAUNCHER} $MAVEN_CONFIG "$@" diff --git a/chapter-sleuth-mysql/mvnw.cmd b/chapter-sleuth-mysql/mvnw.cmd new file mode 100755 index 000000000..019bd74d7 --- /dev/null +++ b/chapter-sleuth-mysql/mvnw.cmd @@ -0,0 +1,143 @@ +@REM ---------------------------------------------------------------------------- +@REM Licensed to the Apache Software Foundation (ASF) under one +@REM or more contributor license agreements. See the NOTICE file +@REM distributed with this work for additional information +@REM regarding copyright ownership. The ASF licenses this file +@REM to you under the Apache License, Version 2.0 (the +@REM "License"); you may not use this file except in compliance +@REM with the License. You may obtain a copy of the License at +@REM +@REM http://www.apache.org/licenses/LICENSE-2.0 +@REM +@REM Unless required by applicable law or agreed to in writing, +@REM software distributed under the License is distributed on an +@REM "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +@REM KIND, either express or implied. See the License for the +@REM specific language governing permissions and limitations +@REM under the License. +@REM ---------------------------------------------------------------------------- + +@REM ---------------------------------------------------------------------------- +@REM Maven2 Start Up Batch script +@REM +@REM Required ENV vars: +@REM JAVA_HOME - location of a JDK home dir +@REM +@REM Optional ENV vars +@REM M2_HOME - location of maven2's installed home dir +@REM MAVEN_BATCH_ECHO - set to 'on' to enable the echoing of the batch commands +@REM MAVEN_BATCH_PAUSE - set to 'on' to wait for a key stroke before ending +@REM MAVEN_OPTS - parameters passed to the Java VM when running Maven +@REM e.g. to debug Maven itself, use +@REM set MAVEN_OPTS=-Xdebug -Xrunjdwp:transport=dt_socket,server=y,suspend=y,address=8000 +@REM MAVEN_SKIP_RC - flag to disable loading of mavenrc files +@REM ---------------------------------------------------------------------------- + +@REM Begin all REM lines with '@' in case MAVEN_BATCH_ECHO is 'on' +@echo off +@REM enable echoing my setting MAVEN_BATCH_ECHO to 'on' +@if "%MAVEN_BATCH_ECHO%" == "on" echo %MAVEN_BATCH_ECHO% + +@REM set %HOME% to equivalent of $HOME +if "%HOME%" == "" (set "HOME=%HOMEDRIVE%%HOMEPATH%") + +@REM Execute a user defined script before this one +if not "%MAVEN_SKIP_RC%" == "" goto skipRcPre +@REM check for pre script, once with legacy .bat ending and once with .cmd ending +if exist "%HOME%\mavenrc_pre.bat" call "%HOME%\mavenrc_pre.bat" +if exist "%HOME%\mavenrc_pre.cmd" call "%HOME%\mavenrc_pre.cmd" +:skipRcPre + +@setlocal + +set ERROR_CODE=0 + +@REM To isolate internal variables from possible post scripts, we use another setlocal +@setlocal + +@REM ==== START VALIDATION ==== +if not "%JAVA_HOME%" == "" goto OkJHome + +echo. +echo Error: JAVA_HOME not found in your environment. >&2 +echo Please set the JAVA_HOME variable in your environment to match the >&2 +echo location of your Java installation. >&2 +echo. +goto error + +:OkJHome +if exist "%JAVA_HOME%\bin\java.exe" goto init + +echo. +echo Error: JAVA_HOME is set to an invalid directory. >&2 +echo JAVA_HOME = "%JAVA_HOME%" >&2 +echo Please set the JAVA_HOME variable in your environment to match the >&2 +echo location of your Java installation. >&2 +echo. +goto error + +@REM ==== END VALIDATION ==== + +:init + +@REM Find the project base dir, i.e. the directory that contains the folder ".mvn". +@REM Fallback to current working directory if not found. + +set MAVEN_PROJECTBASEDIR=%MAVEN_BASEDIR% +IF NOT "%MAVEN_PROJECTBASEDIR%"=="" goto endDetectBaseDir + +set EXEC_DIR=%CD% +set WDIR=%EXEC_DIR% +:findBaseDir +IF EXIST "%WDIR%"\.mvn goto baseDirFound +cd .. +IF "%WDIR%"=="%CD%" goto baseDirNotFound +set WDIR=%CD% +goto findBaseDir + +:baseDirFound +set MAVEN_PROJECTBASEDIR=%WDIR% +cd "%EXEC_DIR%" +goto endDetectBaseDir + +:baseDirNotFound +set MAVEN_PROJECTBASEDIR=%EXEC_DIR% +cd "%EXEC_DIR%" + +:endDetectBaseDir + +IF NOT EXIST "%MAVEN_PROJECTBASEDIR%\.mvn\jvm.config" goto endReadAdditionalConfig + +@setlocal EnableExtensions EnableDelayedExpansion +for /F "usebackq delims=" %%a in ("%MAVEN_PROJECTBASEDIR%\.mvn\jvm.config") do set JVM_CONFIG_MAVEN_PROPS=!JVM_CONFIG_MAVEN_PROPS! %%a +@endlocal & set JVM_CONFIG_MAVEN_PROPS=%JVM_CONFIG_MAVEN_PROPS% + +:endReadAdditionalConfig + +SET MAVEN_JAVA_EXE="%JAVA_HOME%\bin\java.exe" + +set WRAPPER_JAR="%MAVEN_PROJECTBASEDIR%\.mvn\wrapper\maven-wrapper.jar" +set WRAPPER_LAUNCHER=org.apache.maven.wrapper.MavenWrapperMain + +%MAVEN_JAVA_EXE% %JVM_CONFIG_MAVEN_PROPS% %MAVEN_OPTS% %MAVEN_DEBUG_OPTS% -classpath %WRAPPER_JAR% "-Dmaven.multiModuleProjectDirectory=%MAVEN_PROJECTBASEDIR%" %WRAPPER_LAUNCHER% %MAVEN_CONFIG% %* +if ERRORLEVEL 1 goto error +goto end + +:error +set ERROR_CODE=1 + +:end +@endlocal & set ERROR_CODE=%ERROR_CODE% + +if not "%MAVEN_SKIP_RC%" == "" goto skipRcPost +@REM check for post script, once with legacy .bat ending and once with .cmd ending +if exist "%HOME%\mavenrc_post.bat" call "%HOME%\mavenrc_post.bat" +if exist "%HOME%\mavenrc_post.cmd" call "%HOME%\mavenrc_post.cmd" +:skipRcPost + +@REM pause the script if MAVEN_BATCH_PAUSE is set to 'on' +if "%MAVEN_BATCH_PAUSE%" == "on" pause + +if "%MAVEN_TERMINATE_CMD%" == "on" exit %ERROR_CODE% + +exit /B %ERROR_CODE% diff --git a/chapter-sleuth-mysql/pom.xml b/chapter-sleuth-mysql/pom.xml new file mode 100755 index 000000000..d57606f0a --- /dev/null +++ b/chapter-sleuth-mysql/pom.xml @@ -0,0 +1,57 @@ + + + 4.0.0 + + com.forezp + sleuth + 0.0.1-SNAPSHOT + pom + + sleuth + Demo project for Spring Boot + + + org.springframework.boot + spring-boot-starter-parent + 1.5.2.RELEASE + + + + + UTF-8 + UTF-8 + 1.8 + Dalston.RELEASE + + + + + org.springframework.boot + spring-boot-starter-test + test + + + + + + + org.springframework.cloud + spring-cloud-dependencies + ${spring-cloud.version} + pom + import + + + + + + + + org.springframework.boot + spring-boot-maven-plugin + + + + + diff --git a/chapter-sleuth-mysql/user-service/.gitignore b/chapter-sleuth-mysql/user-service/.gitignore new file mode 100755 index 000000000..2af7cefb0 --- /dev/null +++ b/chapter-sleuth-mysql/user-service/.gitignore @@ -0,0 +1,24 @@ +target/ +!.mvn/wrapper/maven-wrapper.jar + +### STS ### +.apt_generated +.classpath +.factorypath +.project +.settings +.springBeans + +### IntelliJ IDEA ### +.idea +*.iws +*.iml +*.ipr + +### NetBeans ### +nbproject/private/ +build/ +nbbuild/ +dist/ +nbdist/ +.nb-gradle/ \ No newline at end of file diff --git a/chapter-sleuth-mysql/user-service/.mvn/wrapper/maven-wrapper.jar b/chapter-sleuth-mysql/user-service/.mvn/wrapper/maven-wrapper.jar new file mode 100755 index 000000000..9cc84ea9b Binary files /dev/null and b/chapter-sleuth-mysql/user-service/.mvn/wrapper/maven-wrapper.jar differ diff --git a/chapter-sleuth-mysql/user-service/.mvn/wrapper/maven-wrapper.properties b/chapter-sleuth-mysql/user-service/.mvn/wrapper/maven-wrapper.properties new file mode 100755 index 000000000..c31504370 --- /dev/null +++ b/chapter-sleuth-mysql/user-service/.mvn/wrapper/maven-wrapper.properties @@ -0,0 +1 @@ +distributionUrl=https://repo1.maven.org/maven2/org/apache/maven/apache-maven/3.5.0/apache-maven-3.5.0-bin.zip diff --git a/chapter-sleuth-mysql/user-service/mvnw b/chapter-sleuth-mysql/user-service/mvnw new file mode 100755 index 000000000..5bf251c07 --- /dev/null +++ b/chapter-sleuth-mysql/user-service/mvnw @@ -0,0 +1,225 @@ +#!/bin/sh +# ---------------------------------------------------------------------------- +# Licensed to the Apache Software Foundation (ASF) under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the +# "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. +# ---------------------------------------------------------------------------- + +# ---------------------------------------------------------------------------- +# Maven2 Start Up Batch script +# +# Required ENV vars: +# ------------------ +# JAVA_HOME - location of a JDK home dir +# +# Optional ENV vars +# ----------------- +# M2_HOME - location of maven2's installed home dir +# MAVEN_OPTS - parameters passed to the Java VM when running Maven +# e.g. to debug Maven itself, use +# set MAVEN_OPTS=-Xdebug -Xrunjdwp:transport=dt_socket,server=y,suspend=y,address=8000 +# MAVEN_SKIP_RC - flag to disable loading of mavenrc files +# ---------------------------------------------------------------------------- + +if [ -z "$MAVEN_SKIP_RC" ] ; then + + if [ -f /etc/mavenrc ] ; then + . /etc/mavenrc + fi + + if [ -f "$HOME/.mavenrc" ] ; then + . "$HOME/.mavenrc" + fi + +fi + +# OS specific support. $var _must_ be set to either true or false. +cygwin=false; +darwin=false; +mingw=false +case "`uname`" in + CYGWIN*) cygwin=true ;; + MINGW*) mingw=true;; + Darwin*) darwin=true + # Use /usr/libexec/java_home if available, otherwise fall back to /Library/Java/Home + # See https://developer.apple.com/library/mac/qa/qa1170/_index.html + if [ -z "$JAVA_HOME" ]; then + if [ -x "/usr/libexec/java_home" ]; then + export JAVA_HOME="`/usr/libexec/java_home`" + else + export JAVA_HOME="/Library/Java/Home" + fi + fi + ;; +esac + +if [ -z "$JAVA_HOME" ] ; then + if [ -r /etc/gentoo-release ] ; then + JAVA_HOME=`java-config --jre-home` + fi +fi + +if [ -z "$M2_HOME" ] ; then + ## resolve links - $0 may be a link to maven's home + PRG="$0" + + # need this for relative symlinks + while [ -h "$PRG" ] ; do + ls=`ls -ld "$PRG"` + link=`expr "$ls" : '.*-> \(.*\)$'` + if expr "$link" : '/.*' > /dev/null; then + PRG="$link" + else + PRG="`dirname "$PRG"`/$link" + fi + done + + saveddir=`pwd` + + M2_HOME=`dirname "$PRG"`/.. + + # make it fully qualified + M2_HOME=`cd "$M2_HOME" && pwd` + + cd "$saveddir" + # echo Using m2 at $M2_HOME +fi + +# For Cygwin, ensure paths are in UNIX format before anything is touched +if $cygwin ; then + [ -n "$M2_HOME" ] && + M2_HOME=`cygpath --unix "$M2_HOME"` + [ -n "$JAVA_HOME" ] && + JAVA_HOME=`cygpath --unix "$JAVA_HOME"` + [ -n "$CLASSPATH" ] && + CLASSPATH=`cygpath --path --unix "$CLASSPATH"` +fi + +# For Migwn, ensure paths are in UNIX format before anything is touched +if $mingw ; then + [ -n "$M2_HOME" ] && + M2_HOME="`(cd "$M2_HOME"; pwd)`" + [ -n "$JAVA_HOME" ] && + JAVA_HOME="`(cd "$JAVA_HOME"; pwd)`" + # TODO classpath? +fi + +if [ -z "$JAVA_HOME" ]; then + javaExecutable="`which javac`" + if [ -n "$javaExecutable" ] && ! [ "`expr \"$javaExecutable\" : '\([^ ]*\)'`" = "no" ]; then + # readlink(1) is not available as standard on Solaris 10. + readLink=`which readlink` + if [ ! `expr "$readLink" : '\([^ ]*\)'` = "no" ]; then + if $darwin ; then + javaHome="`dirname \"$javaExecutable\"`" + javaExecutable="`cd \"$javaHome\" && pwd -P`/javac" + else + javaExecutable="`readlink -f \"$javaExecutable\"`" + fi + javaHome="`dirname \"$javaExecutable\"`" + javaHome=`expr "$javaHome" : '\(.*\)/bin'` + JAVA_HOME="$javaHome" + export JAVA_HOME + fi + fi +fi + +if [ -z "$JAVACMD" ] ; then + if [ -n "$JAVA_HOME" ] ; then + if [ -x "$JAVA_HOME/jre/sh/java" ] ; then + # IBM's JDK on AIX uses strange locations for the executables + JAVACMD="$JAVA_HOME/jre/sh/java" + else + JAVACMD="$JAVA_HOME/bin/java" + fi + else + JAVACMD="`which java`" + fi +fi + +if [ ! -x "$JAVACMD" ] ; then + echo "Error: JAVA_HOME is not defined correctly." >&2 + echo " We cannot execute $JAVACMD" >&2 + exit 1 +fi + +if [ -z "$JAVA_HOME" ] ; then + echo "Warning: JAVA_HOME environment variable is not set." +fi + +CLASSWORLDS_LAUNCHER=org.codehaus.plexus.classworlds.launcher.Launcher + +# traverses directory structure from process work directory to filesystem root +# first directory with .mvn subdirectory is considered project base directory +find_maven_basedir() { + + if [ -z "$1" ] + then + echo "Path not specified to find_maven_basedir" + return 1 + fi + + basedir="$1" + wdir="$1" + while [ "$wdir" != '/' ] ; do + if [ -d "$wdir"/.mvn ] ; then + basedir=$wdir + break + fi + # workaround for JBEAP-8937 (on Solaris 10/Sparc) + if [ -d "${wdir}" ]; then + wdir=`cd "$wdir/.."; pwd` + fi + # end of workaround + done + echo "${basedir}" +} + +# concatenates all lines of a file +concat_lines() { + if [ -f "$1" ]; then + echo "$(tr -s '\n' ' ' < "$1")" + fi +} + +BASE_DIR=`find_maven_basedir "$(pwd)"` +if [ -z "$BASE_DIR" ]; then + exit 1; +fi + +export MAVEN_PROJECTBASEDIR=${MAVEN_BASEDIR:-"$BASE_DIR"} +echo $MAVEN_PROJECTBASEDIR +MAVEN_OPTS="$(concat_lines "$MAVEN_PROJECTBASEDIR/.mvn/jvm.config") $MAVEN_OPTS" + +# For Cygwin, switch paths to Windows format before running java +if $cygwin; then + [ -n "$M2_HOME" ] && + M2_HOME=`cygpath --path --windows "$M2_HOME"` + [ -n "$JAVA_HOME" ] && + JAVA_HOME=`cygpath --path --windows "$JAVA_HOME"` + [ -n "$CLASSPATH" ] && + CLASSPATH=`cygpath --path --windows "$CLASSPATH"` + [ -n "$MAVEN_PROJECTBASEDIR" ] && + MAVEN_PROJECTBASEDIR=`cygpath --path --windows "$MAVEN_PROJECTBASEDIR"` +fi + +WRAPPER_LAUNCHER=org.apache.maven.wrapper.MavenWrapperMain + +exec "$JAVACMD" \ + $MAVEN_OPTS \ + -classpath "$MAVEN_PROJECTBASEDIR/.mvn/wrapper/maven-wrapper.jar" \ + "-Dmaven.home=${M2_HOME}" "-Dmaven.multiModuleProjectDirectory=${MAVEN_PROJECTBASEDIR}" \ + ${WRAPPER_LAUNCHER} $MAVEN_CONFIG "$@" diff --git a/chapter-sleuth-mysql/user-service/mvnw.cmd b/chapter-sleuth-mysql/user-service/mvnw.cmd new file mode 100755 index 000000000..019bd74d7 --- /dev/null +++ b/chapter-sleuth-mysql/user-service/mvnw.cmd @@ -0,0 +1,143 @@ +@REM ---------------------------------------------------------------------------- +@REM Licensed to the Apache Software Foundation (ASF) under one +@REM or more contributor license agreements. See the NOTICE file +@REM distributed with this work for additional information +@REM regarding copyright ownership. The ASF licenses this file +@REM to you under the Apache License, Version 2.0 (the +@REM "License"); you may not use this file except in compliance +@REM with the License. You may obtain a copy of the License at +@REM +@REM http://www.apache.org/licenses/LICENSE-2.0 +@REM +@REM Unless required by applicable law or agreed to in writing, +@REM software distributed under the License is distributed on an +@REM "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +@REM KIND, either express or implied. See the License for the +@REM specific language governing permissions and limitations +@REM under the License. +@REM ---------------------------------------------------------------------------- + +@REM ---------------------------------------------------------------------------- +@REM Maven2 Start Up Batch script +@REM +@REM Required ENV vars: +@REM JAVA_HOME - location of a JDK home dir +@REM +@REM Optional ENV vars +@REM M2_HOME - location of maven2's installed home dir +@REM MAVEN_BATCH_ECHO - set to 'on' to enable the echoing of the batch commands +@REM MAVEN_BATCH_PAUSE - set to 'on' to wait for a key stroke before ending +@REM MAVEN_OPTS - parameters passed to the Java VM when running Maven +@REM e.g. to debug Maven itself, use +@REM set MAVEN_OPTS=-Xdebug -Xrunjdwp:transport=dt_socket,server=y,suspend=y,address=8000 +@REM MAVEN_SKIP_RC - flag to disable loading of mavenrc files +@REM ---------------------------------------------------------------------------- + +@REM Begin all REM lines with '@' in case MAVEN_BATCH_ECHO is 'on' +@echo off +@REM enable echoing my setting MAVEN_BATCH_ECHO to 'on' +@if "%MAVEN_BATCH_ECHO%" == "on" echo %MAVEN_BATCH_ECHO% + +@REM set %HOME% to equivalent of $HOME +if "%HOME%" == "" (set "HOME=%HOMEDRIVE%%HOMEPATH%") + +@REM Execute a user defined script before this one +if not "%MAVEN_SKIP_RC%" == "" goto skipRcPre +@REM check for pre script, once with legacy .bat ending and once with .cmd ending +if exist "%HOME%\mavenrc_pre.bat" call "%HOME%\mavenrc_pre.bat" +if exist "%HOME%\mavenrc_pre.cmd" call "%HOME%\mavenrc_pre.cmd" +:skipRcPre + +@setlocal + +set ERROR_CODE=0 + +@REM To isolate internal variables from possible post scripts, we use another setlocal +@setlocal + +@REM ==== START VALIDATION ==== +if not "%JAVA_HOME%" == "" goto OkJHome + +echo. +echo Error: JAVA_HOME not found in your environment. >&2 +echo Please set the JAVA_HOME variable in your environment to match the >&2 +echo location of your Java installation. >&2 +echo. +goto error + +:OkJHome +if exist "%JAVA_HOME%\bin\java.exe" goto init + +echo. +echo Error: JAVA_HOME is set to an invalid directory. >&2 +echo JAVA_HOME = "%JAVA_HOME%" >&2 +echo Please set the JAVA_HOME variable in your environment to match the >&2 +echo location of your Java installation. >&2 +echo. +goto error + +@REM ==== END VALIDATION ==== + +:init + +@REM Find the project base dir, i.e. the directory that contains the folder ".mvn". +@REM Fallback to current working directory if not found. + +set MAVEN_PROJECTBASEDIR=%MAVEN_BASEDIR% +IF NOT "%MAVEN_PROJECTBASEDIR%"=="" goto endDetectBaseDir + +set EXEC_DIR=%CD% +set WDIR=%EXEC_DIR% +:findBaseDir +IF EXIST "%WDIR%"\.mvn goto baseDirFound +cd .. +IF "%WDIR%"=="%CD%" goto baseDirNotFound +set WDIR=%CD% +goto findBaseDir + +:baseDirFound +set MAVEN_PROJECTBASEDIR=%WDIR% +cd "%EXEC_DIR%" +goto endDetectBaseDir + +:baseDirNotFound +set MAVEN_PROJECTBASEDIR=%EXEC_DIR% +cd "%EXEC_DIR%" + +:endDetectBaseDir + +IF NOT EXIST "%MAVEN_PROJECTBASEDIR%\.mvn\jvm.config" goto endReadAdditionalConfig + +@setlocal EnableExtensions EnableDelayedExpansion +for /F "usebackq delims=" %%a in ("%MAVEN_PROJECTBASEDIR%\.mvn\jvm.config") do set JVM_CONFIG_MAVEN_PROPS=!JVM_CONFIG_MAVEN_PROPS! %%a +@endlocal & set JVM_CONFIG_MAVEN_PROPS=%JVM_CONFIG_MAVEN_PROPS% + +:endReadAdditionalConfig + +SET MAVEN_JAVA_EXE="%JAVA_HOME%\bin\java.exe" + +set WRAPPER_JAR="%MAVEN_PROJECTBASEDIR%\.mvn\wrapper\maven-wrapper.jar" +set WRAPPER_LAUNCHER=org.apache.maven.wrapper.MavenWrapperMain + +%MAVEN_JAVA_EXE% %JVM_CONFIG_MAVEN_PROPS% %MAVEN_OPTS% %MAVEN_DEBUG_OPTS% -classpath %WRAPPER_JAR% "-Dmaven.multiModuleProjectDirectory=%MAVEN_PROJECTBASEDIR%" %WRAPPER_LAUNCHER% %MAVEN_CONFIG% %* +if ERRORLEVEL 1 goto error +goto end + +:error +set ERROR_CODE=1 + +:end +@endlocal & set ERROR_CODE=%ERROR_CODE% + +if not "%MAVEN_SKIP_RC%" == "" goto skipRcPost +@REM check for post script, once with legacy .bat ending and once with .cmd ending +if exist "%HOME%\mavenrc_post.bat" call "%HOME%\mavenrc_post.bat" +if exist "%HOME%\mavenrc_post.cmd" call "%HOME%\mavenrc_post.cmd" +:skipRcPost + +@REM pause the script if MAVEN_BATCH_PAUSE is set to 'on' +if "%MAVEN_BATCH_PAUSE%" == "on" pause + +if "%MAVEN_TERMINATE_CMD%" == "on" exit %ERROR_CODE% + +exit /B %ERROR_CODE% diff --git a/chapter-sleuth-mysql/user-service/pom.xml b/chapter-sleuth-mysql/user-service/pom.xml new file mode 100755 index 000000000..f205b5bcd --- /dev/null +++ b/chapter-sleuth-mysql/user-service/pom.xml @@ -0,0 +1,50 @@ + + + 4.0.0 + + com.forezp + user-service + 0.0.1-SNAPSHOT + jar + + user-service + Demo project for Spring Boot + + + com.forezp + sleuth + 0.0.1-SNAPSHOT + + + + + + org.springframework.cloud + spring-cloud-starter-eureka + + + org.springframework.boot + spring-boot-starter-web + + + + org.springframework.cloud + spring-cloud-starter-zipkin + RELEASE + + + + + + + + + org.springframework.boot + spring-boot-maven-plugin + + + + + + diff --git a/chapter-sleuth-mysql/user-service/src/main/java/com/forezp/UserServiceApplication.java b/chapter-sleuth-mysql/user-service/src/main/java/com/forezp/UserServiceApplication.java new file mode 100755 index 000000000..9db45ef2e --- /dev/null +++ b/chapter-sleuth-mysql/user-service/src/main/java/com/forezp/UserServiceApplication.java @@ -0,0 +1,14 @@ +package com.forezp; + +import org.springframework.boot.SpringApplication; +import org.springframework.boot.autoconfigure.SpringBootApplication; +import org.springframework.cloud.netflix.eureka.EnableEurekaClient; + +@SpringBootApplication +@EnableEurekaClient +public class UserServiceApplication { + + public static void main(String[] args) { + SpringApplication.run(UserServiceApplication.class, args); + } +} diff --git a/chapter-sleuth-mysql/user-service/src/main/java/com/forezp/web/UserController.java b/chapter-sleuth-mysql/user-service/src/main/java/com/forezp/web/UserController.java new file mode 100755 index 000000000..6bee9bcc9 --- /dev/null +++ b/chapter-sleuth-mysql/user-service/src/main/java/com/forezp/web/UserController.java @@ -0,0 +1,18 @@ +package com.forezp.web; + +import org.springframework.web.bind.annotation.GetMapping; +import org.springframework.web.bind.annotation.RequestMapping; +import org.springframework.web.bind.annotation.RestController; + +/** + * Created by fangzhipeng on 2017/8/2. + */ +@RestController +@RequestMapping("/user") +public class UserController { + + @GetMapping("/hi") + public String hi(){ + return "I'm forezp"; + } +} diff --git a/chapter-sleuth-mysql/user-service/src/main/resources/application.yml b/chapter-sleuth-mysql/user-service/src/main/resources/application.yml new file mode 100755 index 000000000..a48d4b8bf --- /dev/null +++ b/chapter-sleuth-mysql/user-service/src/main/resources/application.yml @@ -0,0 +1,16 @@ +eureka: + client: + serviceUrl: + defaultZone: http://localhost:8761/eureka/ +server: + port: 8762 +spring: + application: + name: user-service + zipkin: + base-url: http://localhost:9411 + sleuth: + sampler: + percentage: 1.0 + +#spring.zipkin.base-url=http://localhost:9411 diff --git a/chapter-sleuth-mysql/user-service/src/test/java/com/forezp/UserServiceApplicationTests.java b/chapter-sleuth-mysql/user-service/src/test/java/com/forezp/UserServiceApplicationTests.java new file mode 100755 index 000000000..884bae052 --- /dev/null +++ b/chapter-sleuth-mysql/user-service/src/test/java/com/forezp/UserServiceApplicationTests.java @@ -0,0 +1,16 @@ +package com.forezp; + +import org.junit.Test; +import org.junit.runner.RunWith; +import org.springframework.boot.test.context.SpringBootTest; +import org.springframework.test.context.junit4.SpringRunner; + +@RunWith(SpringRunner.class) +@SpringBootTest +public class UserServiceApplicationTests { + + @Test + public void contextLoads() { + } + +} diff --git a/chapter-sleuth-mysql/zipkin-server/.gitignore b/chapter-sleuth-mysql/zipkin-server/.gitignore new file mode 100755 index 000000000..2af7cefb0 --- /dev/null +++ b/chapter-sleuth-mysql/zipkin-server/.gitignore @@ -0,0 +1,24 @@ +target/ +!.mvn/wrapper/maven-wrapper.jar + +### STS ### +.apt_generated +.classpath +.factorypath +.project +.settings +.springBeans + +### IntelliJ IDEA ### +.idea +*.iws +*.iml +*.ipr + +### NetBeans ### +nbproject/private/ +build/ +nbbuild/ +dist/ +nbdist/ +.nb-gradle/ \ No newline at end of file diff --git a/chapter-sleuth-mysql/zipkin-server/.mvn/wrapper/maven-wrapper.jar b/chapter-sleuth-mysql/zipkin-server/.mvn/wrapper/maven-wrapper.jar new file mode 100755 index 000000000..9cc84ea9b Binary files /dev/null and b/chapter-sleuth-mysql/zipkin-server/.mvn/wrapper/maven-wrapper.jar differ diff --git a/chapter-sleuth-mysql/zipkin-server/.mvn/wrapper/maven-wrapper.properties b/chapter-sleuth-mysql/zipkin-server/.mvn/wrapper/maven-wrapper.properties new file mode 100755 index 000000000..c31504370 --- /dev/null +++ b/chapter-sleuth-mysql/zipkin-server/.mvn/wrapper/maven-wrapper.properties @@ -0,0 +1 @@ +distributionUrl=https://repo1.maven.org/maven2/org/apache/maven/apache-maven/3.5.0/apache-maven-3.5.0-bin.zip diff --git a/chapter-sleuth-mysql/zipkin-server/mvnw b/chapter-sleuth-mysql/zipkin-server/mvnw new file mode 100755 index 000000000..5bf251c07 --- /dev/null +++ b/chapter-sleuth-mysql/zipkin-server/mvnw @@ -0,0 +1,225 @@ +#!/bin/sh +# ---------------------------------------------------------------------------- +# Licensed to the Apache Software Foundation (ASF) under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the +# "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. +# ---------------------------------------------------------------------------- + +# ---------------------------------------------------------------------------- +# Maven2 Start Up Batch script +# +# Required ENV vars: +# ------------------ +# JAVA_HOME - location of a JDK home dir +# +# Optional ENV vars +# ----------------- +# M2_HOME - location of maven2's installed home dir +# MAVEN_OPTS - parameters passed to the Java VM when running Maven +# e.g. to debug Maven itself, use +# set MAVEN_OPTS=-Xdebug -Xrunjdwp:transport=dt_socket,server=y,suspend=y,address=8000 +# MAVEN_SKIP_RC - flag to disable loading of mavenrc files +# ---------------------------------------------------------------------------- + +if [ -z "$MAVEN_SKIP_RC" ] ; then + + if [ -f /etc/mavenrc ] ; then + . /etc/mavenrc + fi + + if [ -f "$HOME/.mavenrc" ] ; then + . "$HOME/.mavenrc" + fi + +fi + +# OS specific support. $var _must_ be set to either true or false. +cygwin=false; +darwin=false; +mingw=false +case "`uname`" in + CYGWIN*) cygwin=true ;; + MINGW*) mingw=true;; + Darwin*) darwin=true + # Use /usr/libexec/java_home if available, otherwise fall back to /Library/Java/Home + # See https://developer.apple.com/library/mac/qa/qa1170/_index.html + if [ -z "$JAVA_HOME" ]; then + if [ -x "/usr/libexec/java_home" ]; then + export JAVA_HOME="`/usr/libexec/java_home`" + else + export JAVA_HOME="/Library/Java/Home" + fi + fi + ;; +esac + +if [ -z "$JAVA_HOME" ] ; then + if [ -r /etc/gentoo-release ] ; then + JAVA_HOME=`java-config --jre-home` + fi +fi + +if [ -z "$M2_HOME" ] ; then + ## resolve links - $0 may be a link to maven's home + PRG="$0" + + # need this for relative symlinks + while [ -h "$PRG" ] ; do + ls=`ls -ld "$PRG"` + link=`expr "$ls" : '.*-> \(.*\)$'` + if expr "$link" : '/.*' > /dev/null; then + PRG="$link" + else + PRG="`dirname "$PRG"`/$link" + fi + done + + saveddir=`pwd` + + M2_HOME=`dirname "$PRG"`/.. + + # make it fully qualified + M2_HOME=`cd "$M2_HOME" && pwd` + + cd "$saveddir" + # echo Using m2 at $M2_HOME +fi + +# For Cygwin, ensure paths are in UNIX format before anything is touched +if $cygwin ; then + [ -n "$M2_HOME" ] && + M2_HOME=`cygpath --unix "$M2_HOME"` + [ -n "$JAVA_HOME" ] && + JAVA_HOME=`cygpath --unix "$JAVA_HOME"` + [ -n "$CLASSPATH" ] && + CLASSPATH=`cygpath --path --unix "$CLASSPATH"` +fi + +# For Migwn, ensure paths are in UNIX format before anything is touched +if $mingw ; then + [ -n "$M2_HOME" ] && + M2_HOME="`(cd "$M2_HOME"; pwd)`" + [ -n "$JAVA_HOME" ] && + JAVA_HOME="`(cd "$JAVA_HOME"; pwd)`" + # TODO classpath? +fi + +if [ -z "$JAVA_HOME" ]; then + javaExecutable="`which javac`" + if [ -n "$javaExecutable" ] && ! [ "`expr \"$javaExecutable\" : '\([^ ]*\)'`" = "no" ]; then + # readlink(1) is not available as standard on Solaris 10. + readLink=`which readlink` + if [ ! `expr "$readLink" : '\([^ ]*\)'` = "no" ]; then + if $darwin ; then + javaHome="`dirname \"$javaExecutable\"`" + javaExecutable="`cd \"$javaHome\" && pwd -P`/javac" + else + javaExecutable="`readlink -f \"$javaExecutable\"`" + fi + javaHome="`dirname \"$javaExecutable\"`" + javaHome=`expr "$javaHome" : '\(.*\)/bin'` + JAVA_HOME="$javaHome" + export JAVA_HOME + fi + fi +fi + +if [ -z "$JAVACMD" ] ; then + if [ -n "$JAVA_HOME" ] ; then + if [ -x "$JAVA_HOME/jre/sh/java" ] ; then + # IBM's JDK on AIX uses strange locations for the executables + JAVACMD="$JAVA_HOME/jre/sh/java" + else + JAVACMD="$JAVA_HOME/bin/java" + fi + else + JAVACMD="`which java`" + fi +fi + +if [ ! -x "$JAVACMD" ] ; then + echo "Error: JAVA_HOME is not defined correctly." >&2 + echo " We cannot execute $JAVACMD" >&2 + exit 1 +fi + +if [ -z "$JAVA_HOME" ] ; then + echo "Warning: JAVA_HOME environment variable is not set." +fi + +CLASSWORLDS_LAUNCHER=org.codehaus.plexus.classworlds.launcher.Launcher + +# traverses directory structure from process work directory to filesystem root +# first directory with .mvn subdirectory is considered project base directory +find_maven_basedir() { + + if [ -z "$1" ] + then + echo "Path not specified to find_maven_basedir" + return 1 + fi + + basedir="$1" + wdir="$1" + while [ "$wdir" != '/' ] ; do + if [ -d "$wdir"/.mvn ] ; then + basedir=$wdir + break + fi + # workaround for JBEAP-8937 (on Solaris 10/Sparc) + if [ -d "${wdir}" ]; then + wdir=`cd "$wdir/.."; pwd` + fi + # end of workaround + done + echo "${basedir}" +} + +# concatenates all lines of a file +concat_lines() { + if [ -f "$1" ]; then + echo "$(tr -s '\n' ' ' < "$1")" + fi +} + +BASE_DIR=`find_maven_basedir "$(pwd)"` +if [ -z "$BASE_DIR" ]; then + exit 1; +fi + +export MAVEN_PROJECTBASEDIR=${MAVEN_BASEDIR:-"$BASE_DIR"} +echo $MAVEN_PROJECTBASEDIR +MAVEN_OPTS="$(concat_lines "$MAVEN_PROJECTBASEDIR/.mvn/jvm.config") $MAVEN_OPTS" + +# For Cygwin, switch paths to Windows format before running java +if $cygwin; then + [ -n "$M2_HOME" ] && + M2_HOME=`cygpath --path --windows "$M2_HOME"` + [ -n "$JAVA_HOME" ] && + JAVA_HOME=`cygpath --path --windows "$JAVA_HOME"` + [ -n "$CLASSPATH" ] && + CLASSPATH=`cygpath --path --windows "$CLASSPATH"` + [ -n "$MAVEN_PROJECTBASEDIR" ] && + MAVEN_PROJECTBASEDIR=`cygpath --path --windows "$MAVEN_PROJECTBASEDIR"` +fi + +WRAPPER_LAUNCHER=org.apache.maven.wrapper.MavenWrapperMain + +exec "$JAVACMD" \ + $MAVEN_OPTS \ + -classpath "$MAVEN_PROJECTBASEDIR/.mvn/wrapper/maven-wrapper.jar" \ + "-Dmaven.home=${M2_HOME}" "-Dmaven.multiModuleProjectDirectory=${MAVEN_PROJECTBASEDIR}" \ + ${WRAPPER_LAUNCHER} $MAVEN_CONFIG "$@" diff --git a/chapter-sleuth-mysql/zipkin-server/mvnw.cmd b/chapter-sleuth-mysql/zipkin-server/mvnw.cmd new file mode 100755 index 000000000..019bd74d7 --- /dev/null +++ b/chapter-sleuth-mysql/zipkin-server/mvnw.cmd @@ -0,0 +1,143 @@ +@REM ---------------------------------------------------------------------------- +@REM Licensed to the Apache Software Foundation (ASF) under one +@REM or more contributor license agreements. See the NOTICE file +@REM distributed with this work for additional information +@REM regarding copyright ownership. The ASF licenses this file +@REM to you under the Apache License, Version 2.0 (the +@REM "License"); you may not use this file except in compliance +@REM with the License. You may obtain a copy of the License at +@REM +@REM http://www.apache.org/licenses/LICENSE-2.0 +@REM +@REM Unless required by applicable law or agreed to in writing, +@REM software distributed under the License is distributed on an +@REM "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +@REM KIND, either express or implied. See the License for the +@REM specific language governing permissions and limitations +@REM under the License. +@REM ---------------------------------------------------------------------------- + +@REM ---------------------------------------------------------------------------- +@REM Maven2 Start Up Batch script +@REM +@REM Required ENV vars: +@REM JAVA_HOME - location of a JDK home dir +@REM +@REM Optional ENV vars +@REM M2_HOME - location of maven2's installed home dir +@REM MAVEN_BATCH_ECHO - set to 'on' to enable the echoing of the batch commands +@REM MAVEN_BATCH_PAUSE - set to 'on' to wait for a key stroke before ending +@REM MAVEN_OPTS - parameters passed to the Java VM when running Maven +@REM e.g. to debug Maven itself, use +@REM set MAVEN_OPTS=-Xdebug -Xrunjdwp:transport=dt_socket,server=y,suspend=y,address=8000 +@REM MAVEN_SKIP_RC - flag to disable loading of mavenrc files +@REM ---------------------------------------------------------------------------- + +@REM Begin all REM lines with '@' in case MAVEN_BATCH_ECHO is 'on' +@echo off +@REM enable echoing my setting MAVEN_BATCH_ECHO to 'on' +@if "%MAVEN_BATCH_ECHO%" == "on" echo %MAVEN_BATCH_ECHO% + +@REM set %HOME% to equivalent of $HOME +if "%HOME%" == "" (set "HOME=%HOMEDRIVE%%HOMEPATH%") + +@REM Execute a user defined script before this one +if not "%MAVEN_SKIP_RC%" == "" goto skipRcPre +@REM check for pre script, once with legacy .bat ending and once with .cmd ending +if exist "%HOME%\mavenrc_pre.bat" call "%HOME%\mavenrc_pre.bat" +if exist "%HOME%\mavenrc_pre.cmd" call "%HOME%\mavenrc_pre.cmd" +:skipRcPre + +@setlocal + +set ERROR_CODE=0 + +@REM To isolate internal variables from possible post scripts, we use another setlocal +@setlocal + +@REM ==== START VALIDATION ==== +if not "%JAVA_HOME%" == "" goto OkJHome + +echo. +echo Error: JAVA_HOME not found in your environment. >&2 +echo Please set the JAVA_HOME variable in your environment to match the >&2 +echo location of your Java installation. >&2 +echo. +goto error + +:OkJHome +if exist "%JAVA_HOME%\bin\java.exe" goto init + +echo. +echo Error: JAVA_HOME is set to an invalid directory. >&2 +echo JAVA_HOME = "%JAVA_HOME%" >&2 +echo Please set the JAVA_HOME variable in your environment to match the >&2 +echo location of your Java installation. >&2 +echo. +goto error + +@REM ==== END VALIDATION ==== + +:init + +@REM Find the project base dir, i.e. the directory that contains the folder ".mvn". +@REM Fallback to current working directory if not found. + +set MAVEN_PROJECTBASEDIR=%MAVEN_BASEDIR% +IF NOT "%MAVEN_PROJECTBASEDIR%"=="" goto endDetectBaseDir + +set EXEC_DIR=%CD% +set WDIR=%EXEC_DIR% +:findBaseDir +IF EXIST "%WDIR%"\.mvn goto baseDirFound +cd .. +IF "%WDIR%"=="%CD%" goto baseDirNotFound +set WDIR=%CD% +goto findBaseDir + +:baseDirFound +set MAVEN_PROJECTBASEDIR=%WDIR% +cd "%EXEC_DIR%" +goto endDetectBaseDir + +:baseDirNotFound +set MAVEN_PROJECTBASEDIR=%EXEC_DIR% +cd "%EXEC_DIR%" + +:endDetectBaseDir + +IF NOT EXIST "%MAVEN_PROJECTBASEDIR%\.mvn\jvm.config" goto endReadAdditionalConfig + +@setlocal EnableExtensions EnableDelayedExpansion +for /F "usebackq delims=" %%a in ("%MAVEN_PROJECTBASEDIR%\.mvn\jvm.config") do set JVM_CONFIG_MAVEN_PROPS=!JVM_CONFIG_MAVEN_PROPS! %%a +@endlocal & set JVM_CONFIG_MAVEN_PROPS=%JVM_CONFIG_MAVEN_PROPS% + +:endReadAdditionalConfig + +SET MAVEN_JAVA_EXE="%JAVA_HOME%\bin\java.exe" + +set WRAPPER_JAR="%MAVEN_PROJECTBASEDIR%\.mvn\wrapper\maven-wrapper.jar" +set WRAPPER_LAUNCHER=org.apache.maven.wrapper.MavenWrapperMain + +%MAVEN_JAVA_EXE% %JVM_CONFIG_MAVEN_PROPS% %MAVEN_OPTS% %MAVEN_DEBUG_OPTS% -classpath %WRAPPER_JAR% "-Dmaven.multiModuleProjectDirectory=%MAVEN_PROJECTBASEDIR%" %WRAPPER_LAUNCHER% %MAVEN_CONFIG% %* +if ERRORLEVEL 1 goto error +goto end + +:error +set ERROR_CODE=1 + +:end +@endlocal & set ERROR_CODE=%ERROR_CODE% + +if not "%MAVEN_SKIP_RC%" == "" goto skipRcPost +@REM check for post script, once with legacy .bat ending and once with .cmd ending +if exist "%HOME%\mavenrc_post.bat" call "%HOME%\mavenrc_post.bat" +if exist "%HOME%\mavenrc_post.cmd" call "%HOME%\mavenrc_post.cmd" +:skipRcPost + +@REM pause the script if MAVEN_BATCH_PAUSE is set to 'on' +if "%MAVEN_BATCH_PAUSE%" == "on" pause + +if "%MAVEN_TERMINATE_CMD%" == "on" exit %ERROR_CODE% + +exit /B %ERROR_CODE% diff --git a/chapter-sleuth-mysql/zipkin-server/pom.xml b/chapter-sleuth-mysql/zipkin-server/pom.xml new file mode 100755 index 000000000..e2b1a7b34 --- /dev/null +++ b/chapter-sleuth-mysql/zipkin-server/pom.xml @@ -0,0 +1,67 @@ + + + 4.0.0 + + com.forezp + zipkin-server + 0.0.1-SNAPSHOT + jar + + zipkin-server + Demo project for Spring Boot + + + com.forezp + sleuth + 0.0.1-SNAPSHOT + + + + + + org.springframework.boot + spring-boot-starter-web + + + org.springframework.cloud + spring-cloud-starter-eureka + + + io.zipkin.java + zipkin-server + 1.19.0 + + + + io.zipkin.java + zipkin-storage-mysql + 1.19.0 + + + + io.zipkin.java + zipkin-autoconfigure-ui + + + + mysql + mysql-connector-java + + + org.springframework.boot + spring-boot-starter-jdbc + + + + + + + org.springframework.boot + spring-boot-maven-plugin + + + + + + diff --git a/chapter-sleuth-mysql/zipkin-server/src/main/java/com/forezp/ZipkinServerApplication.java b/chapter-sleuth-mysql/zipkin-server/src/main/java/com/forezp/ZipkinServerApplication.java new file mode 100755 index 000000000..ff815f2e3 --- /dev/null +++ b/chapter-sleuth-mysql/zipkin-server/src/main/java/com/forezp/ZipkinServerApplication.java @@ -0,0 +1,26 @@ +package com.forezp; + +import org.springframework.boot.SpringApplication; +import org.springframework.boot.autoconfigure.SpringBootApplication; +import org.springframework.cloud.netflix.eureka.EnableEurekaClient; +import org.springframework.context.annotation.Bean; +import zipkin.server.EnableZipkinServer; +import zipkin.storage.mysql.MySQLStorage; + +import javax.sql.DataSource; + +@SpringBootApplication +@EnableEurekaClient +@EnableZipkinServer +public class ZipkinServerApplication { + + public static void main(String[] args) { + SpringApplication.run(ZipkinServerApplication.class, args); + } + + + @Bean + public MySQLStorage mySQLStorage(DataSource datasource) { + return MySQLStorage.builder().datasource(datasource).executor(Runnable::run).build(); + } +} diff --git a/chapter-sleuth-mysql/zipkin-server/src/main/resources/bootstrap.yml b/chapter-sleuth-mysql/zipkin-server/src/main/resources/bootstrap.yml new file mode 100755 index 000000000..35878a8fe --- /dev/null +++ b/chapter-sleuth-mysql/zipkin-server/src/main/resources/bootstrap.yml @@ -0,0 +1,26 @@ +eureka: + client: + serviceUrl: + defaultZone: http://localhost:8761/eureka/ +server: + port: 9411 +spring: + application: + name: zipkin-server + + + sleuth: + sampler: + percentage: 1.0 + enabled: false + + + datasource: + driver-class-name: com.mysql.jdbc.Driver + url: jdbc:mysql://localhost:3306/spring-cloud-zipkin?useUnicode=true&characterEncoding=utf8&useSSL=false + username: taichi + password: Password123. + +zipkin: + storage: + type: mysql diff --git a/chapter-sleuth-mysql/zipkin-server/src/test/java/com/forezp/ZipkinServerApplicationTests.java b/chapter-sleuth-mysql/zipkin-server/src/test/java/com/forezp/ZipkinServerApplicationTests.java new file mode 100755 index 000000000..141bd418e --- /dev/null +++ b/chapter-sleuth-mysql/zipkin-server/src/test/java/com/forezp/ZipkinServerApplicationTests.java @@ -0,0 +1,16 @@ +package com.forezp; + +import org.junit.Test; +import org.junit.runner.RunWith; +import org.springframework.boot.test.context.SpringBootTest; +import org.springframework.test.context.junit4.SpringRunner; + +@RunWith(SpringRunner.class) +@SpringBootTest +public class ZipkinServerApplicationTests { + + @Test + public void contextLoads() { + } + +} diff --git a/chapter-sleuth-stream-elasticsearch/.DS_Store b/chapter-sleuth-stream-elasticsearch/.DS_Store new file mode 100644 index 000000000..5263248bd Binary files /dev/null and b/chapter-sleuth-stream-elasticsearch/.DS_Store differ diff --git a/chapter-sleuth-stream-mysql/.DS_Store b/chapter-sleuth-stream-mysql/.DS_Store new file mode 100644 index 000000000..8bf593ff3 Binary files /dev/null and b/chapter-sleuth-stream-mysql/.DS_Store differ diff --git a/chapter-sleuth-stream/.DS_Store b/chapter-sleuth-stream/.DS_Store new file mode 100644 index 000000000..02b625ae7 Binary files /dev/null and b/chapter-sleuth-stream/.DS_Store differ diff --git a/chapter-sleuth/.DS_Store b/chapter-sleuth/.DS_Store new file mode 100644 index 000000000..f8d561776 Binary files /dev/null and b/chapter-sleuth/.DS_Store differ diff --git a/chapter1/.DS_Store b/chapter1/.DS_Store new file mode 100644 index 000000000..9f33470d4 Binary files /dev/null and b/chapter1/.DS_Store differ diff --git a/chapter10-5-jdbc/.DS_Store b/chapter10-5-jdbc/.DS_Store new file mode 100644 index 000000000..59bad25c8 Binary files /dev/null and b/chapter10-5-jdbc/.DS_Store differ diff --git a/chapter10-5-jdbc/.idea/.DS_Store b/chapter10-5-jdbc/.idea/.DS_Store new file mode 100644 index 000000000..f12cf8f7e Binary files /dev/null and b/chapter10-5-jdbc/.idea/.DS_Store differ diff --git a/chapter10-5-jdbc/.idea/compiler.xml b/chapter10-5-jdbc/.idea/compiler.xml new file mode 100644 index 000000000..80de7f6ac --- /dev/null +++ b/chapter10-5-jdbc/.idea/compiler.xml @@ -0,0 +1,25 @@ + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/chapter10-5-jdbc/.idea/encodings.xml b/chapter10-5-jdbc/.idea/encodings.xml new file mode 100644 index 000000000..1cf0a0fef --- /dev/null +++ b/chapter10-5-jdbc/.idea/encodings.xml @@ -0,0 +1,8 @@ + + + + + + + + \ No newline at end of file diff --git a/chapter10-5-jdbc/.idea/inspectionProfiles/Project_Default.xml b/chapter10-5-jdbc/.idea/inspectionProfiles/Project_Default.xml new file mode 100644 index 000000000..6560a9898 --- /dev/null +++ b/chapter10-5-jdbc/.idea/inspectionProfiles/Project_Default.xml @@ -0,0 +1,36 @@ + + + + \ No newline at end of file diff --git a/chapter10-5-jdbc/.idea/kotlinc.xml b/chapter10-5-jdbc/.idea/kotlinc.xml new file mode 100644 index 000000000..1c24f9a8d --- /dev/null +++ b/chapter10-5-jdbc/.idea/kotlinc.xml @@ -0,0 +1,7 @@ + + + + + \ No newline at end of file diff --git a/chapter10-5-jdbc/.idea/libraries/Maven__ch_qos_logback_logback_classic_1_2_3.xml b/chapter10-5-jdbc/.idea/libraries/Maven__ch_qos_logback_logback_classic_1_2_3.xml new file mode 100644 index 000000000..6fec8f434 --- /dev/null +++ b/chapter10-5-jdbc/.idea/libraries/Maven__ch_qos_logback_logback_classic_1_2_3.xml @@ -0,0 +1,13 @@ + + + + + + + + + + + + + \ No newline at end of file diff --git a/chapter10-5-jdbc/.idea/libraries/Maven__ch_qos_logback_logback_core_1_2_3.xml b/chapter10-5-jdbc/.idea/libraries/Maven__ch_qos_logback_logback_core_1_2_3.xml new file mode 100644 index 000000000..9eb8596a3 --- /dev/null +++ b/chapter10-5-jdbc/.idea/libraries/Maven__ch_qos_logback_logback_core_1_2_3.xml @@ -0,0 +1,13 @@ + + + + + + + + + + + + + \ No newline at end of file diff --git a/chapter10-5-jdbc/.idea/libraries/Maven__com_fasterxml_classmate_1_4_0.xml b/chapter10-5-jdbc/.idea/libraries/Maven__com_fasterxml_classmate_1_4_0.xml new file mode 100644 index 000000000..bbd3a886a --- /dev/null +++ b/chapter10-5-jdbc/.idea/libraries/Maven__com_fasterxml_classmate_1_4_0.xml @@ -0,0 +1,13 @@ + + + + + + + + + + + + + \ No newline at end of file diff --git a/chapter10-5-jdbc/.idea/libraries/Maven__com_fasterxml_jackson_core_jackson_annotations_2_9_0.xml b/chapter10-5-jdbc/.idea/libraries/Maven__com_fasterxml_jackson_core_jackson_annotations_2_9_0.xml new file mode 100644 index 000000000..06441f49e --- /dev/null +++ b/chapter10-5-jdbc/.idea/libraries/Maven__com_fasterxml_jackson_core_jackson_annotations_2_9_0.xml @@ -0,0 +1,13 @@ + + + + + + + + + + + + + \ No newline at end of file diff --git a/chapter10-5-jdbc/.idea/libraries/Maven__com_fasterxml_jackson_core_jackson_core_2_9_7.xml b/chapter10-5-jdbc/.idea/libraries/Maven__com_fasterxml_jackson_core_jackson_core_2_9_7.xml new file mode 100644 index 000000000..02897bef1 --- /dev/null +++ b/chapter10-5-jdbc/.idea/libraries/Maven__com_fasterxml_jackson_core_jackson_core_2_9_7.xml @@ -0,0 +1,13 @@ + + + + + + + + + + + + + \ No newline at end of file diff --git a/chapter10-5-jdbc/.idea/libraries/Maven__com_fasterxml_jackson_core_jackson_databind_2_9_7.xml b/chapter10-5-jdbc/.idea/libraries/Maven__com_fasterxml_jackson_core_jackson_databind_2_9_7.xml new file mode 100644 index 000000000..11ddfbae9 --- /dev/null +++ b/chapter10-5-jdbc/.idea/libraries/Maven__com_fasterxml_jackson_core_jackson_databind_2_9_7.xml @@ -0,0 +1,13 @@ + + + + + + + + + + + + + \ No newline at end of file diff --git a/chapter10-5-jdbc/.idea/libraries/Maven__com_fasterxml_jackson_datatype_jackson_datatype_jdk8_2_9_7.xml b/chapter10-5-jdbc/.idea/libraries/Maven__com_fasterxml_jackson_datatype_jackson_datatype_jdk8_2_9_7.xml new file mode 100644 index 000000000..a5beee878 --- /dev/null +++ b/chapter10-5-jdbc/.idea/libraries/Maven__com_fasterxml_jackson_datatype_jackson_datatype_jdk8_2_9_7.xml @@ -0,0 +1,13 @@ + + + + + + + + + + + + + \ No newline at end of file diff --git a/chapter10-5-jdbc/.idea/libraries/Maven__com_fasterxml_jackson_datatype_jackson_datatype_jsr310_2_9_7.xml b/chapter10-5-jdbc/.idea/libraries/Maven__com_fasterxml_jackson_datatype_jackson_datatype_jsr310_2_9_7.xml new file mode 100644 index 000000000..9bcce3bb9 --- /dev/null +++ b/chapter10-5-jdbc/.idea/libraries/Maven__com_fasterxml_jackson_datatype_jackson_datatype_jsr310_2_9_7.xml @@ -0,0 +1,13 @@ + + + + + + + + + + + + + \ No newline at end of file diff --git a/chapter10-5-jdbc/.idea/libraries/Maven__com_fasterxml_jackson_module_jackson_module_parameter_names_2_9_7.xml b/chapter10-5-jdbc/.idea/libraries/Maven__com_fasterxml_jackson_module_jackson_module_parameter_names_2_9_7.xml new file mode 100644 index 000000000..b9cc6e224 --- /dev/null +++ b/chapter10-5-jdbc/.idea/libraries/Maven__com_fasterxml_jackson_module_jackson_module_parameter_names_2_9_7.xml @@ -0,0 +1,13 @@ + + + + + + + + + + + + + \ No newline at end of file diff --git a/chapter10-5-jdbc/.idea/libraries/Maven__com_googlecode_javaewah_JavaEWAH_1_1_6.xml b/chapter10-5-jdbc/.idea/libraries/Maven__com_googlecode_javaewah_JavaEWAH_1_1_6.xml new file mode 100644 index 000000000..9ee346c50 --- /dev/null +++ b/chapter10-5-jdbc/.idea/libraries/Maven__com_googlecode_javaewah_JavaEWAH_1_1_6.xml @@ -0,0 +1,13 @@ + + + + + + + + + + + + + \ No newline at end of file diff --git a/chapter10-5-jdbc/.idea/libraries/Maven__com_jayway_jsonpath_json_path_2_4_0.xml b/chapter10-5-jdbc/.idea/libraries/Maven__com_jayway_jsonpath_json_path_2_4_0.xml new file mode 100644 index 000000000..f19f6eb36 --- /dev/null +++ b/chapter10-5-jdbc/.idea/libraries/Maven__com_jayway_jsonpath_json_path_2_4_0.xml @@ -0,0 +1,13 @@ + + + + + + + + + + + + + \ No newline at end of file diff --git a/chapter10-5-jdbc/.idea/libraries/Maven__com_jcraft_jsch_0_1_54.xml b/chapter10-5-jdbc/.idea/libraries/Maven__com_jcraft_jsch_0_1_54.xml new file mode 100644 index 000000000..2a43ce757 --- /dev/null +++ b/chapter10-5-jdbc/.idea/libraries/Maven__com_jcraft_jsch_0_1_54.xml @@ -0,0 +1,13 @@ + + + + + + + + + + + + + \ No newline at end of file diff --git a/chapter10-5-jdbc/.idea/libraries/Maven__com_jcraft_jzlib_1_1_1.xml b/chapter10-5-jdbc/.idea/libraries/Maven__com_jcraft_jzlib_1_1_1.xml new file mode 100644 index 000000000..3795be8a0 --- /dev/null +++ b/chapter10-5-jdbc/.idea/libraries/Maven__com_jcraft_jzlib_1_1_1.xml @@ -0,0 +1,13 @@ + + + + + + + + + + + + + \ No newline at end of file diff --git a/chapter10-5-jdbc/.idea/libraries/Maven__com_vaadin_external_google_android_json_0_0_20131108_vaadin1.xml b/chapter10-5-jdbc/.idea/libraries/Maven__com_vaadin_external_google_android_json_0_0_20131108_vaadin1.xml new file mode 100644 index 000000000..b8581a6f5 --- /dev/null +++ b/chapter10-5-jdbc/.idea/libraries/Maven__com_vaadin_external_google_android_json_0_0_20131108_vaadin1.xml @@ -0,0 +1,13 @@ + + + + + + + + + + + + + \ No newline at end of file diff --git a/chapter10-5-jdbc/.idea/libraries/Maven__com_zaxxer_HikariCP_3_2_0.xml b/chapter10-5-jdbc/.idea/libraries/Maven__com_zaxxer_HikariCP_3_2_0.xml new file mode 100644 index 000000000..8f760a203 --- /dev/null +++ b/chapter10-5-jdbc/.idea/libraries/Maven__com_zaxxer_HikariCP_3_2_0.xml @@ -0,0 +1,13 @@ + + + + + + + + + + + + + \ No newline at end of file diff --git a/chapter10-5-jdbc/.idea/libraries/Maven__commons_codec_commons_codec_1_11.xml b/chapter10-5-jdbc/.idea/libraries/Maven__commons_codec_commons_codec_1_11.xml new file mode 100644 index 000000000..4c8ff5462 --- /dev/null +++ b/chapter10-5-jdbc/.idea/libraries/Maven__commons_codec_commons_codec_1_11.xml @@ -0,0 +1,13 @@ + + + + + + + + + + + + + \ No newline at end of file diff --git a/chapter10-5-jdbc/.idea/libraries/Maven__io_micrometer_micrometer_core_1_1_0.xml b/chapter10-5-jdbc/.idea/libraries/Maven__io_micrometer_micrometer_core_1_1_0.xml new file mode 100644 index 000000000..ac20e559d --- /dev/null +++ b/chapter10-5-jdbc/.idea/libraries/Maven__io_micrometer_micrometer_core_1_1_0.xml @@ -0,0 +1,13 @@ + + + + + + + + + + + + + \ No newline at end of file diff --git a/chapter10-5-jdbc/.idea/libraries/Maven__javax_annotation_javax_annotation_api_1_3_2.xml b/chapter10-5-jdbc/.idea/libraries/Maven__javax_annotation_javax_annotation_api_1_3_2.xml new file mode 100644 index 000000000..e74f3ab28 --- /dev/null +++ b/chapter10-5-jdbc/.idea/libraries/Maven__javax_annotation_javax_annotation_api_1_3_2.xml @@ -0,0 +1,13 @@ + + + + + + + + + + + + + \ No newline at end of file diff --git a/chapter10-5-jdbc/.idea/libraries/Maven__javax_validation_validation_api_2_0_1_Final.xml b/chapter10-5-jdbc/.idea/libraries/Maven__javax_validation_validation_api_2_0_1_Final.xml new file mode 100644 index 000000000..6978c0b24 --- /dev/null +++ b/chapter10-5-jdbc/.idea/libraries/Maven__javax_validation_validation_api_2_0_1_Final.xml @@ -0,0 +1,13 @@ + + + + + + + + + + + + + \ No newline at end of file diff --git a/chapter10-5-jdbc/.idea/libraries/Maven__junit_junit_4_12.xml b/chapter10-5-jdbc/.idea/libraries/Maven__junit_junit_4_12.xml new file mode 100644 index 000000000..d41104174 --- /dev/null +++ b/chapter10-5-jdbc/.idea/libraries/Maven__junit_junit_4_12.xml @@ -0,0 +1,13 @@ + + + + + + + + + + + + + \ No newline at end of file diff --git a/chapter10-5-jdbc/.idea/libraries/Maven__mysql_mysql_connector_java_8_0_13.xml b/chapter10-5-jdbc/.idea/libraries/Maven__mysql_mysql_connector_java_8_0_13.xml new file mode 100644 index 000000000..fc36ef0eb --- /dev/null +++ b/chapter10-5-jdbc/.idea/libraries/Maven__mysql_mysql_connector_java_8_0_13.xml @@ -0,0 +1,13 @@ + + + + + + + + + + + + + \ No newline at end of file diff --git a/chapter10-5-jdbc/.idea/libraries/Maven__net_bytebuddy_byte_buddy_1_9_3.xml b/chapter10-5-jdbc/.idea/libraries/Maven__net_bytebuddy_byte_buddy_1_9_3.xml new file mode 100644 index 000000000..183a43074 --- /dev/null +++ b/chapter10-5-jdbc/.idea/libraries/Maven__net_bytebuddy_byte_buddy_1_9_3.xml @@ -0,0 +1,13 @@ + + + + + + + + + + + + + \ No newline at end of file diff --git a/chapter10-5-jdbc/.idea/libraries/Maven__net_bytebuddy_byte_buddy_agent_1_9_3.xml b/chapter10-5-jdbc/.idea/libraries/Maven__net_bytebuddy_byte_buddy_agent_1_9_3.xml new file mode 100644 index 000000000..be4d19f36 --- /dev/null +++ b/chapter10-5-jdbc/.idea/libraries/Maven__net_bytebuddy_byte_buddy_agent_1_9_3.xml @@ -0,0 +1,13 @@ + + + + + + + + + + + + + \ No newline at end of file diff --git a/chapter10-5-jdbc/.idea/libraries/Maven__net_minidev_accessors_smart_1_2.xml b/chapter10-5-jdbc/.idea/libraries/Maven__net_minidev_accessors_smart_1_2.xml new file mode 100644 index 000000000..b3d385838 --- /dev/null +++ b/chapter10-5-jdbc/.idea/libraries/Maven__net_minidev_accessors_smart_1_2.xml @@ -0,0 +1,13 @@ + + + + + + + + + + + + + \ No newline at end of file diff --git a/chapter10-5-jdbc/.idea/libraries/Maven__net_minidev_json_smart_2_3.xml b/chapter10-5-jdbc/.idea/libraries/Maven__net_minidev_json_smart_2_3.xml new file mode 100644 index 000000000..108302355 --- /dev/null +++ b/chapter10-5-jdbc/.idea/libraries/Maven__net_minidev_json_smart_2_3.xml @@ -0,0 +1,13 @@ + + + + + + + + + + + + + \ No newline at end of file diff --git a/chapter10-5-jdbc/.idea/libraries/Maven__org_apache_httpcomponents_httpclient_4_5_6.xml b/chapter10-5-jdbc/.idea/libraries/Maven__org_apache_httpcomponents_httpclient_4_5_6.xml new file mode 100644 index 000000000..8de95f78d --- /dev/null +++ b/chapter10-5-jdbc/.idea/libraries/Maven__org_apache_httpcomponents_httpclient_4_5_6.xml @@ -0,0 +1,13 @@ + + + + + + + + + + + + + \ No newline at end of file diff --git a/chapter10-5-jdbc/.idea/libraries/Maven__org_apache_httpcomponents_httpcore_4_4_10.xml b/chapter10-5-jdbc/.idea/libraries/Maven__org_apache_httpcomponents_httpcore_4_4_10.xml new file mode 100644 index 000000000..29b722ad3 --- /dev/null +++ b/chapter10-5-jdbc/.idea/libraries/Maven__org_apache_httpcomponents_httpcore_4_4_10.xml @@ -0,0 +1,13 @@ + + + + + + + + + + + + + \ No newline at end of file diff --git a/chapter10-5-jdbc/.idea/libraries/Maven__org_apache_logging_log4j_log4j_api_2_11_1.xml b/chapter10-5-jdbc/.idea/libraries/Maven__org_apache_logging_log4j_log4j_api_2_11_1.xml new file mode 100644 index 000000000..c27223f12 --- /dev/null +++ b/chapter10-5-jdbc/.idea/libraries/Maven__org_apache_logging_log4j_log4j_api_2_11_1.xml @@ -0,0 +1,13 @@ + + + + + + + + + + + + + \ No newline at end of file diff --git a/chapter10-5-jdbc/.idea/libraries/Maven__org_apache_logging_log4j_log4j_to_slf4j_2_11_1.xml b/chapter10-5-jdbc/.idea/libraries/Maven__org_apache_logging_log4j_log4j_to_slf4j_2_11_1.xml new file mode 100644 index 000000000..bd733beb2 --- /dev/null +++ b/chapter10-5-jdbc/.idea/libraries/Maven__org_apache_logging_log4j_log4j_to_slf4j_2_11_1.xml @@ -0,0 +1,13 @@ + + + + + + + + + + + + + \ No newline at end of file diff --git a/chapter10-5-jdbc/.idea/libraries/Maven__org_apache_tomcat_embed_tomcat_embed_core_9_0_12.xml b/chapter10-5-jdbc/.idea/libraries/Maven__org_apache_tomcat_embed_tomcat_embed_core_9_0_12.xml new file mode 100644 index 000000000..aaf3bd063 --- /dev/null +++ b/chapter10-5-jdbc/.idea/libraries/Maven__org_apache_tomcat_embed_tomcat_embed_core_9_0_12.xml @@ -0,0 +1,13 @@ + + + + + + + + + + + + + \ No newline at end of file diff --git a/chapter10-5-jdbc/.idea/libraries/Maven__org_apache_tomcat_embed_tomcat_embed_el_9_0_12.xml b/chapter10-5-jdbc/.idea/libraries/Maven__org_apache_tomcat_embed_tomcat_embed_el_9_0_12.xml new file mode 100644 index 000000000..671ab5452 --- /dev/null +++ b/chapter10-5-jdbc/.idea/libraries/Maven__org_apache_tomcat_embed_tomcat_embed_el_9_0_12.xml @@ -0,0 +1,13 @@ + + + + + + + + + + + + + \ No newline at end of file diff --git a/chapter10-5-jdbc/.idea/libraries/Maven__org_apache_tomcat_embed_tomcat_embed_websocket_9_0_12.xml b/chapter10-5-jdbc/.idea/libraries/Maven__org_apache_tomcat_embed_tomcat_embed_websocket_9_0_12.xml new file mode 100644 index 000000000..b3896527f --- /dev/null +++ b/chapter10-5-jdbc/.idea/libraries/Maven__org_apache_tomcat_embed_tomcat_embed_websocket_9_0_12.xml @@ -0,0 +1,13 @@ + + + + + + + + + + + + + \ No newline at end of file diff --git a/chapter10-5-jdbc/.idea/libraries/Maven__org_assertj_assertj_core_3_11_1.xml b/chapter10-5-jdbc/.idea/libraries/Maven__org_assertj_assertj_core_3_11_1.xml new file mode 100644 index 000000000..4d16d46c6 --- /dev/null +++ b/chapter10-5-jdbc/.idea/libraries/Maven__org_assertj_assertj_core_3_11_1.xml @@ -0,0 +1,13 @@ + + + + + + + + + + + + + \ No newline at end of file diff --git a/chapter10-5-jdbc/.idea/libraries/Maven__org_bouncycastle_bcpkix_jdk15on_1_60.xml b/chapter10-5-jdbc/.idea/libraries/Maven__org_bouncycastle_bcpkix_jdk15on_1_60.xml new file mode 100644 index 000000000..3cc149321 --- /dev/null +++ b/chapter10-5-jdbc/.idea/libraries/Maven__org_bouncycastle_bcpkix_jdk15on_1_60.xml @@ -0,0 +1,13 @@ + + + + + + + + + + + + + \ No newline at end of file diff --git a/chapter10-5-jdbc/.idea/libraries/Maven__org_bouncycastle_bcprov_jdk15on_1_60.xml b/chapter10-5-jdbc/.idea/libraries/Maven__org_bouncycastle_bcprov_jdk15on_1_60.xml new file mode 100644 index 000000000..f6ca3adf3 --- /dev/null +++ b/chapter10-5-jdbc/.idea/libraries/Maven__org_bouncycastle_bcprov_jdk15on_1_60.xml @@ -0,0 +1,13 @@ + + + + + + + + + + + + + \ No newline at end of file diff --git a/chapter10-5-jdbc/.idea/libraries/Maven__org_eclipse_jgit_org_eclipse_jgit_5_1_3_201810200350_r.xml b/chapter10-5-jdbc/.idea/libraries/Maven__org_eclipse_jgit_org_eclipse_jgit_5_1_3_201810200350_r.xml new file mode 100644 index 000000000..93b510349 --- /dev/null +++ b/chapter10-5-jdbc/.idea/libraries/Maven__org_eclipse_jgit_org_eclipse_jgit_5_1_3_201810200350_r.xml @@ -0,0 +1,13 @@ + + + + + + + + + + + + + \ No newline at end of file diff --git a/chapter10-5-jdbc/.idea/libraries/Maven__org_eclipse_jgit_org_eclipse_jgit_http_apache_5_1_3_201810200350_r.xml b/chapter10-5-jdbc/.idea/libraries/Maven__org_eclipse_jgit_org_eclipse_jgit_http_apache_5_1_3_201810200350_r.xml new file mode 100644 index 000000000..f4073f315 --- /dev/null +++ b/chapter10-5-jdbc/.idea/libraries/Maven__org_eclipse_jgit_org_eclipse_jgit_http_apache_5_1_3_201810200350_r.xml @@ -0,0 +1,13 @@ + + + + + + + + + + + + + \ No newline at end of file diff --git a/chapter10-5-jdbc/.idea/libraries/Maven__org_hamcrest_hamcrest_core_1_3.xml b/chapter10-5-jdbc/.idea/libraries/Maven__org_hamcrest_hamcrest_core_1_3.xml new file mode 100644 index 000000000..f58bbc112 --- /dev/null +++ b/chapter10-5-jdbc/.idea/libraries/Maven__org_hamcrest_hamcrest_core_1_3.xml @@ -0,0 +1,13 @@ + + + + + + + + + + + + + \ No newline at end of file diff --git a/chapter10-5-jdbc/.idea/libraries/Maven__org_hamcrest_hamcrest_library_1_3.xml b/chapter10-5-jdbc/.idea/libraries/Maven__org_hamcrest_hamcrest_library_1_3.xml new file mode 100644 index 000000000..78dbe458d --- /dev/null +++ b/chapter10-5-jdbc/.idea/libraries/Maven__org_hamcrest_hamcrest_library_1_3.xml @@ -0,0 +1,13 @@ + + + + + + + + + + + + + \ No newline at end of file diff --git a/chapter10-5-jdbc/.idea/libraries/Maven__org_hdrhistogram_HdrHistogram_2_1_9.xml b/chapter10-5-jdbc/.idea/libraries/Maven__org_hdrhistogram_HdrHistogram_2_1_9.xml new file mode 100644 index 000000000..04cc80401 --- /dev/null +++ b/chapter10-5-jdbc/.idea/libraries/Maven__org_hdrhistogram_HdrHistogram_2_1_9.xml @@ -0,0 +1,13 @@ + + + + + + + + + + + + + \ No newline at end of file diff --git a/chapter10-5-jdbc/.idea/libraries/Maven__org_hibernate_validator_hibernate_validator_6_0_13_Final.xml b/chapter10-5-jdbc/.idea/libraries/Maven__org_hibernate_validator_hibernate_validator_6_0_13_Final.xml new file mode 100644 index 000000000..2f57c13ff --- /dev/null +++ b/chapter10-5-jdbc/.idea/libraries/Maven__org_hibernate_validator_hibernate_validator_6_0_13_Final.xml @@ -0,0 +1,13 @@ + + + + + + + + + + + + + \ No newline at end of file diff --git a/chapter10-5-jdbc/.idea/libraries/Maven__org_jboss_logging_jboss_logging_3_3_2_Final.xml b/chapter10-5-jdbc/.idea/libraries/Maven__org_jboss_logging_jboss_logging_3_3_2_Final.xml new file mode 100644 index 000000000..5f7dd01e2 --- /dev/null +++ b/chapter10-5-jdbc/.idea/libraries/Maven__org_jboss_logging_jboss_logging_3_3_2_Final.xml @@ -0,0 +1,13 @@ + + + + + + + + + + + + + \ No newline at end of file diff --git a/chapter10-5-jdbc/.idea/libraries/Maven__org_latencyutils_LatencyUtils_2_0_3.xml b/chapter10-5-jdbc/.idea/libraries/Maven__org_latencyutils_LatencyUtils_2_0_3.xml new file mode 100644 index 000000000..bf6816984 --- /dev/null +++ b/chapter10-5-jdbc/.idea/libraries/Maven__org_latencyutils_LatencyUtils_2_0_3.xml @@ -0,0 +1,13 @@ + + + + + + + + + + + + + \ No newline at end of file diff --git a/chapter10-5-jdbc/.idea/libraries/Maven__org_mockito_mockito_core_2_23_0.xml b/chapter10-5-jdbc/.idea/libraries/Maven__org_mockito_mockito_core_2_23_0.xml new file mode 100644 index 000000000..e905c50bf --- /dev/null +++ b/chapter10-5-jdbc/.idea/libraries/Maven__org_mockito_mockito_core_2_23_0.xml @@ -0,0 +1,13 @@ + + + + + + + + + + + + + \ No newline at end of file diff --git a/chapter10-5-jdbc/.idea/libraries/Maven__org_objenesis_objenesis_2_6.xml b/chapter10-5-jdbc/.idea/libraries/Maven__org_objenesis_objenesis_2_6.xml new file mode 100644 index 000000000..af41e3b61 --- /dev/null +++ b/chapter10-5-jdbc/.idea/libraries/Maven__org_objenesis_objenesis_2_6.xml @@ -0,0 +1,13 @@ + + + + + + + + + + + + + \ No newline at end of file diff --git a/chapter10-5-jdbc/.idea/libraries/Maven__org_ow2_asm_asm_5_0_4.xml b/chapter10-5-jdbc/.idea/libraries/Maven__org_ow2_asm_asm_5_0_4.xml new file mode 100644 index 000000000..0bf8cf2b2 --- /dev/null +++ b/chapter10-5-jdbc/.idea/libraries/Maven__org_ow2_asm_asm_5_0_4.xml @@ -0,0 +1,13 @@ + + + + + + + + + + + + + \ No newline at end of file diff --git a/chapter10-5-jdbc/.idea/libraries/Maven__org_skyscreamer_jsonassert_1_5_0.xml b/chapter10-5-jdbc/.idea/libraries/Maven__org_skyscreamer_jsonassert_1_5_0.xml new file mode 100644 index 000000000..c4c54d6d5 --- /dev/null +++ b/chapter10-5-jdbc/.idea/libraries/Maven__org_skyscreamer_jsonassert_1_5_0.xml @@ -0,0 +1,13 @@ + + + + + + + + + + + + + \ No newline at end of file diff --git a/chapter10-5-jdbc/.idea/libraries/Maven__org_slf4j_jul_to_slf4j_1_7_25.xml b/chapter10-5-jdbc/.idea/libraries/Maven__org_slf4j_jul_to_slf4j_1_7_25.xml new file mode 100644 index 000000000..6073e5338 --- /dev/null +++ b/chapter10-5-jdbc/.idea/libraries/Maven__org_slf4j_jul_to_slf4j_1_7_25.xml @@ -0,0 +1,13 @@ + + + + + + + + + + + + + \ No newline at end of file diff --git a/chapter10-5-jdbc/.idea/libraries/Maven__org_slf4j_slf4j_api_1_7_25.xml b/chapter10-5-jdbc/.idea/libraries/Maven__org_slf4j_slf4j_api_1_7_25.xml new file mode 100644 index 000000000..20e816363 --- /dev/null +++ b/chapter10-5-jdbc/.idea/libraries/Maven__org_slf4j_slf4j_api_1_7_25.xml @@ -0,0 +1,13 @@ + + + + + + + + + + + + + \ No newline at end of file diff --git a/chapter10-5-jdbc/.idea/libraries/Maven__org_springframework_boot_spring_boot_2_1_0_RELEASE.xml b/chapter10-5-jdbc/.idea/libraries/Maven__org_springframework_boot_spring_boot_2_1_0_RELEASE.xml new file mode 100644 index 000000000..2195c71e7 --- /dev/null +++ b/chapter10-5-jdbc/.idea/libraries/Maven__org_springframework_boot_spring_boot_2_1_0_RELEASE.xml @@ -0,0 +1,13 @@ + + + + + + + + + + + + + \ No newline at end of file diff --git a/chapter10-5-jdbc/.idea/libraries/Maven__org_springframework_boot_spring_boot_actuator_2_1_0_RELEASE.xml b/chapter10-5-jdbc/.idea/libraries/Maven__org_springframework_boot_spring_boot_actuator_2_1_0_RELEASE.xml new file mode 100644 index 000000000..6bdfd4925 --- /dev/null +++ b/chapter10-5-jdbc/.idea/libraries/Maven__org_springframework_boot_spring_boot_actuator_2_1_0_RELEASE.xml @@ -0,0 +1,13 @@ + + + + + + + + + + + + + \ No newline at end of file diff --git a/chapter10-5-jdbc/.idea/libraries/Maven__org_springframework_boot_spring_boot_actuator_autoconfigure_2_1_0_RELEASE.xml b/chapter10-5-jdbc/.idea/libraries/Maven__org_springframework_boot_spring_boot_actuator_autoconfigure_2_1_0_RELEASE.xml new file mode 100644 index 000000000..35de4e74c --- /dev/null +++ b/chapter10-5-jdbc/.idea/libraries/Maven__org_springframework_boot_spring_boot_actuator_autoconfigure_2_1_0_RELEASE.xml @@ -0,0 +1,13 @@ + + + + + + + + + + + + + \ No newline at end of file diff --git a/chapter10-5-jdbc/.idea/libraries/Maven__org_springframework_boot_spring_boot_autoconfigure_2_1_0_RELEASE.xml b/chapter10-5-jdbc/.idea/libraries/Maven__org_springframework_boot_spring_boot_autoconfigure_2_1_0_RELEASE.xml new file mode 100644 index 000000000..93ebb16f8 --- /dev/null +++ b/chapter10-5-jdbc/.idea/libraries/Maven__org_springframework_boot_spring_boot_autoconfigure_2_1_0_RELEASE.xml @@ -0,0 +1,13 @@ + + + + + + + + + + + + + \ No newline at end of file diff --git a/chapter10-5-jdbc/.idea/libraries/Maven__org_springframework_boot_spring_boot_starter_2_1_0_RELEASE.xml b/chapter10-5-jdbc/.idea/libraries/Maven__org_springframework_boot_spring_boot_starter_2_1_0_RELEASE.xml new file mode 100644 index 000000000..166499486 --- /dev/null +++ b/chapter10-5-jdbc/.idea/libraries/Maven__org_springframework_boot_spring_boot_starter_2_1_0_RELEASE.xml @@ -0,0 +1,13 @@ + + + + + + + + + + + + + \ No newline at end of file diff --git a/chapter10-5-jdbc/.idea/libraries/Maven__org_springframework_boot_spring_boot_starter_actuator_2_1_0_RELEASE.xml b/chapter10-5-jdbc/.idea/libraries/Maven__org_springframework_boot_spring_boot_starter_actuator_2_1_0_RELEASE.xml new file mode 100644 index 000000000..d021c38d0 --- /dev/null +++ b/chapter10-5-jdbc/.idea/libraries/Maven__org_springframework_boot_spring_boot_starter_actuator_2_1_0_RELEASE.xml @@ -0,0 +1,13 @@ + + + + + + + + + + + + + \ No newline at end of file diff --git a/chapter10-5-jdbc/.idea/libraries/Maven__org_springframework_boot_spring_boot_starter_jdbc_2_1_0_RELEASE.xml b/chapter10-5-jdbc/.idea/libraries/Maven__org_springframework_boot_spring_boot_starter_jdbc_2_1_0_RELEASE.xml new file mode 100644 index 000000000..b5de6ae5c --- /dev/null +++ b/chapter10-5-jdbc/.idea/libraries/Maven__org_springframework_boot_spring_boot_starter_jdbc_2_1_0_RELEASE.xml @@ -0,0 +1,13 @@ + + + + + + + + + + + + + \ No newline at end of file diff --git a/chapter10-5-jdbc/.idea/libraries/Maven__org_springframework_boot_spring_boot_starter_json_2_1_0_RELEASE.xml b/chapter10-5-jdbc/.idea/libraries/Maven__org_springframework_boot_spring_boot_starter_json_2_1_0_RELEASE.xml new file mode 100644 index 000000000..155a67f1c --- /dev/null +++ b/chapter10-5-jdbc/.idea/libraries/Maven__org_springframework_boot_spring_boot_starter_json_2_1_0_RELEASE.xml @@ -0,0 +1,13 @@ + + + + + + + + + + + + + \ No newline at end of file diff --git a/chapter10-5-jdbc/.idea/libraries/Maven__org_springframework_boot_spring_boot_starter_logging_2_1_0_RELEASE.xml b/chapter10-5-jdbc/.idea/libraries/Maven__org_springframework_boot_spring_boot_starter_logging_2_1_0_RELEASE.xml new file mode 100644 index 000000000..8f6248c4a --- /dev/null +++ b/chapter10-5-jdbc/.idea/libraries/Maven__org_springframework_boot_spring_boot_starter_logging_2_1_0_RELEASE.xml @@ -0,0 +1,13 @@ + + + + + + + + + + + + + \ No newline at end of file diff --git a/chapter10-5-jdbc/.idea/libraries/Maven__org_springframework_boot_spring_boot_starter_test_2_1_0_RELEASE.xml b/chapter10-5-jdbc/.idea/libraries/Maven__org_springframework_boot_spring_boot_starter_test_2_1_0_RELEASE.xml new file mode 100644 index 000000000..b6ec7bef6 --- /dev/null +++ b/chapter10-5-jdbc/.idea/libraries/Maven__org_springframework_boot_spring_boot_starter_test_2_1_0_RELEASE.xml @@ -0,0 +1,13 @@ + + + + + + + + + + + + + \ No newline at end of file diff --git a/chapter10-5-jdbc/.idea/libraries/Maven__org_springframework_boot_spring_boot_starter_tomcat_2_1_0_RELEASE.xml b/chapter10-5-jdbc/.idea/libraries/Maven__org_springframework_boot_spring_boot_starter_tomcat_2_1_0_RELEASE.xml new file mode 100644 index 000000000..5be0f81d2 --- /dev/null +++ b/chapter10-5-jdbc/.idea/libraries/Maven__org_springframework_boot_spring_boot_starter_tomcat_2_1_0_RELEASE.xml @@ -0,0 +1,13 @@ + + + + + + + + + + + + + \ No newline at end of file diff --git a/chapter10-5-jdbc/.idea/libraries/Maven__org_springframework_boot_spring_boot_starter_web_2_1_0_RELEASE.xml b/chapter10-5-jdbc/.idea/libraries/Maven__org_springframework_boot_spring_boot_starter_web_2_1_0_RELEASE.xml new file mode 100644 index 000000000..609328bba --- /dev/null +++ b/chapter10-5-jdbc/.idea/libraries/Maven__org_springframework_boot_spring_boot_starter_web_2_1_0_RELEASE.xml @@ -0,0 +1,13 @@ + + + + + + + + + + + + + \ No newline at end of file diff --git a/chapter10-5-jdbc/.idea/libraries/Maven__org_springframework_boot_spring_boot_test_2_1_0_RELEASE.xml b/chapter10-5-jdbc/.idea/libraries/Maven__org_springframework_boot_spring_boot_test_2_1_0_RELEASE.xml new file mode 100644 index 000000000..d5dcccf91 --- /dev/null +++ b/chapter10-5-jdbc/.idea/libraries/Maven__org_springframework_boot_spring_boot_test_2_1_0_RELEASE.xml @@ -0,0 +1,13 @@ + + + + + + + + + + + + + \ No newline at end of file diff --git a/chapter10-5-jdbc/.idea/libraries/Maven__org_springframework_boot_spring_boot_test_autoconfigure_2_1_0_RELEASE.xml b/chapter10-5-jdbc/.idea/libraries/Maven__org_springframework_boot_spring_boot_test_autoconfigure_2_1_0_RELEASE.xml new file mode 100644 index 000000000..f5eb1c33c --- /dev/null +++ b/chapter10-5-jdbc/.idea/libraries/Maven__org_springframework_boot_spring_boot_test_autoconfigure_2_1_0_RELEASE.xml @@ -0,0 +1,13 @@ + + + + + + + + + + + + + \ No newline at end of file diff --git a/chapter10-5-jdbc/.idea/libraries/Maven__org_springframework_cloud_spring_cloud_commons_2_1_0_RELEASE.xml b/chapter10-5-jdbc/.idea/libraries/Maven__org_springframework_cloud_spring_cloud_commons_2_1_0_RELEASE.xml new file mode 100644 index 000000000..e0f687e3c --- /dev/null +++ b/chapter10-5-jdbc/.idea/libraries/Maven__org_springframework_cloud_spring_cloud_commons_2_1_0_RELEASE.xml @@ -0,0 +1,13 @@ + + + + + + + + + + + + + \ No newline at end of file diff --git a/chapter10-5-jdbc/.idea/libraries/Maven__org_springframework_cloud_spring_cloud_config_client_2_1_0_RELEASE.xml b/chapter10-5-jdbc/.idea/libraries/Maven__org_springframework_cloud_spring_cloud_config_client_2_1_0_RELEASE.xml new file mode 100644 index 000000000..f5a331c9f --- /dev/null +++ b/chapter10-5-jdbc/.idea/libraries/Maven__org_springframework_cloud_spring_cloud_config_client_2_1_0_RELEASE.xml @@ -0,0 +1,13 @@ + + + + + + + + + + + + + \ No newline at end of file diff --git a/chapter10-5-jdbc/.idea/libraries/Maven__org_springframework_cloud_spring_cloud_config_server_2_1_0_RELEASE.xml b/chapter10-5-jdbc/.idea/libraries/Maven__org_springframework_cloud_spring_cloud_config_server_2_1_0_RELEASE.xml new file mode 100644 index 000000000..7188d5403 --- /dev/null +++ b/chapter10-5-jdbc/.idea/libraries/Maven__org_springframework_cloud_spring_cloud_config_server_2_1_0_RELEASE.xml @@ -0,0 +1,13 @@ + + + + + + + + + + + + + \ No newline at end of file diff --git a/chapter10-5-jdbc/.idea/libraries/Maven__org_springframework_cloud_spring_cloud_context_2_1_0_RELEASE.xml b/chapter10-5-jdbc/.idea/libraries/Maven__org_springframework_cloud_spring_cloud_context_2_1_0_RELEASE.xml new file mode 100644 index 000000000..1f4c06415 --- /dev/null +++ b/chapter10-5-jdbc/.idea/libraries/Maven__org_springframework_cloud_spring_cloud_context_2_1_0_RELEASE.xml @@ -0,0 +1,13 @@ + + + + + + + + + + + + + \ No newline at end of file diff --git a/chapter10-5-jdbc/.idea/libraries/Maven__org_springframework_cloud_spring_cloud_starter_2_1_0_RELEASE.xml b/chapter10-5-jdbc/.idea/libraries/Maven__org_springframework_cloud_spring_cloud_starter_2_1_0_RELEASE.xml new file mode 100644 index 000000000..346de5552 --- /dev/null +++ b/chapter10-5-jdbc/.idea/libraries/Maven__org_springframework_cloud_spring_cloud_starter_2_1_0_RELEASE.xml @@ -0,0 +1,13 @@ + + + + + + + + + + + + + \ No newline at end of file diff --git a/chapter10-5-jdbc/.idea/libraries/Maven__org_springframework_cloud_spring_cloud_starter_config_2_1_0_RELEASE.xml b/chapter10-5-jdbc/.idea/libraries/Maven__org_springframework_cloud_spring_cloud_starter_config_2_1_0_RELEASE.xml new file mode 100644 index 000000000..114208a15 --- /dev/null +++ b/chapter10-5-jdbc/.idea/libraries/Maven__org_springframework_cloud_spring_cloud_starter_config_2_1_0_RELEASE.xml @@ -0,0 +1,13 @@ + + + + + + + + + + + + + \ No newline at end of file diff --git a/chapter10-5-jdbc/.idea/libraries/Maven__org_springframework_security_spring_security_crypto_5_1_1_RELEASE.xml b/chapter10-5-jdbc/.idea/libraries/Maven__org_springframework_security_spring_security_crypto_5_1_1_RELEASE.xml new file mode 100644 index 000000000..c928419ed --- /dev/null +++ b/chapter10-5-jdbc/.idea/libraries/Maven__org_springframework_security_spring_security_crypto_5_1_1_RELEASE.xml @@ -0,0 +1,13 @@ + + + + + + + + + + + + + \ No newline at end of file diff --git a/chapter10-5-jdbc/.idea/libraries/Maven__org_springframework_security_spring_security_rsa_1_0_7_RELEASE.xml b/chapter10-5-jdbc/.idea/libraries/Maven__org_springframework_security_spring_security_rsa_1_0_7_RELEASE.xml new file mode 100644 index 000000000..dbf9b606b --- /dev/null +++ b/chapter10-5-jdbc/.idea/libraries/Maven__org_springframework_security_spring_security_rsa_1_0_7_RELEASE.xml @@ -0,0 +1,13 @@ + + + + + + + + + + + + + \ No newline at end of file diff --git a/chapter10-5-jdbc/.idea/libraries/Maven__org_springframework_spring_aop_5_1_2_RELEASE.xml b/chapter10-5-jdbc/.idea/libraries/Maven__org_springframework_spring_aop_5_1_2_RELEASE.xml new file mode 100644 index 000000000..ceaddccd8 --- /dev/null +++ b/chapter10-5-jdbc/.idea/libraries/Maven__org_springframework_spring_aop_5_1_2_RELEASE.xml @@ -0,0 +1,13 @@ + + + + + + + + + + + + + \ No newline at end of file diff --git a/chapter10-5-jdbc/.idea/libraries/Maven__org_springframework_spring_beans_5_1_2_RELEASE.xml b/chapter10-5-jdbc/.idea/libraries/Maven__org_springframework_spring_beans_5_1_2_RELEASE.xml new file mode 100644 index 000000000..d50220318 --- /dev/null +++ b/chapter10-5-jdbc/.idea/libraries/Maven__org_springframework_spring_beans_5_1_2_RELEASE.xml @@ -0,0 +1,13 @@ + + + + + + + + + + + + + \ No newline at end of file diff --git a/chapter10-5-jdbc/.idea/libraries/Maven__org_springframework_spring_context_5_1_2_RELEASE.xml b/chapter10-5-jdbc/.idea/libraries/Maven__org_springframework_spring_context_5_1_2_RELEASE.xml new file mode 100644 index 000000000..a40fb5495 --- /dev/null +++ b/chapter10-5-jdbc/.idea/libraries/Maven__org_springframework_spring_context_5_1_2_RELEASE.xml @@ -0,0 +1,13 @@ + + + + + + + + + + + + + \ No newline at end of file diff --git a/chapter10-5-jdbc/.idea/libraries/Maven__org_springframework_spring_core_5_1_2_RELEASE.xml b/chapter10-5-jdbc/.idea/libraries/Maven__org_springframework_spring_core_5_1_2_RELEASE.xml new file mode 100644 index 000000000..238bf6ef8 --- /dev/null +++ b/chapter10-5-jdbc/.idea/libraries/Maven__org_springframework_spring_core_5_1_2_RELEASE.xml @@ -0,0 +1,13 @@ + + + + + + + + + + + + + \ No newline at end of file diff --git a/chapter10-5-jdbc/.idea/libraries/Maven__org_springframework_spring_expression_5_1_2_RELEASE.xml b/chapter10-5-jdbc/.idea/libraries/Maven__org_springframework_spring_expression_5_1_2_RELEASE.xml new file mode 100644 index 000000000..2b13ac33c --- /dev/null +++ b/chapter10-5-jdbc/.idea/libraries/Maven__org_springframework_spring_expression_5_1_2_RELEASE.xml @@ -0,0 +1,13 @@ + + + + + + + + + + + + + \ No newline at end of file diff --git a/chapter10-5-jdbc/.idea/libraries/Maven__org_springframework_spring_jcl_5_1_2_RELEASE.xml b/chapter10-5-jdbc/.idea/libraries/Maven__org_springframework_spring_jcl_5_1_2_RELEASE.xml new file mode 100644 index 000000000..bb4b7179e --- /dev/null +++ b/chapter10-5-jdbc/.idea/libraries/Maven__org_springframework_spring_jcl_5_1_2_RELEASE.xml @@ -0,0 +1,13 @@ + + + + + + + + + + + + + \ No newline at end of file diff --git a/chapter10-5-jdbc/.idea/libraries/Maven__org_springframework_spring_jdbc_5_1_2_RELEASE.xml b/chapter10-5-jdbc/.idea/libraries/Maven__org_springframework_spring_jdbc_5_1_2_RELEASE.xml new file mode 100644 index 000000000..921e9b1fb --- /dev/null +++ b/chapter10-5-jdbc/.idea/libraries/Maven__org_springframework_spring_jdbc_5_1_2_RELEASE.xml @@ -0,0 +1,13 @@ + + + + + + + + + + + + + \ No newline at end of file diff --git a/chapter10-5-jdbc/.idea/libraries/Maven__org_springframework_spring_test_5_1_2_RELEASE.xml b/chapter10-5-jdbc/.idea/libraries/Maven__org_springframework_spring_test_5_1_2_RELEASE.xml new file mode 100644 index 000000000..123eeb33c --- /dev/null +++ b/chapter10-5-jdbc/.idea/libraries/Maven__org_springframework_spring_test_5_1_2_RELEASE.xml @@ -0,0 +1,13 @@ + + + + + + + + + + + + + \ No newline at end of file diff --git a/chapter10-5-jdbc/.idea/libraries/Maven__org_springframework_spring_tx_5_1_2_RELEASE.xml b/chapter10-5-jdbc/.idea/libraries/Maven__org_springframework_spring_tx_5_1_2_RELEASE.xml new file mode 100644 index 000000000..9da2b7f0a --- /dev/null +++ b/chapter10-5-jdbc/.idea/libraries/Maven__org_springframework_spring_tx_5_1_2_RELEASE.xml @@ -0,0 +1,13 @@ + + + + + + + + + + + + + \ No newline at end of file diff --git a/chapter10-5-jdbc/.idea/libraries/Maven__org_springframework_spring_web_5_1_2_RELEASE.xml b/chapter10-5-jdbc/.idea/libraries/Maven__org_springframework_spring_web_5_1_2_RELEASE.xml new file mode 100644 index 000000000..f0ca3a475 --- /dev/null +++ b/chapter10-5-jdbc/.idea/libraries/Maven__org_springframework_spring_web_5_1_2_RELEASE.xml @@ -0,0 +1,13 @@ + + + + + + + + + + + + + \ No newline at end of file diff --git a/chapter10-5-jdbc/.idea/libraries/Maven__org_springframework_spring_webmvc_5_1_2_RELEASE.xml b/chapter10-5-jdbc/.idea/libraries/Maven__org_springframework_spring_webmvc_5_1_2_RELEASE.xml new file mode 100644 index 000000000..a72e1b7c0 --- /dev/null +++ b/chapter10-5-jdbc/.idea/libraries/Maven__org_springframework_spring_webmvc_5_1_2_RELEASE.xml @@ -0,0 +1,13 @@ + + + + + + + + + + + + + \ No newline at end of file diff --git a/chapter10-5-jdbc/.idea/libraries/Maven__org_xmlunit_xmlunit_core_2_6_2.xml b/chapter10-5-jdbc/.idea/libraries/Maven__org_xmlunit_xmlunit_core_2_6_2.xml new file mode 100644 index 000000000..9f44657d1 --- /dev/null +++ b/chapter10-5-jdbc/.idea/libraries/Maven__org_xmlunit_xmlunit_core_2_6_2.xml @@ -0,0 +1,13 @@ + + + + + + + + + + + + + \ No newline at end of file diff --git a/chapter10-5-jdbc/.idea/libraries/Maven__org_yaml_snakeyaml_1_23.xml b/chapter10-5-jdbc/.idea/libraries/Maven__org_yaml_snakeyaml_1_23.xml new file mode 100644 index 000000000..7e63769b4 --- /dev/null +++ b/chapter10-5-jdbc/.idea/libraries/Maven__org_yaml_snakeyaml_1_23.xml @@ -0,0 +1,13 @@ + + + + + + + + + + + + + \ No newline at end of file diff --git a/chapter10-5-jdbc/.idea/misc.xml b/chapter10-5-jdbc/.idea/misc.xml new file mode 100644 index 000000000..ed347ab0e --- /dev/null +++ b/chapter10-5-jdbc/.idea/misc.xml @@ -0,0 +1,31 @@ + + + + + + + + + + + + + + + + Android + + + + + + + + + \ No newline at end of file diff --git a/chapter10-5-jdbc/.idea/modules.xml b/chapter10-5-jdbc/.idea/modules.xml new file mode 100644 index 000000000..222e9a2de --- /dev/null +++ b/chapter10-5-jdbc/.idea/modules.xml @@ -0,0 +1,12 @@ + + + + + + + + + + + + \ No newline at end of file diff --git a/chapter10-5-jdbc/.idea/vcs.xml b/chapter10-5-jdbc/.idea/vcs.xml new file mode 100644 index 000000000..6c0b86358 --- /dev/null +++ b/chapter10-5-jdbc/.idea/vcs.xml @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/chapter10-5-jdbc/.idea/workspace.xml b/chapter10-5-jdbc/.idea/workspace.xml new file mode 100644 index 000000000..dab6a16bc --- /dev/null +++ b/chapter10-5-jdbc/.idea/workspace.xml @@ -0,0 +1,1195 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + true + DEFINITION_ORDER + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +