摘要:
String filePath ="D:\\Alivin\\Temp\\img\\c.jpg"; byte[] b = Files.readAllBytes(Paths.get(filePath)); String s = Base64.getEncoder().encodeToString(b); 阅读全文
随笔档案-2018年09月
springboot下maven分环境打包
2018-09-14 13:54 by 如是我所闻, 2280 阅读, 收藏,
摘要:
1 项目结构如下图:local,test,prod是具体的环境 2 配置profile,默认为local 3 根据环境打包: 4:打包的插件 woff,woff2,ttf的配置是因为这种方式会对二进制资源损坏。所以将这几种排除 5 application.properties中的配置 这里的prof 阅读全文
浙公网安备 33010602011771号