0% found this document useful (0 votes)
35 views9 pages

Using MySQL in Spring Boot Via Spring Data JPA

Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
Download as pdf or txt
0% found this document useful (0 votes)
35 views9 pages

Using MySQL in Spring Boot Via Spring Data JPA

Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
Download as pdf or txt
Download as pdf or txt
You are on page 1/ 9

7/5/2019 Using MySQL in Spring Boot via Spring Data JPA and Hibernate – Netgloo Blog



USING MYSQL IN SPRING BOOT VIA SPRING DATA JPA AND HIBERNATE
SPRING ANDREA  27 October 2014  62 COMMENTS

This post shows how to use a MySQL database in a Spring Boot web application, using less code and con gurations as possible, with the aim to take full advantage from Spring
Boot.
Spring Data JPA and Hibernate (as JPA implementation) will be used to implement the data access layer.

Spring Boot version


The code in this post is tested with Spring Boot 1.3.5.

Dependencies
Be sure to have following dependencies in the pom.xml le:

1 <dependencies
dependencies>>
2 <dependency
dependency>>
3 <groupId
groupId>
>org.springframework.boot
org.springframework.boot</
</groupId
groupId>
>
4 <artifactId
artifactId> >spring-boot-starter-web
spring-boot-starter-web</
</artifactId
artifactId>
>
5 </dependency>
</dependency >
6 <dependency
dependency>>
7 <groupId
groupId>
>org.springframework.boot
org.springframework.boot</</groupId
groupId>
>
8 <artifactId
artifactId> >spring-boot-starter-data-jpa
spring-boot-starter-data-jpa</
</artifactId
artifactId>
>
9 </dependency
</dependency> >
10 <dependency
dependency>>
11 <groupId
groupId>
>mysql
mysql</</groupId
groupId>
>
12 <artifactId
artifactId> >mysql-connector-java
mysql-connector-java</
</artifactId
artifactId>
>
13 </dependency
</dependency> >
14 </dependencies
</dependencies> >

See here an example of a whole pom.xml .

Configuration file
Put in the application.properties le pretty much all the con gurations:

src/main/resources/application.properties

1 # DataSource settings: set here your own configurations for the database
2 # connection. In this example we have "netgloo_blog" as database name and
3 # "root" as username and password.
4 spring.datasource.url = jdbc:mysql://localhost:8889/netgloo_blog
5 spring.datasource.username = root
6 spring.datasource.password = root
7
8 # Keep the connection alive if idle for a long time (needed in production)
9 spring.datasource.testWhileIdle = true
10 spring.datasource.validationQuery = SELECT 1
11
12 # Show or not log for each sql query
13 spring.jpa.show-sql = true
14
15 # Hibernate ddl auto (create, create-drop, update)
16 spring.jpa.hibernate.ddl-auto = update
17
18 # Naming strategy
19 spring.jpa.hibernate.naming-strategy = org.hibernate.cfg.ImprovedNamingStrategy
20
21 # Use spring.jpa.properties.* for Hibernate native properties (the prefix is
22 # stripped before adding them to the entity manager)
23
24 # The SQL dialect makes Hibernate generate better SQL for the chosen database
25 spring.jpa.properties.hibernate.dialect = org.hibernate.dialect.MySQL5Dialect

blog.netgloo.com/2014/10/27/using-mysql-in-spring-boot-via-spring-data-jpa-and-hibernate/ 1/9
7/5/2019 Using MySQL in Spring Boot via Spring Data JPA and Hibernate – Netgloo Blog
No xml or java con g classes are needed.

Using the hibernate con guration ddl-auto = update the database schema will be automatically created (and updated), creating tables and columns, accordingly to java entities
found in the project.

See here for other hibernate speci c con gurations.

Create an entity
Create an entity class representing a table in your db.

In this example we create an entity User composed by three elds: id , email and name .
An object of this class will be an entry in the users table in your MySQL database.

src/main/java/netgloo/models/User.java

