Giter Site home page Giter Site logo

在Mac运行下报错 about spring-boot-db HOT 2 OPEN

chenfromsz avatar chenfromsz commented on July 1, 2024
在Mac运行下报错

from spring-boot-db.

Comments (2)

chenfromsz avatar chenfromsz commented on July 1, 2024 1

不用更改任何代码,使用mysql 5.7,运行mysqlTest,经过测试是可以的:
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 66249
Server version: 5.7.19 MySQL Community Server (GPL)
。。。。
16:03:18.442 [main] INFO dbdemo.mysql.test.MysqlTest - ====user==== user name:user, department name:开发部, role name:admin

上面是我在mac os 10.12.5中的测试结果。

如果升级了spring boot版本之后,连接数据源的配置中如果安全验证报错可以要加上“&useSSL=false”

from spring-boot-db.

Cantoria avatar Cantoria commented on July 1, 2024 1

在debug中看到了 @chenfromsz 所述的warning,在test/JpaConfigration.java中的dataSource方法中,由
dataSource.setUrl("jdbc:mysql://localhost:3306/test?characterEncoding=utf8");
变为
dataSource.setUrl("jdbc:mysql://localhost:3306/test?characterEncoding=utf8&useSSL=false");
即可解决。

from spring-boot-db.

Related Issues (13)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.