Skip to content

Commit

Permalink
spring
Browse files Browse the repository at this point in the history
  • Loading branch information
netkiller committed Sep 4, 2018
1 parent 59573a6 commit e7f2a65
Show file tree
Hide file tree
Showing 32 changed files with 192 additions and 168 deletions.
Binary file added download/2018/epub/Linux-Cryptography.epub
Binary file not shown.
Binary file added download/2018/epub/Linux-Shell.epub
Binary file not shown.
2 changes: 2 additions & 0 deletions sitemap.txt
Expand Up @@ -38,6 +38,8 @@ http://www.netkiller.cn/download/2018/epub/Java-Spring.epub
http://www.netkiller.cn/download/2018/epub/Java.epub
http://www.netkiller.cn/download/2018/epub/Linux-Web.epub
http://www.netkiller.cn/download/2018/epub/Database-MySQL.epub
http://www.netkiller.cn/download/2018/epub/Linux-Cryptography.epub
http://www.netkiller.cn/download/2018/epub/Linux-Shell.epub
http://www.netkiller.cn/freebsd/ibook.epub
http://www.netkiller.cn/java/ibook.epub
http://www.netkiller.cn/mail/ibook.epub
Expand Down
12 changes: 6 additions & 6 deletions sitemap.xml
Expand Up @@ -2,37 +2,37 @@
<urlset>
<url>
<loc>http://www.netkiller.cn/download/journal/PHP高级编程之消息队列.pdf</loc>
<lastmod>2018-09-03</lastmod>
<lastmod>2018-09-04</lastmod>
<changefreq>daily</changefreq>
<priority>1.0</priority>
</url>
<url>
<loc>http://www.netkiller.cn/download/journal/PHP高级编程之守护进程.pdf</loc>
<lastmod>2018-09-03</lastmod>
<lastmod>2018-09-04</lastmod>
<changefreq>daily</changefreq>
<priority>1.0</priority>
</url>
<url>
<loc>http://www.netkiller.cn/download/journal/SSL证书卸载与SSI高级应用.pdf</loc>
<lastmod>2018-09-03</lastmod>
<lastmod>2018-09-04</lastmod>
<changefreq>daily</changefreq>
<priority>1.0</priority>
</url>
<url>
<loc>http://www.netkiller.cn/postgres/postgresql.pdf</loc>
<lastmod>2018-09-03</lastmod>
<lastmod>2018-09-04</lastmod>
<changefreq>daily</changefreq>
<priority>1.0</priority>
</url>
<url>
<loc>http://www.netkiller.cn/blockchain/whitepaper/bitcoin_cn.pdf</loc>
<lastmod>2018-09-03</lastmod>
<lastmod>2018-09-04</lastmod>
<changefreq>daily</changefreq>
<priority>1.0</priority>
</url>
<url>
<loc>http://www.netkiller.cn/blockchain/whitepaper/bitcoin_en.pdf</loc>
<lastmod>2018-09-03</lastmod>
<lastmod>2018-09-04</lastmod>
<changefreq>daily</changefreq>
<priority>1.0</priority>
</url>
Expand Down
Binary file modified sitemaps.xml.gz
Binary file not shown.
2 changes: 1 addition & 1 deletion spring/boot/email.html
Expand Up @@ -23,7 +23,7 @@
&lt;/dependency&gt;

</pre>
<div class="example"><a id="idp334"></a><p class="title"><strong>例 2.3. Spring boot with Email (pom.xml)</strong></p><div class="example-contents">
<div class="example"><a id="idp335"></a><p class="title"><strong>例 2.3. Spring boot with Email (pom.xml)</strong></p><div class="example-contents">

<pre class="programlisting">

Expand Down
6 changes: 3 additions & 3 deletions spring/boot/kafka.html
Expand Up @@ -393,7 +393,7 @@
<p>上面的例子仅仅是做了一个热身,现在我们将实现 一个完整的例子。</p>
<div class="section"><div class="titlepage"><div><div><h5 class="title"><a id="Consumer"></a>2.28.7.1. Consumer</h5></div></div></div>

<div class="example"><a id="idp336"></a><p class="title"><strong>例 2.5. Spring boot with Apache kafka.</strong></p><div class="example-contents">
<div class="example"><a id="idp337"></a><p class="title"><strong>例 2.5. Spring boot with Apache kafka.</strong></p><div class="example-contents">

