idea spring boot 環境搭建問題記錄

新建項目中無 spring boot 選項

解決方法:settings->plugin 找到 spring boot  ,  enable

 

maven 下載jar包速度慢

解決方法:maven 庫配置爲 aliyun

 

lombok 插件默認沒有安裝,需要手動裝一下,具體見:

https://blog.csdn.net/marion158/article/details/87893480

跑junit時,提示找不到 junit-platform-launcher-1.5.2.pom

解決方法:pom.xml

<dependency>
    <groupId>org.junit.platform</groupId>
    <artifactId>junit-platform-launcher</artifactId>
    <version>1.5.2</version>
    <scope>test</scope>
</dependency>
<dependency>
    <groupId>org.junit.jupiter</groupId>
    <artifactId>junit-jupiter-engine</artifactId>
    <version>5.5.2</version>
    <scope>test</scope>
</dependency>
<dependency>
    <groupId>org.junit.vintage</groupId>
    <artifactId>junit-vintage-engine</artifactId>
    <version>5.5.2</version>
    <scope>test</scope>
</dependency>

 

MYSQL 錯誤:

Sun Mar 08 18:03:24 CST 2020 WARN: Establishing SSL connection without server's identity verification is not recommended. According to MySQL 5.5.45+, 5.6.26+ and 5.7.6+ requirements SSL connection must be established by default if explicit option isn't set. For compliance with existing applications not using SSL the verifyServerCertificate property is set to 'false'. You need either to explicitly disable SSL by setting useSSL=false, or set useSSL=true and provide truststore for server certificate verification.
2020-03-08 18:03:25.515 ERROR 14100 --- [           main] com.zaxxer.hikari.pool.HikariPool        : HikariPool-1 - Exception during pool initialization.
解決方法:

spring.datasource.url=jdbc:mysql://localhost:3306/cov?useSSL=false

 

 

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章