如何使用表单创建mysql数据库。我正在使用spring boot
我现在正在接受培训,我必须从一个表单中创建mysql数据库,在这个表单中,我必须输入数据库的名称及其详细信息,所有这些都是启动后的spring,第一次您需要在pom.xml中添加这些依赖项如何使用表单创建mysql数据库。我正在使用spring boot,mysql,spring-mvc,spring-boot,Mysql,Spring Mvc,Spring Boot,我现在正在接受培训,我必须从一个表单中创建mysql数据库,在这个表单中,我必须输入数据库的名称及其详细信息,所有这些都是启动后的spring,第一次您需要在pom.xml中添加这些依赖项 <dependencies> <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-web</art
<dependencies>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-web</artifactId>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-data-jpa</artifactId>
</dependency>
<dependency>
<groupId>mysql</groupId>
<artifactId>mysql-connector-java</artifactId>
</dependency>
</dependencies>
祝你好运你的要求并不具体。也许你应该指出你到目前为止尝试了什么,以及你目前的问题是什么。
spring.datasource.url = jdbc:mysql://localhost:8889/netgloo_blog
spring.datasource.username = root
spring.datasource.password = root
spring.datasource.driverClassName = com.mysql.jdbc.Driver
spring.jpa.database = MYSQL
spring.jpa.hibernate.ddl-auto = update