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

开发手机应用网站含山县建设局网站

开发手机应用网站,含山县建设局网站,长春专业网站建设,网站seo查询站长之家热部署的主要作用是在服务器运行的时候可以在不关闭服务器的情况下修改代码 可以很大的提高开发效率 热部署的步骤很简单 首先&#xff0c;需要在 pom.xml 文件中引入热部署需要的依赖 <dependency><groupId>org.springframework.boot</groupId><artif…

热部署的主要作用是在服务器运行的时候可以在不关闭服务器的情况下修改代码

可以很大的提高开发效率

热部署的步骤很简单

首先,需要在 pom.xml 文件中引入热部署需要的依赖

        <dependency><groupId>org.springframework.boot</groupId><artifactId>spring-boot-devtools</artifactId><optional>true</optional></dependency>

然后我们在每次修改代码后按 ctrl + F9 即可将代码更新

测试热部署是否生效

先启动spring boot 的 main 方法

    public static void main(String[] args) {
//        System.out.println("热部署测试");SpringApplication.run(SSMPApplication.class, args);}

然后我们将注释放开,按下 ctrl + F9,等待右下角读条结束后就会更新控制台信息:

 :: Spring Boot ::                (v2.5.4)

2024-09-23 22:18:27.534  INFO 14364 --- [  restartedMain] com.itheima.SSMPApplication              : Starting SSMPApplication using Java 17 on 大宝贝 with PID 14364 (E:\ideaItem\springboot_08_ssmp\target\classes started by 陈炫宇 in E:\ideaItem\text2)
2024-09-23 22:18:27.540  INFO 14364 --- [  restartedMain] com.itheima.SSMPApplication              : No active profile set, falling back to default profiles: default
2024-09-23 22:18:27.594  INFO 14364 --- [  restartedMain] .e.DevToolsPropertyDefaultsPostProcessor : Devtools property defaults active! Set 'spring.devtools.add-properties' to 'false' to disable
2024-09-23 22:18:27.594  INFO 14364 --- [  restartedMain] .e.DevToolsPropertyDefaultsPostProcessor : For additional web related logging consider setting the 'logging.level.web' property to 'DEBUG'
2024-09-23 22:18:28.354  INFO 14364 --- [  restartedMain] o.s.b.w.embedded.tomcat.TomcatWebServer  : Tomcat initialized with port(s): 80 (http)
2024-09-23 22:18:28.361  INFO 14364 --- [  restartedMain] o.apache.catalina.core.StandardService   : Starting service [Tomcat]
2024-09-23 22:18:28.361  INFO 14364 --- [  restartedMain] org.apache.catalina.core.StandardEngine  : Starting Servlet engine: [Apache Tomcat/9.0.52]
2024-09-23 22:18:28.408  INFO 14364 --- [  restartedMain] o.a.c.c.C.[Tomcat].[localhost].[/]       : Initializing Spring embedded WebApplicationContext
2024-09-23 22:18:28.408  INFO 14364 --- [  restartedMain] w.s.c.ServletWebServerApplicationContext : Root WebApplicationContext: initialization completed in 814 ms
2024-09-23 22:18:28.470  INFO 14364 --- [  restartedMain] c.a.d.s.b.a.DruidDataSourceAutoConfigure : Init DruidDataSource
2024-09-23 22:18:28.568  INFO 14364 --- [  restartedMain] com.alibaba.druid.pool.DruidDataSource   : {dataSource-1} inited
 _ _   |_  _ _|_. ___ _ |    _ 
| | |\/|_)(_| | |_\  |_)||_|_\ 
     /               |         
                        3.4.3 
