05 2020 档案

读取txt文件,并把文件类容转为String
摘要:1.File file = new File("D:\\gis_1.txt");2. public static String txt2String(File file){ StringBuilder result = new StringBuilder(); try{ BufferedReader 阅读全文

posted @ 2020-05-14 15:17 博客海沐沐 阅读(1594) 评论(0) 推荐(0)

springBoot 项目在项目启动时修改dev或prod文件(在远程拉取的值)
摘要:在启动类中加public static void main(String[] args) throws UnknownHostException { SpringApplication app = new SpringApplication(CtginmsPortalApplication.clas 阅读全文

posted @ 2020-05-13 15:19 博客海沐沐 阅读(1601) 评论(0) 推荐(0)

logback-spring.xml的配置
摘要:<?xml version="1.0" encoding="UTF-8" ?><!-- 从高到地低 OFF 、 FATAL 、 ERROR 、 WARN 、 INFO 、 DEBUG 、 TRACE 、 ALL --><!-- 日志输出规则 根据当前ROOT 级别,日志输出时,级别高于root默认的 阅读全文

posted @ 2020-05-11 15:21 博客海沐沐 阅读(883) 评论(0) 推荐(0)

导航