<p>SpringApplication</p>
<pre class="programlisting">
Expand Down Expand Up @@ -526,7 +526,7 @@
</div>
<div class="section"><div class="titlepage"><div><div><h5 class="title"><a id="Producer"></a>2.28.7.2. Producer</h5></div></div></div>

<div class="example"><a id="idp337"></a><p class="title"><strong>例 2.6. Spring boot with Apache kafka.</strong></p><div class="example-contents">
<div class="example"><a id="idp338"></a><p class="title"><strong>例 2.6. Spring boot with Apache kafka.</strong></p><div class="example-contents">


<p>Producer configuration</p>
Expand Down Expand Up @@ -696,7 +696,7 @@
</div>
<div class="section"><div class="titlepage"><div><div><h5 class="title"><a id="test"></a>2.28.7.3. Test</h5></div></div></div>

<div class="example"><a id="idp338"></a><p class="title"><strong>例 2.7. Test Spring Kafka</strong></p><div class="example-contents">
<div class="example"><a id="idp339"></a><p class="title"><strong>例 2.7. Test Spring Kafka</strong></p><div class="example-contents">

<p>SpringBootTest</p>
<pre class="programlisting">
Expand Down
2 changes: 1 addition & 1 deletion spring/boot/oracle.html
Expand Up @@ -54,7 +54,7 @@
&lt;/dependency&gt;

</pre>
<div class="example"><a id="idp332"></a><p class="title"><strong>例 2.1. Example Spring boot with Oracle </strong></p><div class="example-contents">
<div class="example"><a id="idp333"></a><p class="title"><strong>例 2.1. Example Spring boot with Oracle </strong></p><div class="example-contents">

<pre class="programlisting">

Expand Down
2 changes: 1 addition & 1 deletion spring/boot/redis.html
Expand Up @@ -108,7 +108,7 @@
}

</pre>
<div class="example"><a id="idp333"></a><p class="title"><strong>例 2.2. RedisTemplate</strong></p><div class="example-contents">
<div class="example"><a id="idp334"></a><p class="title"><strong>例 2.2. RedisTemplate</strong></p><div class="example-contents">

<pre class="programlisting">

Expand Down
2 changes: 1 addition & 1 deletion spring/boot/velocity.html
Expand Up @@ -27,7 +27,7 @@
&lt;/dependency&gt;

</pre>
<div class="example"><a id="idp335"></a><p class="title"><strong>例 2.4. Spring boot with Velocity template (pom.xml)</strong></p><div class="example-contents">
<div class="example"><a id="idp336"></a><p class="title"><strong>例 2.4. Spring boot with Velocity template (pom.xml)</strong></p><div class="example-contents">

<pre class="programlisting">

Expand Down
12 changes: 6 additions & 6 deletions spring/cloud/cloud.faq.html
Expand Up @@ -13,7 +13,7 @@
<a xmlns="" href="/search.html">Search</a> |
<a xmlns="" href="//www.netkiller.cn/home/about.html">About</a><div class="navheader"><table width="100%" summary="Navigation header"><tr><th colspan="3" align="center">8.5. FAQ</th></tr><tr><td width="20%" align="left"><a accesskey="p" href="spring.cloud.properties.html">上一页</a> </td><th width="60%" align="center">第 8 章 Spring Cloud</th><td width="20%" align="right"> <a accesskey="n" href="../test/index.html">下一页</a></td></tr></table><hr /></div><table xmlns=""><tr><td><iframe src="//ghbtns.com/github-btn.html?user=netkiller&amp;repo=netkiller.github.io&amp;type=watch&amp;count=true&amp;size=large" height="30" width="170" frameborder="0" scrolling="0" style="width:170px; height: 30px;" allowTransparency="true"></iframe></td><td><iframe src="//ghbtns.com/github-btn.html?user=netkiller&amp;repo=netkiller.github.io&amp;type=fork&amp;count=true&amp;size=large" height="30" width="170" frameborder="0" scrolling="0" style="width:170px; height: 30px;" allowTransparency="true"></iframe></td><td><iframe src="//ghbtns.com/github-btn.html?user=netkiller&amp;type=follow&amp;count=true&amp;size=large" height="30" width="240" frameborder="0" scrolling="0" style="width:240px; height: 30px;" allowTransparency="true"></iframe></td></tr></table><div class="section"><div class="titlepage"><div><div><h3 class="title"><a id="cloud.faq"></a>8.5. FAQ</h3></div></div></div>