2024-09-23 22:18:28.987  INFO 14364 --- [  restartedMain] o.s.b.d.a.OptionalLiveReloadServer       : LiveReload server is running on port 35729
2024-09-23 22:18:29.027  INFO 14364 --- [  restartedMain] o.s.b.w.embedded.tomcat.TomcatWebServer  : Tomcat started on port(s): 80 (http) with context path ''
2024-09-23 22:18:29.027  INFO 14364 --- [  restartedMain] com.itheima.SSMPApplication              : Started SSMPApplication in 1.802 seconds (JVM running for 2.395)
2024-09-23 22:18:45.718  INFO 14364 --- [       Thread-5] com.alibaba.druid.pool.DruidDataSource   : {dataSource-1} closing ...
2024-09-23 22:18:45.718  INFO 14364 --- [       Thread-5] com.alibaba.druid.pool.DruidDataSource   : {dataSource-1} closed
热部署测试

  .   ____          _            __ _ _
 /\\ / ___'_ __ _ _(_)_ __  __ _ \ \ \ \
( ( )\___ | '_ | '_| | '_ \/ _` | \ \ \ \
 \\/  ___)| |_)| | | | | || (_| |  ) ) ) )
  '  |____| .__|_| |_|_| |_\__, | / / / /
 =========|_|==============|___/=/_/_/_/
 :: Spring Boot ::                (v2.5.4)

2024-09-23 22:18:45.777  INFO 14364 --- [  restartedMain] com.itheima.SSMPApplication              : Starting SSMPApplication using Java 17 on 大宝贝 with PID 14364 (E:\ideaItem\springboot_08_ssmp\target\classes started by 陈炫宇 in E:\ideaItem\text2)
2024-09-23 22:18:45.779  INFO 14364 --- [  restartedMain] com.itheima.SSMPApplication              : No active profile set, falling back to default profiles: default
2024-09-23 22:18:45.938  INFO 14364 --- [  restartedMain] o.s.b.w.embedded.tomcat.TomcatWebServer  : Tomcat initialized with port(s): 80 (http)
2024-09-23 22:18:45.942  INFO 14364 --- [  restartedMain] o.apache.catalina.core.StandardService   : Starting service [Tomcat]
2024-09-23 22:18:45.942  INFO 14364 --- [  restartedMain] org.apache.catalina.core.StandardEngine  : Starting Servlet engine: [Apache Tomcat/9.0.52]
2024-09-23 22:18:45.966  INFO 14364 --- [  restartedMain] o.a.c.c.C.[Tomcat].[localhost].[/]       : Initializing Spring embedded WebApplicationContext
2024-09-23 22:18:45.966  INFO 14364 --- [  restartedMain] w.s.c.ServletWebServerApplicationContext : Root WebApplicationContext: initialization completed in 186 ms
2024-09-23 22:18:45.992  INFO 14364 --- [  restartedMain] c.a.d.s.b.a.DruidDataSourceAutoConfigure : Init DruidDataSource
2024-09-23 22:18:46.029  INFO 14364 --- [  restartedMain] com.alibaba.druid.pool.DruidDataSource   : {dataSource-2} inited
 _ _   |_  _ _|_. ___ _ |    _ 
| | |\/|_)(_| | |_\  |_)||_|_\ 
     /               |         
                        3.4.3 
2024-09-23 22:18:46.181  INFO 14364 --- [  restartedMain] o.s.b.d.a.OptionalLiveReloadServer       : LiveReload server is running on port 35729
2024-09-23 22:18:46.196  INFO 14364 --- [  restartedMain] o.s.b.w.embedded.tomcat.TomcatWebServer  : Tomcat started on port(s): 80 (http) with context path ''
2024-09-23 22:18:46.199  INFO 14364 --- [  restartedMain] com.itheima.SSMPApplication              : Started SSMPApplication in 0.442 seconds (JVM running for 19.555)
2024-09-23 22:18:46.201  INFO 14364 --- [  restartedMain] .ConditionEvaluationDeltaLoggingListener : Condition evaluation unchanged
2024-09-23 22:18:47.644  INFO 14364 --- [       Thread-7] com.alibaba.druid.pool.DruidDataSource   : {dataSource-2} closing ...
2024-09-23 22:18:47.647  INFO 14364 --- [       Thread-7] com.alibaba.druid.pool.DruidDataSource   : {dataSource-2} closed
热部署测试

  .   ____          _            __ _ _
 /\\ / ___'_ __ _ _(_)_ __  __ _ \ \ \ \
( ( )\___ | '_ | '_| | '_ \/ _` | \ \ \ \
 \\/  ___)| |_)| | | | | || (_| |  ) ) ) )
  '  |____| .__|_| |_|_| |_\__, | / / / /
 =========|_|==============|___/=/_/_/_/
 :: Spring Boot ::                (v2.5.4)

