当前位置: 首页 > news >正文

网站备案 取名资讯通不过揭阳自助建站软件

网站备案 取名资讯通不过,揭阳自助建站软件,wordpress 伪静态链接,如何查看网站服务器SpringApplication的run方法包含如下代码: 其中调用的refreshContext代码如下: 其中调用的refresh方法片段如下: 其中调用的refresh方法代码如下: 其中调用的super.refresh方法代码如下: public void refresh() th…

SpringApplication的run方法包含如下代码:
在这里插入图片描述
其中调用的refreshContext代码如下:
在这里插入图片描述
其中调用的refresh方法片段如下:
在这里插入图片描述
其中调用的refresh方法代码如下:
在这里插入图片描述
其中调用的super.refresh方法代码如下:

	public void refresh() throws BeansException, IllegalStateException {synchronized (this.startupShutdownMonitor) {StartupStep contextRefresh = this.applicationStartup.start("spring.context.refresh");// Prepare this context for refreshing.prepareRefresh();// Tell the subclass to refresh the internal bean factory.ConfigurableListableBeanFactory beanFactory = obtainFreshBeanFactory();// Prepare the bean factory for use in this context.prepareBeanFactory(beanFactory);try {// Allows post-processing of the bean factory in context subclasses.postProcessBeanFactory(beanFactory);StartupStep beanPostProcess = this.applicationStartup.start("spring.context.beans.post-process");// Invoke factory processors registered as beans in the context.invokeBeanFactoryPostProcessors(beanFactory);// Register bean processors that intercept bean creation.registerBeanPostProcessors(beanFactory);beanPostProcess.end();// Initialize message source for this context.initMessageSource();// Initialize event multicaster for this context.initApplicationEventMulticaster();// Initialize other special beans in specific context subclasses.onRefresh();// Check for listener beans and register them.registerListeners();// Instantiate all remaining (non-lazy-init) singletons.finishBeanFactoryInitialization(beanFactory);// Last step: publish corresponding event.finishRefresh();}catch (BeansException ex) {if (logger.isWarnEnabled()) {logger.warn("Exception encountered during context initialization - " +"cancelling refresh attempt: " + ex);}// Destroy already created singletons to avoid dangling resources.destroyBeans();// Reset 'active' flag.cancelRefresh(ex);// Propagate exception to caller.throw ex;}finally {// Reset common introspection caches in Spring's core, since we// might not ever need metadata for singleton beans anymore...resetCommonCaches();contextRefresh.end();}}}

其中调用了onRefresh方法:
在这里插入图片描述
进入

ServletWebServerApplicationContext的onRefresh方法:
在这里插入图片描述
createWebServer代码如下:
在这里插入图片描述
其中调用的TomcatServletWebServerFactory的getWebServer代码如下:
在这里插入图片描述
其中调用的getTomcatWebServer的代码如下:
在这里插入图片描述
其中调用的构造方法如下:
在这里插入图片描述
其中调用的initialize方法代码如下:

	private void initialize() throws WebServerException {logger.info("Tomcat initialized with port(s): " + getPortsDescription(false));synchronized (this.monitor) {try {addInstanceIdToEngineName();Context context = findContext();context.addLifecycleListener((event) -> {if (context.equals(event.getSource()) && Lifecycle.START_EVENT.equals(event.getType())) {// Remove service connectors so that protocol binding doesn't// happen when the service is started.removeServiceConnectors();}});// Start the server to trigger initialization listenersthis.tomcat.start();// We can re-throw failure exception directly in the main threadrethrowDeferredStartupExceptions();try {ContextBindings.bindClassLoader(context, context.getNamingToken(), getClass().getClassLoader());}catch (NamingException ex) {// Naming is not enabled. Continue}// Unlike Jetty, all Tomcat threads are daemon threads. We create a// blocking non-daemon to stop immediate shutdownstartDaemonAwaitThread();}catch (Exception ex) {stopSilently();destroySilently();throw new WebServerException("Unable to start embedded Tomcat", ex);}}}

其中可以看到启动tomcat的代码:
在这里插入图片描述

http://www.yayakq.cn/news/91335/

相关文章:

  • 网站支付功能报价长沙做一个网站多少钱
  • 做标书需要用到哪些网站查资料吉安工商注册官方网站
  • 谷歌网站怎么做外链门户网站开发请示
  • 河南省住房和城乡建设厅投诉网站引流推广广告怎么写
  • 做外贸经常用的网站插科打诨WordPress主题
  • 建设网站平台滴滴车html5制作手机端页面
  • 家居seo整站优化方案wordpress 添加按钮
  • 网站优化建设苏州未来网站发展方向
  • 我要找人做网站的主页合肥建设网网站
  • 湖北省城乡建设厅网站首页直接拖拉做网站的软件
  • 惠州做网站的公司小程序定制外包
  • html购物网站上饶网站建设推广
  • 有了域名怎样做淘客网站厦门市海沧区建设局网站
  • 普陀网站开发培训学校免费合同模板网站
  • 奎屯建设局网站湖南pc网站建设费用
  • 池州网站建设公司oa系统官网
  • 使用flask做前后端分离的网站网站建设中端口号的作用是什么意思
  • 山东网站建设SEO优化制作设计公司企业网站的建设目的是什么
  • 公司网站的搭建方案提升网站转化率
  • 免费刷推广链接的网站wordpress有几张表
  • 怎么用dw建设自己的网站it外包人员最后什么下场
  • 用织梦做网站有钱途吗如何建设企业网站ppt
  • 用户体验设计的重要性seo排名优化厂家
  • 宁夏成城建设集团网站php网站开发说明
  • 黑红网站模板长沙做网站推广公司咨询
  • 网站二维码弹窗近三天发生的大事
  • 沈阳住房和城乡建设厅网站北京公司网站建设定制
  • 网站域名需icp备案sns社区网站开发
  • 合肥大型网站设计免费网址生成app
  • 微能力者恶魔网站谁做的电子商务概念