<div class="section"><div class="titlepage"><div><div><h4 class="title"><a id="idp319"></a>8.5.1. Feign请求超时</h4></div></div></div>
<div class="section"><div class="titlepage"><div><div><h4 class="title"><a id="idp320"></a>8.5.1. Feign请求超时</h4></div></div></div>

<pre class="programlisting">

Expand Down Expand Up @@ -147,7 +147,7 @@

</pre>
</div>
<div class="section"><div class="titlepage"><div><div><h5 class="title"><a id="idp320"></a>8.5.3.3. RestController</h5></div></div></div>
<div class="section"><div class="titlepage"><div><div><h5 class="title"><a id="idp321"></a>8.5.3.3. RestController</h5></div></div></div>

<pre class="programlisting">

Expand Down Expand Up @@ -202,7 +202,7 @@

</pre>
</div>
<div class="section"><div class="titlepage"><div><div><h5 class="title"><a id="idp321"></a>8.5.3.4. application.properties</h5></div></div></div>
<div class="section"><div class="titlepage"><div><div><h5 class="title"><a id="idp322"></a>8.5.3.4. application.properties</h5></div></div></div>

<pre class="programlisting">

Expand All @@ -212,7 +212,7 @@

</pre>
</div>
<div class="section"><div class="titlepage"><div><div><h5 class="title"><a id="idp322"></a>8.5.3.5. 测试</h5></div></div></div>
<div class="section"><div class="titlepage"><div><div><h5 class="title"><a id="idp323"></a>8.5.3.5. 测试</h5></div></div></div>

<p>首先确认客户端已经注册到 http://localhost:8761/</p>
<div><table border="0" summary="manufactured viewport for HTML img" style="cellpadding: 0; cellspacing: 0;" width="NaN"><tr><td><img src="../../images/spring/cloud/netflix/eureka-registered.png" width="NaN" /></td></tr></table></div>
Expand Down Expand Up @@ -277,7 +277,7 @@
</pre>
</div>
</div>
<div class="section"><div class="titlepage"><div><div><h4 class="title"><a id="idp323"></a>8.5.4. Feign 启动出错 PathVariable annotation was empty on param 0.</h4></div></div></div>
<div class="section"><div class="titlepage"><div><div><h4 class="title"><a id="idp324"></a>8.5.4. Feign 启动出错 PathVariable annotation was empty on param 0.</h4></div></div></div>

<p>问题分析,@PathVariable 找不到对应的参数</p>
<pre class="programlisting">
Expand Down Expand Up @@ -320,7 +320,7 @@
@EnableFeignClients("common.feign")

</pre>
<div class="example"><a id="idp341"></a><p class="title"><strong>例 8.1. Share feign interface.</strong></p><div class="example-contents">
<div class="example"><a id="idp342"></a><p class="title"><strong>例 8.1. Share feign interface.</strong></p><div class="example-contents">

<pre class="programlisting">

Expand Down
44 changes: 22 additions & 22 deletions spring/cloud/index.html

Large diffs are not rendered by default.

42 changes: 21 additions & 21 deletions spring/cloud/netflix.html
Expand Up @@ -80,7 +80,7 @@

</pre>
</div>
<div class="section"><div class="titlepage"><div><div><h5 class="title"><a id="idp298"></a>8.2.1.2. Application</h5></div></div></div>
<div class="section"><div class="titlepage"><div><div><h5 class="title"><a id="idp299"></a>8.2.1.2. Application</h5></div></div></div>

<pre class="programlisting">

Expand All @@ -102,7 +102,7 @@

</pre>
</div>
<div class="section"><div class="titlepage"><div><div><h5 class="title"><a id="idp299"></a>8.2.1.3. application.properties</h5></div></div></div>
<div class="section"><div class="titlepage"><div><div><h5 class="title"><a id="idp300"></a>8.2.1.3. application.properties</h5></div></div></div>

<pre class="programlisting">

Expand All @@ -116,14 +116,14 @@

</pre>
</div>
<div class="section"><div class="titlepage"><div><div><h5 class="title"><a id="idp300"></a>8.2.1.4. 检查注册服务器</h5></div></div></div>
<div class="section"><div class="titlepage"><div><div><h5 class="title"><a id="idp301"></a>8.2.1.4. 检查注册服务器</h5></div></div></div>

