springboot 数据库应用

以spring-boot-starter-data-jdbc加载连接MySQL数据库

1、添加依赖

在pom.xml里面导入数据库操作依赖和数据驱动


<dependency>
    <groupId>org.springframework.bootgroupId>
    <artifactId>spring-boot-starter-data-jdbc

你可能感兴趣的:(springboot,数据库,spring,boot,mysql,jdbcTemplate)