如何在 IntelliJ 中使用 Spring 设置 MySQL 数据库连接?
How to setup a MySQL Database Connection with Spring in IntelliJ?
我想在 IntelliJ 中对本地数据库使用 XAMPP 和 MySQL,但我没有计划如何做...
你知道一些设置教程吗?
或者是否有我不需要使用的替代方案PHP?
您不需要将 IDE 与数据库集成。只需将连接字符串和其他内容插入 application.properties 文件。
例如;
spring.datasource.url=jdbc:mysql://${MYSQL_HOST:localhost}:3306/db_example
spring.datasource.username=username
spring.datasource.password=password
如果你想在IDE中管理你的数据库,你可以按照这个; https://www.jetbrains.com/help/idea/2016.2/managing-data-sources.html
我想在 IntelliJ 中对本地数据库使用 XAMPP 和 MySQL,但我没有计划如何做...
你知道一些设置教程吗?
或者是否有我不需要使用的替代方案PHP?
您不需要将 IDE 与数据库集成。只需将连接字符串和其他内容插入 application.properties 文件。
例如;
spring.datasource.url=jdbc:mysql://${MYSQL_HOST:localhost}:3306/db_example
spring.datasource.username=username
spring.datasource.password=password
如果你想在IDE中管理你的数据库,你可以按照这个; https://www.jetbrains.com/help/idea/2016.2/managing-data-sources.html