springboot yaml文件改变server端口和设置显示sql Posted on 7月 8, 2020 by admin Change Server Port in application.yml ... server: port: 8081 ... Show sql ..... spring: datasource: jpa: show-sql: true properties: hibernate: format_sql: true
配置和运行Sona Posted on 7月 8, 20207月 8, 2020 by admin settings.xml 里加入 <profiles> <profile> <id>sonar</id> <activation> <activeByDefault>true</activeByDefault> </activation> <properties> <!-- Sonar Host e.g. http://localhost:9000 --> <sonar.host.url> http://localhost:9000 </sonar.host.url> </properties> </profile> </profiles> Exclusion files in pom.xml <sonar.exclusions> /usr/file1 /usr/file2 </sonar.exclusions> Run Sona using maven mvn clean install sonar:sonar -s /maven/location/settings.xml