-
【ZooKeeper系列】2.用Java实现ZooKeeper API的调用
【ZooKeeper系列】2.用Java实现ZooKeeper API的调用 温馨提示 :在这里我再次提个小要求,希望大家能习惯看 官方文档 ,文档虽然是英文但用词都比较简单,基本都能看懂文档表达的意思。 授之以鱼不如授之以渔 的道理相信大家都明白,也希望通过猿人谷的这个ZooKeeper系...
-
Java中的日期与时间
Java中的日期与时间 目录 日期与时间 Date DateFormat Calendar Locale @(Java 中的日期与时间) 日期与时间 最常用的几个类,Date、DateFormat、Calendar、Locale Date 1.无参构造方法 //根据当前系统默认的毫秒值创建时间对象 public Date() { this(System.currentTim...
-
springboot + springcloud +nacos实战
springboot + springcloud +nacos实战 首先从整个软件的功能和应用场景来说,nacos更像consul,而非eureka,nacos设计的时候自带的配置中心功能,让我们省下了去搞springcloud config的时间,但这里并不是说nacos或者consul比eureka优秀,只是因为eureka在分布式环境下...
2019-12-18 16:05:00 SSOgroupbuttonSwaggerforLinux下includeXMLTypeContent
-
获取线程相关信息的方法
获取线程相关信息的方法 package seday08.thread; /** * @author xingsir * 获取线程相关信息的方法 */ public class ThreadInfoDemo { public static void main(String[] args) { //主线程 Thread main=Thread.currentThread(); System.out.println(main); //线程的唯...
-
springboot 打包jar 运行找资源文件
springboot 打包jar 运行找资源文件 使用如下方式读取文件: ClassPathResource cpr = new ClassPathResource("static/ok.png"); byte[] bdata = FileCopyUtils.copyToByteArray(cpr.getInputStream());...
-
【原创】005 | 搭上SpringBoot请求处理源码分析专车
【原创】005 | 搭上SpringBoot请求处理源码分析专车 前言 如果这是你 第二次 看到师长,说明你在觊觎我的美色! 点赞+关注再看,养成习惯 没别的意思,就是需要你的窥屏^_^ 专车介绍 该趟专车是开往Spring Boot请求处理源码分析专车,主要用来分析Spring Boot是如何将我...
2019-12-18 16:04:53 控制器array扩展路由instanceofMySQanywithforeachfor
-
获取主线程Thread.currentThread()
获取主线程Thread.currentThread() package seday08.thread; /** * @author xingsir * 主线程 * 线程提供了一个静态方法这个方法会将运行这个方法的线程返回:static Thread currentThread() * 一个重要的API:ThreadLocal会使用到它。 */ public class CurrentThreadDem...
-
SpringBoot集成swagger2.0
SpringBoot集成swagger2.0 最近项目里要用到SpringBoot + swagger,查了其他小伙伴们的资料,或多或少有点问题,在此我再梳理一遍。 1、maven依赖 parent groupIdorg.springframework.boot/groupId artifactIdspring-boot-starter-parent/artifactId version2.1.10.REL...
2019-12-18 16:04:25 groupMySQanySwaggerXMLTypeConfig环境fileapp
-
JavaWeb学习——web.xml文件说明
JavaWeb学习——web.xml文件说明 JavaWeb学习web.xml文件说明 摘要:本文主要学习了web.xml文件的作用以及如果配置。 是什么 web.xml文件是用来在JavaWeb项目里面初始化配置信息的,比如:访问的首页、Servlet信息、Filter信息、Listener信息、启动信息等。 如果项目用...
-
阿里巴巴为什么能抗住90秒100亿?看完这篇你就明白了!
阿里巴巴为什么能抗住90秒100亿?看完这篇你就明白了! 作者:huashiou 链接:https://segmentfault.com/a/1190000018626163 1. 概述 本文以淘宝作为例子,介绍从一百个到千万级并发情况下服务端的架构的演进过程,同时列举出每个演进阶段会遇到的相关技术,让大家对架...
IDC资讯: 主机资讯 注册资讯 托管资讯 vps资讯 网站建设
网站运营: 建站经验 策划盈利 搜索优化 网站推广 免费资源
网络编程: Asp.Net编程 Asp编程 Php编程 Xml编程 Access Mssql Mysql 其它
服务器技术: Web服务器 Ftp服务器 Mail服务器 Dns服务器 安全防护
软件技巧: 其它软件 Word Excel Powerpoint Ghost Vista QQ空间 QQ FlashGet 迅雷
网页制作: FrontPages Dreamweaver Javascript css photoshop fireworks Flash
