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

网站做反向代理后样式加载错误上海网站推广价格

网站做反向代理后样式加载错误,上海网站推广价格,网站建站需求,物联网设计大赛官网这里写目录标题 1 介绍2 使用2.1 开启 hook2.2 禁用 hook 3 手动指定 hook 1 介绍 SpringBoot 如果需要使用hook则需要开启spring.main.register-shutdown-hooktrue(默认为true) 如果使用kill -9则不会出发JVM的hook#xff0c;kill可以正常触发hook server:port: 8080shutd… 这里写目录标题 1 介绍2 使用2.1 开启 hook2.2 禁用 hook 3 手动指定 hook 1 介绍 SpringBoot 如果需要使用hook则需要开启spring.main.register-shutdown-hooktrue(默认为true) 如果使用kill -9则不会出发JVM的hookkill可以正常触发hook server:port: 8080shutdown: IMMEDIATE #GRACEFUL/IMMEDIATE (默认IMMEDIATE)spring:main:register-shutdown-hook: true #默认ture2 使用 package com.example.java.test;import jakarta.annotation.PreDestroy; import org.springframework.stereotype.Component;/*** author hyacinth* date 2023/10/13 23:07* desc: 测试* title: Test* package com.example.java.test*/ Component public class Test {PreDestroypublic void destroy() {System.out.println(销毁);}public Test() {System.out.println(创建);}} 2.1 开启 hook 如果spring.main.register-shutdown-hooktrue . ____ _ __ _ _/\\ / ____ __ _ _(_)_ __ __ _ \ \ \ \ ( ( )\___ | _ | _| | _ \/ _ | \ \ \ \\\/ ___)| |_)| | | | | || (_| | ) ) ) ) |____| .__|_| |_|_| |_\__, | / / / /|_||___//_/_/_/:: Spring Boot :: (v3.1.4)2023-10-13T23:11:26.80108:00 INFO 18244 --- [ restartedMain] com.example.java.JavaApplication : Starting JavaApplication using Java 21 with PID 18244 (D:\SourceCode\Intellij\java\target\classes started by xuhya in D:\SourceCode\Intellij\java) 2023-10-13T23:11:26.80508:00 INFO 18244 --- [ restartedMain] com.example.java.JavaApplication : No active profile set, falling back to 1 default profile: default 2023-10-13T23:11:26.91608:00 INFO 18244 --- [ restartedMain] .e.DevToolsPropertyDefaultsPostProcessor : Devtools property defaults active! Set spring.devtools.add-properties to false to disable 2023-10-13T23:11:26.91608:00 INFO 18244 --- [ restartedMain] .e.DevToolsPropertyDefaultsPostProcessor : For additional web related logging consider setting the logging.level.web property to DEBUG 2023-10-13T23:11:28.59408:00 INFO 18244 --- [ restartedMain] o.s.b.w.embedded.tomcat.TomcatWebServer : Tomcat initialized with port(s): 8080 (http) 2023-10-13T23:11:28.62208:00 INFO 18244 --- [ restartedMain] o.apache.catalina.core.StandardService : Starting service [Tomcat] 2023-10-13T23:11:28.62308:00 INFO 18244 --- [ restartedMain] o.apache.catalina.core.StandardEngine : Starting Servlet engine: [Apache Tomcat/10.1.13] 2023-10-13T23:11:28.69608:00 INFO 18244 --- [ restartedMain] o.a.c.c.C.[Tomcat].[localhost].[/] : Initializing Spring embedded WebApplicationContext 2023-10-13T23:11:28.69708:00 INFO 18244 --- [ restartedMain] w.s.c.ServletWebServerApplicationContext : Root WebApplicationContext: initialization completed in 1779 ms 创建 2023-10-13T23:11:29.30808:00 INFO 18244 --- [ restartedMain] o.s.b.d.a.OptionalLiveReloadServer : LiveReload server is running on port 35729 2023-10-13T23:11:29.38608:00 INFO 18244 --- [ restartedMain] o.s.b.w.embedded.tomcat.TomcatWebServer : Tomcat started on port(s): 8080 (http) with context path 2023-10-13T23:11:29.40308:00 INFO 18244 --- [ restartedMain] com.example.java.JavaApplication : Started JavaApplication in 3.274 seconds (process running for 3.915) 销毁Process finished with exit code 130 2.2 禁用 hook 如果spring.main.register-shutdown-hookfalse 如果spring.main.register-shutdown-hooktruejava. ____ _ __ _ _/\\ / ____ __ _ _(_)_ __ __ _ \ \ \ \ ( ( )\___ | _ | _| | _ \/ _ | \ \ \ \\\/ ___)| |_)| | | | | || (_| | ) ) ) ) |____| .__|_| |_|_| |_\__, | / / / /|_||___//_/_/_/:: Spring Boot :: (v3.1.4)2023-10-13T23:11:26.80108:00 INFO 18244 --- [ restartedMain] com.example.java.JavaApplication : Starting JavaApplication using Java 21 with PID 18244 (D:\SourceCode\Intellij\java\target\classes started by xuhya in D:\SourceCode\Intellij\java) 2023-10-13T23:11:26.80508:00 INFO 18244 --- [ restartedMain] com.example.java.JavaApplication : No active profile set, falling back to 1 default profile: default 2023-10-13T23:11:26.91608:00 INFO 18244 --- [ restartedMain] .e.DevToolsPropertyDefaultsPostProcessor : Devtools property defaults active! Set spring.devtools.add-properties to false to disable 2023-10-13T23:11:26.91608:00 INFO 18244 --- [ restartedMain] .e.DevToolsPropertyDefaultsPostProcessor : For additional web related logging consider setting the logging.level.web property to DEBUG 2023-10-13T23:11:28.59408:00 INFO 18244 --- [ restartedMain] o.s.b.w.embedded.tomcat.TomcatWebServer : Tomcat initialized with port(s): 8080 (http) 2023-10-13T23:11:28.62208:00 INFO 18244 --- [ restartedMain] o.apache.catalina.core.StandardService : Starting service [Tomcat] 2023-10-13T23:11:28.62308:00 INFO 18244 --- [ restartedMain] o.apache.catalina.core.StandardEngine : Starting Servlet engine: [Apache Tomcat/10.1.13] 2023-10-13T23:11:28.69608:00 INFO 18244 --- [ restartedMain] o.a.c.c.C.[Tomcat].[localhost].[/] : Initializing Spring embedded WebApplicationContext 2023-10-13T23:11:28.69708:00 INFO 18244 --- [ restartedMain] w.s.c.ServletWebServerApplicationContext : Root WebApplicationContext: initialization completed in 1779 ms 创建 2023-10-13T23:11:29.30808:00 INFO 18244 --- [ restartedMain] o.s.b.d.a.OptionalLiveReloadServer : LiveReload server is running on port 35729 2023-10-13T23:11:29.38608:00 INFO 18244 --- [ restartedMain] o.s.b.w.embedded.tomcat.TomcatWebServer : Tomcat started on port(s): 8080 (http) with context path 2023-10-13T23:11:29.40308:00 INFO 18244 --- [ restartedMain] com.example.java.JavaApplication : Started JavaApplication in 3.274 seconds (process running for 3.915)Process finished with exit code 130 3 手动指定 hook package com.example.java;import org.springframework.boot.SpringApplication; import org.springframework.boot.autoconfigure.SpringBootApplication;SpringBootApplication public class JavaApplication {public static void main(String[] args) {SpringApplication.run(JavaApplication.class, args);Runtime.getRuntime().addShutdownHook(new Thread(() - {System.out.println(服务已停止);}));}}. ____ _ __ _ _/\\ / ____ __ _ _(_)_ __ __ _ \ \ \ \ ( ( )\___ | _ | _| | _ \/ _ | \ \ \ \\\/ ___)| |_)| | | | | || (_| | ) ) ) ) |____| .__|_| |_|_| |_\__, | / / / /|_||___//_/_/_/:: Spring Boot :: (v3.1.4)2023-10-13T23:15:08.66708:00 INFO 16108 --- [ restartedMain] com.example.java.JavaApplication : Starting JavaApplication using Java 21 with PID 16108 (D:\SourceCode\Intellij\java\target\classes started by xuhya in D:\SourceCode\Intellij\java) 2023-10-13T23:15:08.67108:00 INFO 16108 --- [ restartedMain] com.example.java.JavaApplication : No active profile set, falling back to 1 default profile: default 2023-10-13T23:15:08.75208:00 INFO 16108 --- [ restartedMain] .e.DevToolsPropertyDefaultsPostProcessor : Devtools property defaults active! Set spring.devtools.add-properties to false to disable 2023-10-13T23:15:08.75208:00 INFO 16108 --- [ restartedMain] .e.DevToolsPropertyDefaultsPostProcessor : For additional web related logging consider setting the logging.level.web property to DEBUG 2023-10-13T23:15:10.31408:00 INFO 16108 --- [ restartedMain] o.s.b.w.embedded.tomcat.TomcatWebServer : Tomcat initialized with port(s): 8080 (http) 2023-10-13T23:15:10.33508:00 INFO 16108 --- [ restartedMain] o.apache.catalina.core.StandardService : Starting service [Tomcat] 2023-10-13T23:15:10.33508:00 INFO 16108 --- [ restartedMain] o.apache.catalina.core.StandardEngine : Starting Servlet engine: [Apache Tomcat/10.1.13] 2023-10-13T23:15:10.40208:00 INFO 16108 --- [ restartedMain] o.a.c.c.C.[Tomcat].[localhost].[/] : Initializing Spring embedded WebApplicationContext 2023-10-13T23:15:10.40308:00 INFO 16108 --- [ restartedMain] w.s.c.ServletWebServerApplicationContext : Root WebApplicationContext: initialization completed in 1649 ms 创建 2023-10-13T23:15:10.91408:00 INFO 16108 --- [ restartedMain] o.s.b.d.a.OptionalLiveReloadServer : LiveReload server is running on port 35729 2023-10-13T23:15:10.99608:00 INFO 16108 --- [ restartedMain] o.s.b.w.embedded.tomcat.TomcatWebServer : Tomcat started on port(s): 8080 (http) with context path 2023-10-13T23:15:11.01508:00 INFO 16108 --- [ restartedMain] com.example.java.JavaApplication : Started JavaApplication in 3.038 seconds (process running for 3.626) 服务已停止
http://www.w-s-a.com/news/928644/

