Using spring boot JPA features in plain Java project - spring-boot-jpa

I want to have a plain java project making use of spring boot JPA support, like JpaRepository, to make a library which I can inject into other spring boot projects for database operations.
Is it possible?

Related

spring data jpa and jpa implementation

As we know that, spring data jpa just adds extra layer on jpa provider. Spring community provides some spring data jpa starter example here
https://spring.io/guides/gs/accessing-data-jpa/#initial
I didn't see any jpa provider used in this example, how could that happen?
Thanks
Spring boot provide jpa
For example, if you want to use Spring and JPA for database access, it is sufficient if you include spring-boot-starter-data-jpa dependency in your project.

Spring Data without Spring Boot

I want to use SpringData (JPA I guess to access Postgres) with my Spring / GWT project. I cannot use SpringBoot because it does not allow me to register a simple HttpServlet (the GWT RemoteServiceServlet). At least, I can't figure that out due to too much magic and poor documentation.
Can anyone point me at a sample Maven project that uses SpringData without SpringBoot?

Can I create a library project using SpringBoot?

Can I create a library project using SpringBoot?
Import jars from a Java project that does not uses SpringBoot.
According to documentation : Spring Boot
Spring Boot makes it easy to create stand-alone, production-grade Spring based Applications that you can "just run".
IMHO, If you want to create a library, you can create with regular spring project.
Surely you can. You can create another framework on top of spring boot and use that as a dependency just like how you use spring boot in your project

Spring JPA - require JDBC and Hibernate Jar's on class path

Am new to the spring frameworks ,Iam planning to create a Spring Rest application with JPA . am using Mysql database .
I have downloaded the Spring initializer with Web and JPA as dependdencies with Maven. but while Maven install am getting error asking for MYSQL connector jar , so i have adde the maven enetry for the same , on the second try it asking for the hibernate jar .
So am confused like what is the spring-boot-starter-data-jpa dependency doing ? if we need to add the jars into class path , then what is the use of spring-boot-starter-data-jpa ?
spring-boot-starter-data-jpa is a combination of Spring Boot, which itself consists of the Spring framework core and is meant for rapid stand-alone application development, and Spring Data JPA which is Spring's own opinionated abstraction of JPA. It's basically just an interface with a few convenience classes, you still need to supply the JDBC driver for the corresponding database (MySQL in your case) and an actual ORM implementation (the layer that translates your database rows to Java objects and gives you CRUD functionality).

What are the similarities between Spring and Spring Boot

I have a requirement that I have to use Spring Boot with JSF as user interface, as of now I am using JSF with spring other modules. So, I want know the similarities, differences and advantages of Spring boot over Spring other modules.
Long story short, Spring Boot is highly opinionated wrapper for Spring Framework with a lot of production and cloud ready features. It can significantly reduce amount of your configuration if you follow conventions.
Start reading here.
You can not compare spring boot and spring framework. Spring Boot is a new project aims to help spring development by auto configuration of things required to run the spring application.
So, if you have spring application, you can use spring boot to run your Spring application without worrying about writing the XML configuration.

Resources