spring boot maven dependency for mysql

spring boot maven dependency for mysql

Hi,

I want to add MySQL maven dependency in Spring Boot application. I don't know the version to be added. So what should I add into the pom.xml file of my spring boot application?

Thanks

View Answers

December 19, 2020 at 4:41 PM

Hi,

You don't have to provide the dependency version of mysql connector in your spring boot based application. You just add the following into pom.xml file of your project:

    <dependency>
        <groupId>mysql</groupId>
        <artifactId>mysql-connector-java</artifactId>
        <scope>runtime</scope>
    </dependency>

This will instruct the Spring Boot to included the MySQL JDBC driver jar into your project.

Hope this helps you.

Thanks


December 19, 2020 at 4:42 PM

Hi,

You can learn Spring Boot by visiting our Spring Boot tutorials section at:

Thanks









Related Tutorials/Questions & Answers:
spring boot maven dependency for mysql
spring boot maven dependency for mysql  Hi, I want to add MySQL maven dependency in Spring Boot application. I don't know the version to be added... the Spring Boot to included the MySQL JDBC driver jar into your project
spring boot 2.2.0 maven dependency
of Spring boot 2.2.0? What is spring boot 2.2.0 maven dependency? Thanks...spring boot 2.2.0 maven dependency  Hi, I have spring boot old application and now I want to upgrade it to new version of Spring boot. For this I
Advertisements
Spring Boot Web Starter 2.1.1 Maven dependency
for my project. What is Spring Boot Web Starter 2.1.1 maven dependency... Web Starter 2.1.1 . Here is maven dependency code for Spring Boot Web Starter...Spring Boot Web Starter 2.1.1 Maven dependency  Hi, I want to use
spring boot 2.2.0 m4 maven dependency
of spring boot. What is spring boot 2.2.0 m4 maven dependency? Thanks   Hi, The spring boot 2.2.0 m4 maven dependency is: <dependency> <...spring boot 2.2.0 m4 maven dependency  Hi, I am moving my
spring boot 2.2.0 m4 maven dependency
of spring boot. What is spring boot 2.2.0 m4 maven dependency? Thanks   Hi, The spring boot 2.2.0 m4 maven dependency is: <dependency> <...spring boot 2.2.0 m4 maven dependency  Hi, I am moving my
spring boot starter web maven dependency 2.0.0
spring boot starter web maven dependency 2.0.0  Hi, I want to use.... What is spring boot starter web maven dependency 2.0.0? Thanks   Hi...; The above code is for spring boot starter web maven dependency 2.0.0. Thanks
Spring Boot Starter Maven dependency code
Spring Boot Starter Maven dependency code  Hi, I have a project and I need to use Spring Boot Starter in the project. Which is the latest version..., The latest version of Spring Boot Starter is 3.2.1 as on 27-Dec-2023. You
spring boot webflux dependency
spring boot webflux dependency  Hi, I want to use the webflux in spring boot application. What is the code for adding in pom.xml file? I need pom.xml code for spring boot webflux dependency. Thanks   HI, You can use
Maven Repository/Dependency: org.teiid | spring-data-mysql
Maven Repository/Dependency of Group ID org.teiid and Artifact ID spring-data-mysql. Latest version of org.teiid:spring-data-mysql dependencies... You can read more at: Maven Tutorials What is Apache Maven
Maven Dependency spring-boot-starters >> 1.5.2.RELEASE
You should include the dependency code given in this page to add Maven Dependency of org.springframework.boot >> spring-boot-starters version1.5.2.RELEASE in your project
Maven Dependency comsat-spring-boot >> 0.5.0
You should include the dependency code given in this page to add Maven Dependency of co.paralleluniverse >> comsat-spring-boot version0.5.0 in your project
Maven Dependency comsat-spring-boot >> 0.7.0
You should include the dependency code given in this page to add Maven Dependency of co.paralleluniverse >> comsat-spring-boot version0.7.0 in your project
Maven Dependency comsat-spring-boot >> 0.3.0
You should include the dependency code given in this page to add Maven Dependency of co.paralleluniverse >> comsat-spring-boot version0.3.0 in your project
Maven Dependency versioning-spring-boot >> 0.7.0
You should include the dependency code given in this page to add Maven Dependency of com.fintonic >> versioning-spring-boot version0.7.0 in your project
Maven Dependency versioning-spring-boot >> 0.7.1
You should include the dependency code given in this page to add Maven Dependency of com.fintonic >> versioning-spring-boot version0.7.1 in your project
Maven Dependency spring-boot-starters >> 1.4.3.RELEASE
You should include the dependency code given in this page to add Maven Dependency of org.springframework.boot >> spring-boot-starters version1.4.3.RELEASE in your project
Maven Dependency beetl-spring-boot >> 0.0.1
You should include the dependency code given in this page to add Maven Dependency of com.piggsoft >> beetl-spring-boot version0.0.1 in your project
Maven Dependency beetl-spring-boot >> 0.0.2
You should include the dependency code given in this page to add Maven Dependency of com.piggsoft >> beetl-spring-boot version0.0.2 in your project
Maven Dependency beetl-spring-boot >> 0.0.3
You should include the dependency code given in this page to add Maven Dependency of com.piggsoft >> beetl-spring-boot version0.0.3 in your project
Maven Dependency replash-spring-boot >> 0.8.0
You should include the dependency code given in this page to add Maven Dependency of com.replash >> replash-spring-boot version0.8.0 in your project
Maven Dependency restapijs-spring-boot >> 1.0
You should include the dependency code given in this page to add Maven Dependency of com.restapijs >> restapijs-spring-boot version1.0 in your project
Maven Dependency roncoo-spring-boot >> 1.0.1
You should include the dependency code given in this page to add Maven Dependency of com.roncoo >> roncoo-spring-boot version1.0.1 in your project
Maven Dependency spring-boot-parent >> 1.4.2.RELEASE
You should include the dependency code given in this page to add Maven Dependency of com.ruijc >> spring-boot-parent version1.4.2.RELEASE in your project
Maven Dependency spring-boot-beetl >> 1.0.0
You should include the dependency code given in this page to add Maven Dependency of cn.kxlove >> spring-boot-beetl version1.0.0 in your project
Maven Dependency comsat-spring-boot >> 0.4.0
You should include the dependency code given in this page to add Maven Dependency of co.paralleluniverse >> comsat-spring-boot version0.4.0 in your project
Maven Dependency comsat-spring-boot >> 0.6.0
You should include the dependency code given in this page to add Maven Dependency of co.paralleluniverse >> comsat-spring-boot version0.6.0 in your project
Maven Dependency versioning-spring-boot >> 0.6.0
You should include the dependency code given in this page to add Maven Dependency of com.fintonic >> versioning-spring-boot version0.6.0 in your project
Maven Dependency spring-boot-starters >> 1.4.2.RELEASE
You should include the dependency code given in this page to add Maven Dependency of org.springframework.boot >> spring-boot-starters version1.4.2.RELEASE in your project
Maven Dependency spring-boot-starters >> 1.5.1.RELEASE
You should include the dependency code given in this page to add Maven Dependency of org.springframework.boot >> spring-boot-starters version1.5.1.RELEASE in your project
Maven Dependency replash-spring-boot >> 0.7
You should include the dependency code given in this page to add Maven Dependency of com.replash >> replash-spring-boot version0.7 in your project
Maven Dependency roncoo-spring-boot >> 1.0.0
You should include the dependency code given in this page to add Maven Dependency of com.roncoo >> roncoo-spring-boot version1.0.0 in your project
Maven Repository/Dependency: cn.kxlove | spring-boot-beetl
Maven Repository/Dependency of Group ID cn.kxlove and Artifact ID spring-boot-beetl. Latest version of cn.kxlove:spring-boot-beetl dependencies... at: Maven Tutorials What is Apache Maven? How to create
Maven Repository/Dependency: com.fintonic | versioning-spring-boot
Maven Repository/Dependency of Group ID com.fintonic and Artifact ID versioning-spring-boot. Latest version of com.fintonic:versioning-spring-boot dependencies... at: Maven Tutorials What is Apache Maven? How to create Maven Web
Maven Repository/Dependency: com.restapijs | restapijs-spring-boot
Maven Repository/Dependency of Group ID com.restapijs and Artifact ID restapijs-spring-boot. Latest version of com.restapijs:restapijs-spring-boot dependencies... can read more at: Maven Tutorials What is Apache Maven
Maven Repository/Dependency: com.ruijc | spring-boot-parent
Maven Repository/Dependency of Group ID com.ruijc and Artifact ID spring-boot-parent. Latest version of com.ruijc:spring-boot-parent dependencies... at: Maven Tutorials What is Apache Maven? How to create
Maven Repository/Dependency: com.replash | replash-spring-boot
Maven Repository/Dependency of Group ID com.replash and Artifact ID replash-spring-boot. Latest version of com.replash:replash-spring-boot dependencies... read more at: Maven Tutorials What is Apache Maven? How
Maven Repository/Dependency: com.piggsoft | beetl-spring-boot
Maven Repository/Dependency of Group ID com.piggsoft and Artifact ID beetl-spring-boot. Latest version of com.piggsoft:beetl-spring-boot dependencies... more at: Maven Tutorials What is Apache Maven? How
Maven Dependency spring-boot-starter-parent >> 1.4.0.M3
You should include the dependency code given in this page to add Maven Dependency of org.springframework.boot >> spring-boot-starter-parent version1.4.0.M3 in your project
Maven Dependency spring-boot-starter-parent >> 1.4.0.RELEASE
You should include the dependency code given in this page to add Maven Dependency of org.springframework.boot >> spring-boot-starter-parent version1.4.0.RELEASE in your project
Maven Dependency comsat-spring-boot-security >> 0.4.0
You should include the dependency code given in this page to add Maven Dependency of co.paralleluniverse >> comsat-spring-boot-security version0.4.0 in your project
Maven Dependency comsat-spring-boot-security >> 0.5.0
You should include the dependency code given in this page to add Maven Dependency of co.paralleluniverse >> comsat-spring-boot-security version0.5.0 in your project
Maven Dependency comsat-spring-boot-security >> 0.7.0
You should include the dependency code given in this page to add Maven Dependency of co.paralleluniverse >> comsat-spring-boot-security version0.7.0 in your project
Maven Dependency comsat-spring-boot-security >> 0.6.0
You should include the dependency code given in this page to add Maven Dependency of co.paralleluniverse >> comsat-spring-boot-security version0.6.0 in your project
Maven Dependency spring-boot-starter-parent >> 1.4.2.RELEASE
You should include the dependency code given in this page to add Maven Dependency of org.springframework.boot >> spring-boot-starter-parent version1.4.2.RELEASE in your project
Maven Dependency mybatisplus-spring-boot-starter >> 1.0.1
You should include the dependency code given in this page to add Maven Dependency of com.baomidou >> mybatisplus-spring-boot-starter version1.0.1 in your project
Maven Dependency spring-boot-starter-tenant >> 0.0.1
You should include the dependency code given in this page to add Maven Dependency of com.cjoop >> spring-boot-starter-tenant version0.0.1 in your project
Maven Dependency spring-boot-starter-dubbox >> 0.0.1
You should include the dependency code given in this page to add Maven Dependency of com.cjoop >> spring-boot-starter-dubbox version0.0.1 in your project
Maven Dependency cloudant-spring-boot-starter >> 0.9.0
You should include the dependency code given in this page to add Maven Dependency of com.clianz >> cloudant-spring-boot-starter version0.9.0 in your project
Maven Dependency cloudant-spring-boot-starter >> 0.3.0
You should include the dependency code given in this page to add Maven Dependency of com.clianz >> cloudant-spring-boot-starter version0.3.0 in your project
Maven Dependency cloudant-spring-boot-starter >> 0.9.3
You should include the dependency code given in this page to add Maven Dependency of com.clianz >> cloudant-spring-boot-starter version0.9.3 in your project

Ads