首页 > 其他分享 >微服务、springboot热部署

微服务、springboot热部署

时间:2024-01-19 11:34:00浏览次数:21  
标签:服务 springboot Settings 部署 快捷键 编译 Build

添加热部署依赖,如果项目中已有就不用加了

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

 

1.依次打开工具栏

File -> Settings -> Default Settings -> Build -> Compiler

开启自动编译:Build project automatically

 

2.开启idea的自动编译

快捷进入:Ctrl+Shift+A 或者Alt 

搜索:Registry

 

勾选允许自动编译

 

3.启动类配置

Update classes and resources:运行按钮就更新

Do nothing:检测到改变就更新

 

4.热部署

热部署编译快捷键Crl + Shift + F9

非快捷键编译

编译该项目模块

 

编译指定类

 

亲测有效,适用于springboot和微服务项目中

标签:服务,springboot,Settings,部署,快捷键,编译,Build
From: https://www.cnblogs.com/ckfeng/p/17974271

相关文章

  • 阿里云rds云数据恢复至自建数据库 (linux 服务器版本ubuntu22.04)
    一、准备1.安装mysql5.7注意:需要跟rds云数据库版本对应2.安装PerconaXtraBackup工具,将解压后的备份文件恢复到自建数据库的数据目录中3.下载需要还原的物理备份文件我的是.qp类型wget-c'https://****.bak.rds.aliyuncs.com/****_xb.qp?****'-Oins2......
  • 基于 SpringBoot + magic-api + Vue3 + Element Plus + amis3.0 快速开发管理系统
    Tansci-Boot基于SpringBoot2+magic-api+Vue3+ElementPlus+amis3.0快速开发管理系统Tansci-Boot是一个前后端分离后台管理系统,前端集成amis低代码前端框架,后端集成magic-api的接口快速开发框架。包含基础权限、安全认证、以及常用的一些组件功能。项目......
  • docker 部署prometheus监控+Grafana
    yum-yinstallyum-utilsdevice-mapper-persistent-datalvm2安装docker或者使用containerd自行安装,使用containerd把docker命令换成对应的containerd的命令[root@Docker~]#dockerpullprom/prometheus[root@Docker~]#dockerrun--nameprometheus-d-p9090:9090--......
  • 如何修改RuoYi部署应用路径
    Linux上使用Nginx部署多个多个应用:https://blog.csdn.net/ManGooo0/article/details/124594170?ops_request_misc=%257B%2522request%255Fid%2522%253A%2522170563325316800184154554%2522%252C%2522scm%2522%253A%252220140713.130102334.pc%255Fall.%2522%257D&request_id=17056......
  • openEuler欧拉部署Redis
    一、系统优化关闭防火墙systemctlstopfirewalldsystemctldisablefirewalld关闭selinuxsed-ri's/SELINUX=enforcing/SELINUX=disabled/'/etc/selinux/configsetenforce0二、安装Redisdnf-yinstallredisvim/etc/redis.conf#bind127.0.0.1bind0.0.0.0protected-mo......
  • openEuler欧拉部署Jenkins
    一、系统优化关闭防火墙systemctlstopfirewalldsystemctldisablefirewalld二、安装Jenkinsdnf-yinstalldockerdockersearchjenkinsdockerpulljenkins/jenkinsmkdir-p/home/jenkinsdockerrun-d--namejenkins-uroot-p8080:8080-p50000:50000-v/home/jen......
  • openEuler欧拉部署Harbor
    一、系统优化关闭防火墙systemctlstopfirewalldsystemctldisablefirewalld二、安装Harborwgethttps://github.com/goharbor/harbor/releases/download/v2.8.1/harbor-offline-installer-v2.8.1.tgztarxvfharbor-offline-installer-v2.8.1.tgzdf-hmvharbor//homecd......
  • gitlab账号密码忘记(docker部署)
    1.进入容器dockerexec-itgitlabexec 2.修改密码sugitgitlab-railsconsole-eproduction//可以带上-e参数查看版本,不同版本修改用户密码有细微差别u=User.where(id:1).firstu.password='Qwer@1234'u.save[root@DevOPS~]#dockerexec-itgitlabbashroot@a3674......
  • SkyWalking服务监控简单配置【Windows版本】
    SkyWalking是什么skywalking是一个可观测性分析平台和应用性能管理系统专为微服务、云原生架构和基于容器(Docker、K8s、Mesos)架构而设计。下载官网:https://skywalking.apache.org/下载地址:https://skywalking.apache.org/downloads/中文文档:https://skyapm.github.io/doc......
  • 将.NET Core项目部署到Azure WebJob - Azure SDK
    前提条件已经完成了前四篇文章中的所有步骤。安装了Microsoft.Azure.WebJobs和Microsoft.Azure.WebJobs.Extensions包。创建WebJob在你的项目中,创建一个新的类:SayHelloWebJob。在SayHelloWebJob类中,添加以下代码:usingMicrosoft.Azure.WebJobs;usingSystem;publiccla......