<p>http://localhost:8761</p>
<div><table border="0" summary="manufactured viewport for HTML img" style="cellpadding: 0; cellspacing: 0;" width="NaN"><tr><td><img src="../../images/spring/cloud/netflix/eureka.png" width="NaN" /></td></tr></table></div>
</div>
<div class="section"><div class="titlepage"><div><div><h5 class="title"><a id="idp305"></a>8.2.1.5. 为 Eureka Server 增加用户认证</h5></div></div></div>
<div class="section"><div class="titlepage"><div><div><h5 class="title"><a id="idp306"></a>8.2.1.5. 为 Eureka Server 增加用户认证</h5></div></div></div>

<div class="section"><div class="titlepage"><div><div><h6 class="title"><a id="idp301"></a>8.2.1.5.1. Maven</h6></div></div></div>
<div class="section"><div class="titlepage"><div><div><h6 class="title"><a id="idp302"></a>8.2.1.5.1. Maven</h6></div></div></div>

<pre class="screen">

Expand All @@ -134,21 +134,21 @@

</pre>
</div>
<div class="section"><div class="titlepage"><div><div><h6 class="title"><a id="idp302"></a>8.2.1.5.2. application.properties</h6></div></div></div>
<div class="section"><div class="titlepage"><div><div><h6 class="title"><a id="idp303"></a>8.2.1.5.2. application.properties</h6></div></div></div>

<pre class="screen">
security.user.name=eureka
security.user.password=s3cr3t
</pre>
</div>
<div class="section"><div class="titlepage"><div><div><h6 class="title"><a id="idp303"></a>8.2.1.5.3. Eureka Client</h6></div></div></div>
<div class="section"><div class="titlepage"><div><div><h6 class="title"><a id="idp304"></a>8.2.1.5.3. Eureka Client</h6></div></div></div>

<pre class="screen">
spring.application.name=restful-api-service
eureka.client.serviceUrl.defaultZone=http://eureka:s3cr3t@localhost:8761/eureka/
</pre>
</div>
<div class="section"><div class="titlepage"><div><div><h6 class="title"><a id="idp304"></a>8.2.1.5.4. Feign Client</h6></div></div></div>
<div class="section"><div class="titlepage"><div><div><h6 class="title"><a id="idp305"></a>8.2.1.5.4. Feign Client</h6></div></div></div>

<pre class="screen">
eureka.client.serviceUrl.defaultZone=http://eureka:s3cr3t@localhost:8761/eureka/
Expand Down Expand Up @@ -254,7 +254,7 @@

</pre>
</div>
<div class="section"><div class="titlepage"><div><div><h5 class="title"><a id="idp306"></a>8.2.2.3. RestController</h5></div></div></div>
<div class="section"><div class="titlepage"><div><div><h5 class="title"><a id="idp307"></a>8.2.2.3. RestController</h5></div></div></div>

<pre class="programlisting">

Expand Down Expand Up @@ -297,7 +297,7 @@

</pre>
</div>
<div class="section"><div class="titlepage"><div><div><h5 class="title"><a id="idp307"></a>8.2.2.4. application.properties</h5></div></div></div>
<div class="section"><div class="titlepage"><div><div><h5 class="title"><a id="idp308"></a>8.2.2.4. application.properties</h5></div></div></div>

<pre class="programlisting">

Expand All @@ -307,7 +307,7 @@

</pre>
</div>
<div class="section"><div class="titlepage"><div><div><h5 class="title"><a id="idp308"></a>8.2.2.5. 测试</h5></div></div></div>
<div class="section"><div class="titlepage"><div><div><h5 class="title"><a id="idp309"></a>8.2.2.5. 测试</h5></div></div></div>

<p>首先确认客户端已经注册到 http://localhost:8761/</p>
<div><table border="0" summary="manufactured viewport for HTML img" style="cellpadding: 0; cellspacing: 0;" width="NaN"><tr><td><img src="../../images/spring/cloud/netflix/eureka-registered.png" width="NaN" /></td></tr></table></div>
Expand All @@ -331,7 +331,7 @@
</div>
<div class="section"><div class="titlepage"><div><div><h4 class="title"><a id="feign.client"></a>8.2.3. Feign client</h4></div></div></div>

