随笔分类 - gradle
摘要:在gradle中使用MyBatis Generator时,build.gradle配置如下: generatorConfig.xml文件的内容如下: 当引入扩展的mybatis generator的plugin时,要用mybatisGenerator,而不是compile。
阅读全文
摘要:在SpringBoot中,多环节的配置文件名基于application-{profile}.properties的格式,其中{profile}对应环境标识,比如: application-daily.properties 测试环境 application-gray.properties 灰度环境 a
阅读全文
摘要:配置私服认证 一般访问公共仓库配置如下: 私服有时会要求必须认证才可以访问公有仓库,那如下配置: 使用个人账号 配置gradle的init: 仓库变量引用: repositories { maven { credentials { username "$mavenUser" password "$m
阅读全文