spring boot maven dependency for mysql

Ads
 

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

Ads









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...; This will instruct the Spring Boot to included the MySQL JDBC driver jar into your
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
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 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.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.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 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.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 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.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.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 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 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.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 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.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 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
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 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 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