自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(10)
  • 资源 (1)
  • 收藏
  • 关注

原创 用JMX监控Tomcat运行时状态

tomcat开启JMX参数-Dfile.encoding=UTF-8-Djava.rmi.server.hostname=127.0.0.1-Dcom.sun.management.jmxremote-Dcom.sun.management.jmxremote.port=9999-Dcom.sun.management.jmxremote.ssl=“false”-Dcom.sun.management.jmxremote.authenticate=“false”package com.mmal

2020-11-16 09:09:19 227

原创 用JMX监控Weblogic 运行时状态

这里写自定义目录标题JMX提供开放和可扩展管理服务的规范。WebLogic Server添加了自己的方法和拓展。所有WebLogic Server资源和跑在其上的第三方服务和应用,都被一个基于JMX的服务管理。WebLogicServer提供了一系列MBean,可以使用这些MBean来配置、监控和管理WebLogic服务器资源。Runtime MBeans 包含有关服务器及其资源的运行时状态的信息。Configuration MBeans包含有关服务器和资源配置的信息。Runtime MBean

2020-10-28 23:50:47 974

原创 ArrayList笔记

import java.util.*;import java.util.function.Consumer;import java.util.function.Predicate;import java.util.function.UnaryOperator;import sun.misc.SharedSecrets;public class ArrayList<E> e...

2019-10-28 21:43:07 121

原创 spring MVC笔记

当在配置文件中加上mvc:annotation-driven/后,Spring会默认为我们注册RequestMappingHandlerMapping等Bean定义。而RequestMappingHandlerMapping实现了InitializingBean接口,因此,在初始化并装配该Bean实例时,会执行他的afterPropertySet方法(调父类的init方法)。扫描所有注册的Be...

2019-10-18 15:16:44 115

原创 bean创建流程中的拓展点BeanPostProcessors和循环依赖

ContextLoaderListener 实现ServletContextListener 接口,servlet容器启动后执行contextInitialized方法>ContextLoader .initWebApplicationContext()>ContextLoader .configureAndRefreshWebApplicationContext()>Abstr...

2019-10-18 14:12:32 267

原创 ClassFileAssembler生成魔数

class ClassFileAssembler implements ClassFileConstants { public void emitMagicAndVersion() { this.emitInt(-889275714); this.emitShort((short) 0); this.emitShort((short) 49); } public void e...

2019-07-25 10:42:38 248

原创 django rest-framework里的限流处理

限流的逻辑主要在throttling.py的SimpleRateThrottle类中的allow_request方法里。class SimpleRateThrottle(BaseThrottle): #当前时间戳 timer = time.time def __init__(self): if not getattr(self, 'rate', None):...

2018-12-28 16:57:59 346

原创 django rest-framework里的异常处理上下文

django rest-framework里的异常处理在rest-framework里的认证过程中:class APIView(View): def perform_authentication(self, request): request.userclass Request(object): @property def user(self): ...

2018-10-24 09:26:20 593

原创 Flask.源码.blueprints.py

该模块实现了Flask的蓝图,最主要的是定义了BlueprintSetupState和Blueprint类,实现了和路由相关的一些方法,但实质都是调用的app.py中Flask类中的方法。class BlueprintSetupState(object): def add_url_rule(self, rule, endpoint=None, view_func=None, **o...

2018-07-28 15:50:06 221

原创 Flask.源码.globals.py

Flask中的四个全局变量在这里定义。def _lookup_req_object(name): top = _request_ctx_stack.top #这里其实是调用LocalStack对象的top方法 if top is None: #这里top的值实际是一个RequestContext对象 或 None raise RuntimeError...

2018-07-28 11:28:09 506

spring-1.0-rc1.zip

初代源码体积小,更好阅读

2019-09-20

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除