2024-09-23 22:18:47.693  INFO 14364 --- [  restartedMain] com.itheima.SSMPApplication              : Starting SSMPApplication using Java 17 on 大宝贝 with PID 14364 (E:\ideaItem\springboot_08_ssmp\target\classes started by 陈炫宇 in E:\ideaItem\text2)
2024-09-23 22:18:47.694  INFO 14364 --- [  restartedMain] com.itheima.SSMPApplication              : No active profile set, falling back to default profiles: default
2024-09-23 22:18:47.870  INFO 14364 --- [  restartedMain] o.s.b.w.embedded.tomcat.TomcatWebServer  : Tomcat initialized with port(s): 80 (http)
2024-09-23 22:18:47.870  INFO 14364 --- [  restartedMain] o.apache.catalina.core.StandardService   : Starting service [Tomcat]
2024-09-23 22:18:47.873  INFO 14364 --- [  restartedMain] org.apache.catalina.core.StandardEngine  : Starting Servlet engine: [Apache Tomcat/9.0.52]
2024-09-23 22:18:47.887  INFO 14364 --- [  restartedMain] o.a.c.c.C.[Tomcat].[localhost].[/]       : Initializing Spring embedded WebApplicationContext
2024-09-23 22:18:47.887  INFO 14364 --- [  restartedMain] w.s.c.ServletWebServerApplicationContext : Root WebApplicationContext: initialization completed in 192 ms
2024-09-23 22:18:47.900  INFO 14364 --- [  restartedMain] c.a.d.s.b.a.DruidDataSourceAutoConfigure : Init DruidDataSource
2024-09-23 22:18:47.926  INFO 14364 --- [  restartedMain] com.alibaba.druid.pool.DruidDataSource   : {dataSource-3} inited
 _ _   |_  _ _|_. ___ _ |    _ 
| | |\/|_)(_| | |_\  |_)||_|_\ 
     /               |         
                        3.4.3 
2024-09-23 22:18:48.029  INFO 14364 --- [  restartedMain] o.s.b.d.a.OptionalLiveReloadServer       : LiveReload server is running on port 35729
2024-09-23 22:18:48.039  INFO 14364 --- [  restartedMain] o.s.b.w.embedded.tomcat.TomcatWebServer  : Tomcat started on port(s): 80 (http) with context path ''
2024-09-23 22:18:48.044  INFO 14364 --- [  restartedMain] com.itheima.SSMPApplication              : Started SSMPApplication in 0.371 seconds (JVM running for 21.4)
2024-09-23 22:18:48.044  INFO 14364 --- [  restartedMain] .ConditionEvaluationDeltaLoggingListener : Condition evaluation unchanged
 

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

相关文章:

  • 大型视频网站开发人力资源外包公司
  • 大同网站建设站建设网站建设源代码交付
  • 石家庄网站制作工具wordpress中等大小
  • 江西赣州网站怎么建设个网站网站
  • 有没有帮忙做推广的网站网站开发网络
  • 专门做销售招聘网站一个网站要怎么做的
  • 都有哪些js素材网站注册网站英语怎么说
  • 网站3级营销是怎么做的太原网站建设杰迅
  • 阳光梦网站建设黄页88平台效果怎么样
  • 做美足网站违法吗彩票网站怎么做代理
  • 三部曲网站建设山东省住房和城乡建设部网站首页
  • 官方网站投诉平台南通公司注册
  • 邯郸网站建设效果好宠物之家网站开发
  • php完整网站开发源码适合个人做的网站有哪些东西
  • 微信营销的10种方法技巧廊坊优化网站排名
  • 分布式网站开发大同市网站建设
  • 苏州网站建设 苏州网络推广专家网站不能调用样式
  • 网站建设 岗位职责庆安建设局网站
  • 网站开发提案台前网站建设
  • 新乡手机网站建设电话平面设计软件下载官方网站
  • 网站闭站保护高密市赏旋网站设计有限公司
  • 西宁高端网站开发公司万峰科技.jsp网站开发四酷全书[m]
  • 网站从建设到上线流程图龙岗这边哪里有教做网站的
  • 合肥网站wordpress获取tag第一篇文章
  • 建站之星怎么收费wordpress如何获取视频封面
  • 智能响应式网站建设四川省建设厅证件查询
  • 制作h5的免费软件网站建设优化公司
  • 分享站wordpress主题国内wordpress模板
  • 兼职做ppt是哪个网站创业做软件还是做网站
  • 旅游网站建设成本核算html5网站有点