相关文章:

  • 合肥建站公司有哪家招聘的拼车平台网站开发
  • 网站 备案 固话北京建站模板企业
  • 网站开发的公司wordpress分类目录 模版
  • flashfxp怎么上传对应网站空间wordpress无法创建
  • 建设网站案例分析做网站代理怎么赚钱
  • 唯品会网站建设特色域名备案期间 网站访问
  • 郑东新区建设局网站怎么做万网网站
  • 阿里云上传的网站 服务器路径试用网站开发
  • 做美食原创视频网站网站开发要多钱
  • 怎么做网站作业哪个网站可兼职做logo
  • asp网站搭建教程做网站备案完成之后需要干什么
  • 无锡外贸网站开发兰州网站在哪备案
  • 广州百度网站建设公司天津建设电工证查询网站
  • 网站建设与管理行业发展情况制作网页动态效果
  • wordpress 特色缩略图临沂seo全网营销
  • 隆昌市住房和城乡建设厅网站做网站用什么字体比较好
  • 惠州网站建设设计18款未成年禁用软件ap入口
  • 班级网站 建设目标如何做好网站建设内容的策划书
  • 网站建设与网页设计期末考试清博舆情系统
  • plone网站开发商城网站建设怎么收费
  • 旺旺号查询网站怎么做公司门户网站项目模版
  • 网站免费一站二站四站上海网站怎么备案表
  • 漫画交流网站怎么做开发微信小程序公司
  • 网站建设马鞍山怎么建立局域网网站
  • 开源 网站开发框架哪些网站可以做图片链接
  • 大良制作网站网站设计的能力要求
  • 前端设计除了做网站还能做什么江苏高校品牌专业建设工程网站
  • 做二手房产网站多少钱用户权限配置wordpress
  • 做亚马逊网站需要租办公室吗小型企业网站模板
  • 网站全屏视频怎么做个人公司注册网上申请