1 package netgloo
netgloo..models
models;
;
2
3 // Imports ...
4
5 @Entity
6 @Table(
@Table(name = "users"
"users")
)
7 public class User {
8
9 // An autogenerated id (unique for each user in the db)
10 @Id
11 @GeneratedValue(
@GeneratedValue (strategy = GenerationType
GenerationType.
.AUTO
AUTO)
)
12 private long id
id;
;
13
14 @NotNull
15 private String email;
email;
16
17 @NotNull
18 private String name;
name;
19
20 // Public methods
21
22 public User
User(
() { }
23
24 public User
User(
(long id
id)
) {
25 this.
this.id = id
id;
;
26 }
27
28 public User
User(
(String email,
email, String name)
name) {
29 this.email = email
this. email;
;
30 this.
this.name = name
name;
;
31 }
32
33 // Getter and setter methods
34 // ...
35
36 }

The Entity annotation mark this class as a JPA entity. The Table annotation speci es the db table’s name (would be “User” as default).

The Data Access Object


A DAO (aka Repository) is needed to works with entities in database’s table, with methods like save, delete, update, etc.

With Spring Data JPA a DAO for your entity is simply created by extending the CrudRepository interface provided by Spring. The following methods are some of the ones
available from such interface: save , delete , deleteAll , findOne and findAll .
The magic is that such methods must not be implemented, and moreover it is possible to create new query methods working only by their signature de nition!

Here there is the Dao class UserDao for our entity User :

src/main/java/netgloo/models/UserDao.java

1 package netgloo
netgloo..models
models;
;
2
3 // Imports ...
4
5 @Transactional
6 public interface UserDao extends CrudRepository
CrudRepository<
<User
User,
, Long
Long>
> {
7
8 /**
9 * This method will find an User instance in the database by its email.
10 * Note that this method is not implemented and its working code will be
11 * automagically generated from its signature by Spring Data JPA.
12 */
13 public User findByEmail
findByEmail(
(String email)
email);
14
15 }

blog.netgloo.com/2014/10/27/using-mysql-in-spring-boot-via-spring-data-jpa-and-hibernate/ 2/9
7/5/2019 Using MySQL in Spring Boot via Spring Data JPA and Hibernate – Netgloo Blog

See here for more details on how to create query from method names. 

A controller for testing


That’s all! The connection with the database is done. Now we can test it.

In the same way as in some similar previous post (one and two) we create a controller class named UserController to test interactions with the MySQL database using the UserDao
class.

src/main/java/netgloo/controllers/UserController.java

1 package netgloo
netgloo..controllers
controllers;
;
2
3 // Imports ...
4
5 @Controller
6 public class UserController {
7
8 /**
9 * GET /create --> Create a new user and save it in the database.
10 */
11 @RequestMapping(
@RequestMapping("/create"
"/create"))
12 @ResponseBody
13 public String create
create(
(String email,
email, String name)
name) {
14 String userId = ""
"";
;
15 try {
16 User user = new User
User((email
email,
, name
name)
);
17 userDao.
userDao.save
save(
(user
user));
18 userId = String
String.
.valueOf
valueOf((user
user.
.getId
getId(());
19 }
20 catch (Exception ex
ex)
) {
21 return "Error creating the user: " + exex..toString
toString(();
22 }
23 return "User succesfully created with id = " + userId
userId;;
24 }
25
26 /**
27 * GET /delete --> Delete the user having the passed id.
28 */
29 @RequestMapping(
@RequestMapping ("/delete"
"/delete"))
30 @ResponseBody
31 public String delete
delete(
(long id
id)) {
32 try {
33 User user = new User
User((id
id)
);
34 userDao.
userDao.delete
delete(
(user
user)
);
35 }
36 catch (Exception ex
ex)
) {
37 return "Error deleting the user:" + ex
ex.
.toString
toString(
();
38 }
39 return "User succesfully deleted!";
deleted!";
40 }
41
42 /**
43 * GET /get-by-email --> Return the id for the user having the passed
44 * email.
45 */
46 @RequestMapping("/get-by-email"
@RequestMapping("/get-by-email")
)
47 @ResponseBody
48 public String getByEmail
getByEmail(
(String email)
email) {
49 String userId = ""
"";
;
50 try {
51 User user = userDao
userDao..findByEmail
findByEmail(
(email
email)
);
52 userId = String
String.
.valueOf
valueOf(
(user
user.
.getId
getId(
());
53 }
54 catch (Exception ex
ex)
) {
55 return "User not found";
found";
56 }
57 return "The user id is: " + userId
userId;
;
58 }
59
60 /**
61 * GET /update --> Update the email and the name for the user in the
62 * database having the passed id.
63 */
64 @RequestMapping("/update"
@RequestMapping("/update")
)
65 @ResponseBody
66 public String updateUser
updateUser(
(long id
id,
, String email,
email, String name)
name) {
67 try {
68 User user = userDao
userDao..findOne
findOne(
(id
id)
);
69 user.setEmail
user.setEmail((email
email));
70 user.
user.setName
setName(
(name
name));
71 userDao.
userDao.save
save(
(user
user)
);
72 }
73 catch (Exception ex
ex)
) {
74 return "Error updating the user: " + ex
ex.
.toString
toString(
();
75 }
76 return "User succesfully updated!";
updated!";

blog.netgloo.com/2014/10/27/using-mysql-in-spring-boot-via-spring-data-jpa-and-hibernate/ 3/9
7/5/2019 Using MySQL in Spring Boot via Spring Data JPA and Hibernate – Netgloo Blog
77 }
78
79 // Private fields 
80
81 @Autowired
82 private UserDao userDao;
userDao;
83
84 }

Test the controller launching the Spring Boot web application and using these urls:

/create?email=[email]&name=[name]: create a new user with an auto-generated id and email and name as passed values.
/delete?id=[id]: delete the user with the passed id.
/get-by-email?email=[email]: retrieve the id for the user with the given email address.
/update?id=[id]&email=[email]&name=[name]: update the email and the name for the user identi ed by the given id.

Get the whole code


You can get the whole code used in this post from our Github repository here:

https://github.com/netgloo/spring-boot-samples/tree/master/spring-boot-mysql-springdatajpa-hibernate

References
http://spring.io/guides/gs/accessing-data-jpa/
http://docs.spring.io/spring-boot/docs/current/reference/html/howto-data-access.html
http://docs.spring.io/spring-boot/docs/current/reference/html/boot-features-sql.html
http://www.petrikainulainen.net/programming/spring-framework/spring-data-jpa-tutorial-part-two-crud/
http://www.luckyryan.com/2013/02/20/spring-mvc-with-basic-persistence-spring-data-jpa-hibernate/
https://github.com/spring-projects/spring-boot/tree/master/spring-boot-samples/spring-boot-sample-data-jpa

HIBERNATE JPA MYSQL SPRING SPRING BOOT SPRING DATA JPA

SPRING SPRING SPRING

USE MYSQL DATABASE IN A SPRING BOOT WEB


HOT
APPLICATION
SWAPPING IN
THROUGH
SPRING HIBERNATE
BOOT WITH ECLIPSE
SPRING
STS BOOT: ENABLE THE CSRF CHECK SELECTIVELY ONLY FOR S

ANDREA ANDREA ANDREA  17 Aug 2014

62 Comments netgloo 
1 Login

 Recommend 7 t Tweet f Share Sort by Best

Join the discussion…

LOG IN WITH
OR SIGN UP WITH DISQUS ?

Name

lrnt K • 3 years ago


Thank you very much, very helpful. To do after this : http://spring.io/guides/gs/...
3△ ▽ • Reply • Share ›

leo • 3 years ago


I was trying to run this code from eclipse , and got this error

blog.netgloo.com/2014/10/27/using-mysql-in-spring-boot-via-spring-data-jpa-and-hibernate/ 4/9
7/5/2019 Using MySQL in Spring Boot via Spring Data JPA and Hibernate – Netgloo Blog
Failed to instantiate [javax.sql.DataSource]: Factory method 'dataSource' threw exception;
Spent a few days trying to get it to work.
At the end, i read git hub again , the writter clearly says run from console or run as springBoot app ! 
did this : mvn spring-boot:run
And app works like a charm
Thanks
2△ ▽ • Reply • Share ›

WHK Yan > leo • 3 years ago


Same problem
△ ▽ • Reply • Share ›

Prasad Vadthiya • a year ago


Thank you very much
1△ ▽ • Reply • Share ›

FengShadu • 2 years ago


thanks a lot 写的非常仔细,简单易懂。 i like you
1△ ▽ • Reply • Share ›

MB • 3 years ago
Thanks, in reply to your email I created the DB and everything works. Nice.
1△ ▽ • Reply • Share ›

Bastien • 3 years ago


Thank you a lot, I've learn so much with your example. Thanks to the other person who comment this tuto, you help
me too.
But I still have an error when I want to create an new USER :
Error creating the user: org.springframework.orm.jpa.JpaSystemException: could not execute statement; nested
exception is org.hibernate.exception.GenericJDBCException: could not execute statement
Does somebody knows why ?
1△ ▽ • Reply • Share ›

Andrea Mod > Bastien • 3 years ago


Hello Bastien, are you running the code above in this post or did you done some customizations? You can try
to download the whole code from our github repository and running it. It should works. Then try to change it to
get what you want and understand what is causing the error you have now.
△ ▽ • Reply • Share ›

Bastien > Andrea • 3 years ago


Hello, yes, the code was good, I check it so many times haha...
but I've made a mistake in the description of my data base. That's why an Hibernate exception was
appeared. Problem solved, Thanks ;)
△ ▽ • Reply • Share ›

Antonio Cesar • 3 years ago


Perfect!!!
1△ ▽ • Reply • Share ›

Yesid Yesid • 3 years ago


Nice!, really helpful to me :)
1△ ▽ • Reply • Share ›

Faisal Arkan • 3 years ago


thank so much,, it's really helpful !
1△ ▽ • Reply • Share ›

Sean R • 4 years ago


This tutorials snippets really helped me connect the dots on Hibernate/JPA and Spring. Thank you so much for
presenting this so simply AND for citing your direct sources, just awesome!
1△ ▽ • Reply • Share ›

Sumanth N • 4 years ago


Thanks for sharing example;very helpful
1△ ▽ • Reply • Share ›

Fabian Calsina • 4 years ago


Thank you very much!. It was helpful for me
1△ ▽ • Reply • Share ›

Evan Hu • 4 years ago


Great thanks for your work. I am doing the same thing right now. Spring Boot is cool. Just with a few lines of code, a
complete REST end point can be up and running!

By the way, I think we can write less code, for example omit the configuration "spring.jpa.database = MYSQL" &
"spring.jpa.properties.hibernate.dialect = org.hibernate.dialect.MySQL5Dialect". I didn't write them and my sample
project is running well. ^_^
1△ ▽ • Reply • Share ›

Andrea Mod > Evan Hu • 4 years ago


Yes, thanks for your suggestion.. I will update the post.
△ ▽ • Reply • Share ›

ssd • 4 years ago


This is amazing!! Thank you so much for all the help!!!! One of the best boot strap tutorials I have seen!
1△ ▽ • Reply • Share ›

Kevin • 4 years ago


It works like a charm. Thanks andrea
1△ ▽ • Reply • Share ›

blog.netgloo.com/2014/10/27/using-mysql-in-spring-boot-via-spring-data-jpa-and-hibernate/ 5/9
7/5/2019 Using MySQL in Spring Boot via Spring Data JPA and Hibernate – Netgloo Blog

vaibhav kumar • a year ago


Nice tutorial. 
△ ▽ • Reply • Share ›

Tim • a year ago


Your example is very helpful, but it assumes that all the data is coming from the "netgloo_blog" schema. If the data is
structured across multiple schema, how do you configure hibernate to prepend the schema name to the table name
when it makes the queries?
△ ▽ • Reply • Share ›

Andrea Mod > Tim • a year ago


Hello Tim, take a look to these links, may help you:
https://medium.com/@joeclev...
https://stackoverflow.com/q...

If you have further questions or problem about this please use Stackoverflow.
△ ▽ • Reply • Share ›

Tim > Andrea • a year ago


Thanks. I actually started with Stackoverflow, but didn't get any answer. However, I did eventually find
that the way to use multiple schema is to use
@Table(name=”schema.table_name”), but you also have to make sure that
you do not define a default database/schema in your spring.datasource.url
configuration. See https://stackoverflow.com/q....
1△ ▽ • Reply • Share ›

Lux Man • 2 years ago


Love that How simple you made this to go through. I started to learn spring boot just before few days and I am
getting the error, ( All I have changed is the spring boot version to match version of other projects and remove the
pom.xml red marker for error) as I have filed it in github issue #7 https://github.com/netgloo/.... I am using ubuntu
14.04
△ ▽ • Reply • Share ›

Andrea Mod > Lux Man • 2 years ago


Hello Lux Man, please use Stackoverflow for problems and/or questions. Then you can also put a link here to
your question and I will be glad to help you if I can. Thank you.
△ ▽ • Reply • Share ›

Zerh • 2 years ago


DAO is not a repository pattern. :/
△ ▽ • Reply • Share ›

Neem Shade • 2 years ago


hi,

Thanks for a simple sample. After typing all the files, I ran Application.java. Tomcat has started.

However, I am not sure about the url I need to use. I tried


http://localhost:8080/TestSpringBoot/create?email=kumar@gmail.com&name=kumar

where TestSpringBoot is my project name. I tried removing the project name. Always I get this error :

{"timestamp":1484831890930,"status":404,"error":"Not Found","message":"No message


available","path":"/TestSpringBoot/create"}

What should be the url? Any help appreciated.

thanks
Balaji
△ ▽ • Reply • Share ›

Andrea Mod > Neem Shade • 2 years ago


Hello Balaji, the url should be http://localhost:8080/create?email=kumar@gmail.com&name=kumar, but it could vary
by your app's configurations.
You can try to download the code from our github here. Then run the app with mvn spring-boot:run and the url
will be http://localhost:8080/create?.....
△ ▽ • Reply • Share ›

akshay gupta • 3 years ago


I am getting below error while running with inbuilt springboot tomcat. pls help

Field userDao in netgloo.controller.UserController required a bean of type 'netgloo.model.UserDao' that could not be
found.
△ ▽ • Reply • Share ›

Andrea Mod > akshay gupta • 3 years ago


Please post a question on stackoverflow, with as much details as possible (all your relevant code, commands
you are using to compile and launch your application, the full error you are getting). Then leave a link to your
question here.
I will be happy to help you if I can.
Thank you.
△ ▽ • Reply • Share ›

Petr Knapek • 3 years ago


Hi,
thanks a lot for the tutorial, it is great for me as a spring begginer.
Although I have a problem running this tutorials code. Ir runs fine in IDE but created .jar artifact doesnt work at all.
Any suggestions, please?
△ ▽ • Reply • Share ›

Andrea Mod > Petr Knapek • 3 years ago


Did you tried one of these?:

blog.netgloo.com/2014/10/27/using-mysql-in-spring-boot-via-spring-data-jpa-and-hibernate/ 6/9
7/5/2019 Using MySQL in Spring Boot via Spring Data JPA and Hibernate – Netgloo Blog
Gradle:

./gradlew build && java -jar build/libs/gs-spring-boot-0.1.0.jar 


Maven:

mvn package && java -jar target/gs-spring-boot-0.1.0.jar

Take a look here for more: https://spring.io/guides/gs...


△ ▽ • Reply • Share ›

Petr Knapek > Andrea • 3 years ago


I can build it and create .jar just fine. It just doesn't run properly and throws errors that IDE doesn't.
Always shows missing configuration and beans.
△ ▽ • Reply • Share ›

Show more replies

Michael • 3 years ago


how do i list all the users in a html table?
△ ▽ • Reply • Share ›

Andrea Mod > Michael • 3 years ago


Hi Michael, sorry but this post is about How to use MySQL with Spring Boot. Showing a list of users is not the
aim of this post. You should try to use the method findAll from the UserDao class to get the list of all users.
Then you can iterate over such list and generate the HTML.
If you are using Thymeleaf, you can use th:each: http://www.thymeleaf.org/do...
△ ▽ • Reply • Share ›

joho_w • 3 years ago


Hi, the github link didn't work in my Eclipse Neon. Could you have a check?
△ ▽ • Reply • Share ›

joho_w > joho_w • 3 years ago


Figured out, should go parent level of the link, which is https://github.com/netgloo/...
1△ ▽ • Reply • Share ›

Chetan Khatri • 3 years ago


I am getting below Error:
"org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'entityManagerFactory'
defined in class path resource
[org/springframework/boot/autoconfigure/orm/jpa/HibernateJpaAutoConfiguration.class]: Invocation of init method
failed; nested exception is java.lang.NoClassDefFoundError: javassist/bytecode/ClassFile"

Entire print error stack

2016-08-17 11:03:14.714 ERROR 5786 --- [ main] o.s.boot.SpringApplication : Application startup failed

org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'entityManagerFactory'


defined in class path resource
[org/springframework/boot/autoconfigure/orm/jpa/HibernateJpaAutoConfiguration.class]: Invocation of init method
failed; nested exception is java.lang.NoClassDefFoundError: javassist/bytecode/ClassFile
at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCap
at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCa
at
see more

△ ▽ • Reply • Share ›

Andrea Mod > Chetan Khatri • 3 years ago


Hello Chetan, are you running the code above in this post or did you done some customizations?
You can try to download the whole code from our github repository and running it. It should works. Then try to
change it to get what you want and understand what is causing the error you have now.
Hope this wil help you.
△ ▽ • Reply • Share ›

MB • 3 years ago
I made no changes, but get
MySQLSyntaxErrorException: Unknown database 'netgloo_blog'
△ ▽ • Reply • Share ›

Andrea Mod > MB • 3 years ago

Looks like you didn't created the database in MySQL. You can create one named netgloo_blog or one with the
name you want and configure the database name within the application.properties. Also do not forget to set
username and password correctly.
△ ▽ • Reply • Share ›

gaiagilder • 3 years ago


Hey thanks for the great post, i'm experiencing problems running the application in an external tomcat7, catalina give
me this error "NoSuchMethodError:
java.util.concurrent.ConcurrentHashMap.keySet()Ljava/util/concurrent/ConcurrentHashMap$KeySetView;" this is
what say the doc: http://docs.spring.io/sprin...,
i'm building war with maven3 :) and there is jdk7 in the environment, can you check please?
Stack question (http://stackoverflow.com/qu...
△ ▽ • Reply • Share ›

John London • 4 years ago


When I try to put the code that's currently in the REST controller that creates an entity into the run() method on the
main Spring application class, it doesn't work (an entity isn't created). Do you know why this might happen please?
△ ▽ • Reply • Share ›

Andrea Mod > John London • 4 years ago

blog.netgloo.com/2014/10/27/using-mysql-in-spring-boot-via-spring-data-jpa-and-hibernate/ 7/9
7/5/2019 Using MySQL in Spring Boot via Spring Data JPA and Hibernate – Netgloo Blog
Andrea Mod > John London • 4 years ago
Maybe your code is executed before Spring instantiate the beans. Do you get some error?
You can try with this if you want to run some code at Spring Boot's startup. 
△ ▽ • Reply • Share ›

Shanmugapriya M • 4 years ago


Hi I did some changes in this code ... in DAO class i changed to

public Tenant findByTenant_Name(String name);


instead of email...

in controller class i did this


@RequestMapping("/get-by-tenant_name")
@ResponseBody
public String getByTenantName(String name) {
String userId;
try {
Tenant tenant = userDao.findByTenant_Name(name);
userId = String.valueOf(tenant.getTenant_id());
}
catch (Exception ex) {
return "User not found";
}
return "The user id is: " + userId;
}
see more

△ ▽ • Reply • Share ›

Andrea Mod > Shanmugapriya M • 4 years ago


Do you implemented all getters/setters methods on your Tenant class?.. It could be also a problem due to
some wrong name, take a look here for naming conventions using Spring Data Jpa.

But it's better to use StackOverflow for these type of problems. Then you could post here the link to your
question.
△ ▽ • Reply • Share ›

Shanmugapriya M > Andrea • 4 years ago


Thanks for your reply... Finally I got a solution... I gave the variable name as tenant_name... If I give as
tenantName its working... Underscore was removed tats all I did.
△ ▽ • Reply • Share ›

Show more replies

Senthil Muthiah • 4 years ago


Hi
Excellent Article. But i just wonder where you are specifiying the hiberate version ?
△ ▽ • Reply • Share ›

Andrea Mod > Senthil Muthiah • 4 years ago


Hi! Hibernate comes with spring-boot-starter-data-jpa so you get the version specified there. But I think you
can override such version in some way if you want to specify your own.
△ ▽ • Reply • Share ›

Senthil Muthiah > Andrea • 4 years ago


Thank you. But can you please refer some link which explains how to override versions.
△ ▽ • Reply • Share ›

Show more replies

Load more comments

ALSO ON NETGLOO

Installing Drush via Composer Spring Boot file upload with Ajax
1 comment • 3 years ago 43 comments • 4 years ago
Lenin Jose Meza Zarco — In CentOs 7, i need to install David — Hi.I have been trying to adapt your example as
Avatarphp-xml and create the symbolic link:$ sudo ln -s … Avatardescribed in: https://stackoverflow.com/q...but not be able.

Drupal 8: creating a custom Field Type Configuring GoDaddy’s shared hosting for Laravel 5
5 comments • 3 years ago and Git
Critter Power — How Do I add an image to this field? 32 comments • 4 years ago
Avatar Francis Claide Magallen — Hi, how about if I change my
Avatarremote production? how can I do that? for now I gotfatal:
remote production …

✉ Subscribe d Add Disqus to your siteAdd DisqusAdd 🔒 Disqus' Privacy PolicyPrivacy PolicyPrivacy

blog.netgloo.com/2014/10/27/using-mysql-in-spring-boot-via-spring-data-jpa-and-hibernate/ 8/9
7/5/2019 Using MySQL in Spring Boot via Spring Data JPA and Hibernate – Netgloo Blog

THIS BLOG IS DEVELOPED AND DESIGNED BY NETGLOO 


  

blog.netgloo.com/2014/10/27/using-mysql-in-spring-boot-via-spring-data-jpa-and-hibernate/ 9/9

You might also like