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

网站建设申请报告怎么写慈溪建设企业网站

网站建设申请报告怎么写,慈溪建设企业网站,网站后台怎么做水印图片,竞价可以做两个网站吗SpringBoot 启动输出 Git 版本信息 文章目录 SpringBoot 启动输出 Git 版本信息1. 环境依赖2. pom.xml 配置3. 启动类配置 为了方便记录项目打包时的 Git 版本#xff0c;本文将介绍如何将 Git 版本信息打包进 JAR 文件#xff0c;并在项目启动时输出。 1. 环境依赖 SpringB…SpringBoot 启动输出 Git 版本信息 文章目录 SpringBoot 启动输出 Git 版本信息1. 环境依赖2. pom.xml 配置3. 启动类配置 为了方便记录项目打包时的 Git 版本本文将介绍如何将 Git 版本信息打包进 JAR 文件并在项目启动时输出。 1. 环境依赖 SpringBoot 2.7.13git-commit-id-maven-plugin 4.9.9 2. pom.xml 配置 buildpluginsplugingroupIdio.github.git-commit-id/groupIdartifactIdgit-commit-id-maven-plugin/artifactIdversion4.9.9/versionexecutionsexecutionidget-the-git-infos/idgoalsgoalrevision/goal/goalsphaseinitialize/phase/execution/executionsconfigurationinjectAllReactorProjectsfalse/injectAllReactorProjectsverbosetrue/verboseskipPomstrue/skipPomsgenerateGitPropertiesFiletrue/generateGitPropertiesFilegenerateGitPropertiesFilename${project.build.outputDirectory}/git.properties/generateGitPropertiesFilenamegenerateGitPropertiesFileWithEscapedUnicodefalse/generateGitPropertiesFileWithEscapedUnicodedotGitDirectory${project.basedir}/.git/dotGitDirectoryformatproperties/formatprefixgit/prefixdateFormatyyyy-MM-dd HH:mm:ss/dateFormatdateFormatTimeZone${user.timezone}/dateFormatTimeZonefailOnNoGitDirectoryfalse/failOnNoGitDirectoryfailOnUnableToExtractRepoInfofalse/failOnUnableToExtractRepoInfouseNativeGitfalse/useNativeGitskipfalse/skiprunOnlyOncefalse/runOnlyOncecommitIdGenerationModefull/commitIdGenerationModeevaluateOnCommitHEAD/evaluateOnCommituseBranchNameFromBuildEnvironmenttrue/useBranchNameFromBuildEnvironmentinjectIntoSysPropertiestrue/injectIntoSysPropertiesofflinetrue/offline/configuration/plugin/plugins /build3. 启动类配置 package com.xiaoqqya.gitinfo;import org.slf4j.Logger; import org.slf4j.LoggerFactory; import org.springframework.beans.factory.NoSuchBeanDefinitionException; import org.springframework.boot.SpringApplication; import org.springframework.boot.autoconfigure.SpringBootApplication; import org.springframework.boot.info.GitProperties; import org.springframework.context.ConfigurableApplicationContext;/*** Spring boot git info demo.** author a hrefmailto:xiaoQQya126.comxiaoQQya/a* since 2023/07/11*/ SpringBootApplication public class GitInfoApplication {private static final Logger LOGGER LoggerFactory.getLogger(GitInfoApplication.class);public static void main(String[] args) {ConfigurableApplicationContext context SpringApplication.run(GitInfoApplication.class, args);printGitInfo(context);}/*** 输出 Git 版本控制信息.** param context SpringBoot 上下文信息*/private static void printGitInfo(ConfigurableApplicationContext context) {try {if (LOGGER.isInfoEnabled()) {GitProperties gitProperties context.getBean(GitProperties.class);LOGGER.info(Git branch: {}, gitProperties.get(branch));LOGGER.info(Git build time: {}, gitProperties.get(build.time));LOGGER.info(Git commit id: {}, gitProperties.get(commit.id.full));LOGGER.info(Git commit user: {}, gitProperties.get(commit.user.name) gitProperties.get(commit.user.email) );LOGGER.info(Git commit time: {}, gitProperties.get(commit.time));LOGGER.info(Git commit message: {}, gitProperties.get(commit.message.full));}} catch (NoSuchBeanDefinitionException e) {LOGGER.warn(e.getMessage());}} }参考文章 git-commit-id/git-commit-id-maven-plugin (github.com)Injecting Git Information Into Spring Beans | Baeldungspringboot获取项目git版本信息的几种方式_gitproperties_skyhello的博客-CSDN博客
http://www.tj-hxxt.cn/news/232865.html

相关文章:

  • 红旗渠建设集团有限公司网站平面设计素材免费网站有哪些
  • 网站建设解决问题可以免费做3dLOGO的网站
  • 最新企业网站开发和设计软件ppt模板简约
  • 什么网站可以做设计赚钱的吗阿里巴巴外贸订单网站
  • 重庆做石材的网站官方网站下载水印相机
  • 多个网站备案吗asp网站源代码下载
  • 天津网站建设流程引蜘蛛网站
  • 苏州建设工程交易中心网站做个app需要多少费用
  • 学做美食网站功能型pc端网站框架
  • 卫生局网站建设方案wordpress换域名后
  • 网站建设市场调研报告网络营销包括哪些策略
  • 电子商务网站开发与设计网站怎么做有创意
  • 海南省建设执业中心网站深圳商业网站建设推荐公司
  • 印尼建设银行网站网站建设的维护范围
  • 上海人才网最新招聘信息官方网站软件开发输出文档
  • 界面设计最好的网站自己建立的网站
  • 站长工具域名备案查询杭州知名的企业网站建设
  • 商城建设网站制作长春网站制作wang
  • 如何建设电影网站商丘市做网站
  • 汕头企业网站建设价格国内国际时事心得体会
  • 大学生做网站步骤企业管理系统多少钱
  • 用商标域名注册的非盈利网站wordpress付费下载插件
  • 电脑做ppt模板下载网站天津网站设计诺亚科技
  • 庆阳市建设局网站如何搭建asp网站
  • 网站上添加子栏目往网站上传照片怎么做
  • 网站开发最好用什么语言上海网站建设开发公司哪家好
  • 网站商城建设方案网站2个页面做首页
  • 网站设计版式html个人博客完整代码
  • 虚拟资源站码支付wordpress百度收录快速提交
  • 网站建设微信托管wordpress自带轮播