소스 검색

:bento: sonarLint规范代码

Aron 6 년 전
부모
커밋
67a1355032
1개의 변경된 파일4개의 추가작업 그리고 4개의 파일을 삭제
  1. 4 4
      src/main/java/com/ifast/Application.java

+ 4 - 4
src/main/java/com/ifast/Application.java

@@ -43,10 +43,10 @@ public class Application {
 		ServerProperties serverProperties = SpringContextHolder.getApplicationContext().getBean(ServerProperties.class);
 		DataSourceProperties dataSourceProperties = SpringContextHolder.getApplicationContext().getBean(DataSourceProperties.class);
 		IFastProperties config = SpringContextHolder.getApplicationContext().getBean(IFastProperties.class);
-		log.info("开启演示模式:" + config.isDemoMode());
-		log.info("开启调试模式:" + config.isDevMode());
-		log.info("数据库:" + dataSourceProperties.getUrl());
-		log.info("==================> run at http://localhost:" + serverProperties.getPort() + serverProperties.getContextPath() + "  <==================");
+		log.info("开启演示模式:{}", config.isDemoMode());
+		log.info("开启调试模式:{}", config.isDevMode());
+		log.info("数据库:{}", dataSourceProperties.getUrl());
+		log.info("==================> run at http://localhost:{}  <==================", serverProperties.getPort() + serverProperties.getContextPath());
 	}
 	
 }