Techone's Blog

热爱生活 憧憬未来


  • 首页

  • 关于

  • 标签

  • 分类

  • 归档

  • 公益404

  • 搜索

SpringBoot 添加多个servlet

发表于 2019-01-05 | 分类于 Java
springboot 添加多个servlet参考问题链接 除了网上可以搜到的几种方法外,还可以实现ServletContextInitializer接口(spring下实现WebApplicationInitializer接口,springboot 内嵌tomcat时实现WebApplication ...
阅读全文 »

RestTemplate get请求附加头信息

发表于 2018-12-23 | 分类于 Java
###RestTemplate get请求附加头信息 Eureka的server端想要获取所有注册instance的信息,要通过Eureka提供的rest接口 “http://server地址/eureka/apps" 来获取,但是通过接口返回的是xml信息,如果想要返回json格式,要 ...
阅读全文 »

Netty 解决消息被截断问题

发表于 2018-12-23 | 分类于 Java
Netty 解决消息被截断问题netty默认发送的长度为1024,超过这个长度的数据会被拆分成多个包发送,为了解决这个问题,netty提供了多个解码编码器供我们使用,这里使用LineBasedFrameDecoder。 首先看server端增加的配置: 12345678910111213141516 ...
阅读全文 »

SpringBoot 2.0 Http重定向到Https

发表于 2018-12-16 | 分类于 Java
SpringBoot 2.0 Http重定向到Https根据《SpringBoot实战》操作~1、生成证书cd 到JDK目录下的bin文件夹命令:keytools -genkey alias tomcat问题:这里需要指定-keyalg RSA,不然会出现ERR_SSL_VERSION_OR_CIP ...
阅读全文 »

【Leetcode33】Search in Rotated Sorted Array 搜索旋转排序数组

发表于 2018-10-21 | 分类于 LeetCode
[Leetcode33] Search in Rotated Sorted Array 搜索旋转排序数组“The Linux philosophy is “Laugh in the face of danger”.Oops.Wrong One. “Do it yourself”. Yes, that ...
阅读全文 »

Java 8 stream 简单使用

发表于 2018-10-15 | 分类于 Java
Java 8 stream简单使用“The Linux philosophy is “Laugh in the face of danger”.Oops.Wrong One. “Do it yourself”. Yes, that”s it.”Linux的哲学就是“在危险面前放声大笑”,呵呵,不是这 ...
阅读全文 »

【Leetcode47】Permutations II 全排列 II

发表于 2018-10-14 | 分类于 LeetCode
[Leetcode47] Permutations II 全排列 II“The Linux philosophy is “Laugh in the face of danger”.Oops.Wrong One. “Do it yourself”. Yes, that”s it.”Linux的哲学就是 ...
阅读全文 »

【Leetcode14】Longest Common Prefix 最长公共前缀

发表于 2018-10-14 | 分类于 LeetCode
[Leetcode14] Longest Common Prefix 最长公共前缀“The Linux philosophy is “Laugh in the face of danger”.Oops.Wrong One. “Do it yourself”. Yes, that”s it.”Linu ...
阅读全文 »

【Leetcode20】Longest Valid Parentheses 有效的括号

发表于 2018-10-14 | 分类于 LeetCode
[Leetcode20] Valid Parentheses 有效的括号“The Linux philosophy is “Laugh in the face of danger”.Oops.Wrong One. “Do it yourself”. Yes, that”s it.”Linux的哲学就 ...
阅读全文 »

【Leetcode25】Reverse Nodes in k-Group k个一组翻转链表

发表于 2018-10-14 | 分类于 LeetCode
[Leetcode25] Reverse Nodes in k-Group k个一组翻转链表“The Linux philosophy is “Laugh in the face of danger”.Oops.Wrong One. “Do it yourself”. Yes, that”s it ...
阅读全文 »
12…8
Techone

Techone

73 日志
5 分类
14 标签
GitHub 微博 E-Mail Google
© 2019 Techone
由 Hexo 强力驱动
|
主题 — NexT.Gemini v5.1.4