<div class="section"><div class="titlepage"><div><div><h5 class="title"><a id="idp309"></a>8.2.3.1. Maven</h5></div></div></div>
<div class="section"><div class="titlepage"><div><div><h5 class="title"><a id="idp310"></a>8.2.3.1. Maven</h5></div></div></div>

<pre class="programlisting">

Expand Down Expand Up @@ -393,7 +393,7 @@

</pre>
</div>
<div class="section"><div class="titlepage"><div><div><h5 class="title"><a id="idp310"></a>8.2.3.2. Application</h5></div></div></div>
<div class="section"><div class="titlepage"><div><div><h5 class="title"><a id="idp311"></a>8.2.3.2. Application</h5></div></div></div>

<pre class="programlisting">

Expand Down Expand Up @@ -428,7 +428,7 @@

</pre>
</div>
<div class="section"><div class="titlepage"><div><div><h5 class="title"><a id="idp311"></a>8.2.3.3. interface</h5></div></div></div>
<div class="section"><div class="titlepage"><div><div><h5 class="title"><a id="idp312"></a>8.2.3.3. interface</h5></div></div></div>

<pre class="programlisting">

Expand All @@ -447,7 +447,7 @@
<p>@FeignClient("test-service") 是 Eureka Client application.properties 中的 spring.application.name 配置项</p>
<p>@RequestMapping("/greeting") 是 Eureka Client RestController 中的 @RequestMapping</p>
</div>
<div class="section"><div class="titlepage"><div><div><h5 class="title"><a id="idp312"></a>8.2.3.4. application.properties</h5></div></div></div>
<div class="section"><div class="titlepage"><div><div><h5 class="title"><a id="idp313"></a>8.2.3.4. application.properties</h5></div></div></div>

<pre class="programlisting">

Expand All @@ -463,7 +463,7 @@

</pre>
</div>
<div class="section"><div class="titlepage"><div><div><h5 class="title"><a id="idp313"></a>8.2.3.5. 测试</h5></div></div></div>
<div class="section"><div class="titlepage"><div><div><h5 class="title"><a id="idp314"></a>8.2.3.5. 测试</h5></div></div></div>

<pre class="programlisting">

Expand All @@ -473,7 +473,7 @@

</pre>
</div>
<div class="section"><div class="titlepage"><div><div><h5 class="title"><a id="idp314"></a>8.2.3.6. fallback</h5></div></div></div>
<div class="section"><div class="titlepage"><div><div><h5 class="title"><a id="idp315"></a>8.2.3.6. fallback</h5></div></div></div>

<pre class="programlisting">

Expand Down Expand Up @@ -516,7 +516,7 @@
</div>
<div class="section"><div class="titlepage"><div><div><h4 class="title"><a id="zuul"></a>8.2.4. Zuul</h4></div></div></div>

<div class="section"><div class="titlepage"><div><div><h5 class="title"><a id="idp315"></a>8.2.4.1. Maven</h5></div></div></div>
<div class="section"><div class="titlepage"><div><div><h5 class="title"><a id="idp316"></a>8.2.4.1. Maven</h5></div></div></div>

<pre class="programlisting">

Expand Down Expand Up @@ -562,7 +562,7 @@

</pre>
</div>
<div class="section"><div class="titlepage"><div><div><h5 class="title"><a id="idp316"></a>8.2.4.2. EnableZuulProxy</h5></div></div></div>
<div class="section"><div class="titlepage"><div><div><h5 class="title"><a id="idp317"></a>8.2.4.2. EnableZuulProxy</h5></div></div></div>

<pre class="programlisting">

Expand All @@ -583,7 +583,7 @@

</pre>
</div>
<div class="section"><div class="titlepage"><div><div><h5 class="title"><a id="idp317"></a>8.2.4.3. application.yml</h5></div></div></div>
<div class="section"><div class="titlepage"><div><div><h5 class="title"><a id="idp318"></a>8.2.4.3. application.yml</h5></div></div></div>

<pre class="programlisting">

Expand All @@ -603,7 +603,7 @@

</pre>
</div>
<div class="section"><div class="titlepage"><div><div><h5 class="title"><a id="idp318"></a>8.2.4.4. 负载均衡配置</h5></div></div></div>
<div class="section"><div class="titlepage"><div><div><h5 class="title"><a id="idp319"></a>8.2.4.4. 负载均衡配置</h5></div></div></div>

<pre class="programlisting">

Expand Down

0 comments on commit e7f2a65

Please sign in to comment.