Merge pull request #12032 from anuragkumawat/master
JAVA-8372 Split or move spring-boot-data module
This commit is contained in:
commit
d535eefb84
|
@ -4,3 +4,4 @@
|
|||
- [Spring Boot: Customize the Jackson ObjectMapper](https://www.baeldung.com/spring-boot-customize-jackson-objectmapper)
|
||||
- [“HttpMessageNotWritableException: No converter found for return value of type”](https://www.baeldung.com/spring-no-converter-found)
|
||||
- [Creating a Read-Only Repository with Spring Data](https://www.baeldung.com/spring-data-read-only-repository)
|
||||
- [Using JaVers for Data Model Auditing in Spring Data](https://www.baeldung.com/spring-data-javers-audit)
|
||||
|
|
|
@ -20,11 +20,20 @@
|
|||
<groupId>org.springframework.boot</groupId>
|
||||
<artifactId>spring-boot-starter-data-jpa</artifactId>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.javers</groupId>
|
||||
<artifactId>javers-spring-boot-starter-sql</artifactId>
|
||||
<version>${javers.version}</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>com.h2database</groupId>
|
||||
<artifactId>h2</artifactId>
|
||||
<scope>runtime</scope>
|
||||
</dependency>
|
||||
</dependencies>
|
||||
|
||||
<properties>
|
||||
<javers.version>6.5.3</javers.version>
|
||||
</properties>
|
||||
|
||||
</project>
|
|
@ -0,0 +1,22 @@
|
|||
spring.h2.console.path=/h2
|
||||
spring.h2.console.enabled=true
|
||||
spring.datasource.url=jdbc:h2:mem:testdb
|
||||
spring.datasource.driver-class-name=org.h2.Driver
|
||||
spring.datasource.username=sa
|
||||
spring.datasource.password=
|
||||
javers.mappingStyle=FIELD
|
||||
javers.algorithm=SIMPLE
|
||||
javers.commitIdGenerator=synchronized_sequence
|
||||
javers.prettyPrint=true
|
||||
javers.typeSafeValues=false
|
||||
javers.newObjectSnapshot=true
|
||||
javers.packagesToScan=
|
||||
javers.auditableAspectEnabled=true
|
||||
javers.springDataAuditableRepositoryAspectEnabled=true
|
||||
javers.sqlSchema=
|
||||
javers.sqlSchemaManagementEnabled=true
|
||||
javers.prettyPrintDateFormats.localDateTime=dd MMM yyyy, HH:mm:ss
|
||||
javers.prettyPrintDateFormats.zonedDateTime=dd MMM yyyy, HH:mm:ssZ
|
||||
javers.prettyPrintDateFormats.localDate=dd MMM yyyy
|
||||
javers.prettyPrintDateFormats.localTime=HH:mm:ss
|
||||
|
|
@ -11,4 +11,4 @@ This module contains articles about Spring Boot with Spring Data
|
|||
- [Spring Custom Property Editor](https://www.baeldung.com/spring-mvc-custom-property-editor)
|
||||
- [Using @JsonComponent in Spring Boot](https://www.baeldung.com/spring-boot-jsoncomponent)
|
||||
- [Guide To Running Logic on Startup in Spring](https://www.baeldung.com/running-setup-logic-on-startup-in-spring)
|
||||
- [Using JaVers for Data Model Auditing in Spring Data](https://www.baeldung.com/spring-data-javers-audit)
|
||||
|
||||
|
|
|
@ -19,11 +19,6 @@
|
|||
<groupId>org.springframework.boot</groupId>
|
||||
<artifactId>spring-boot-starter-data-redis</artifactId>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.javers</groupId>
|
||||
<artifactId>javers-spring-boot-starter-sql</artifactId>
|
||||
<version>${javers.version}</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.springframework.boot</groupId>
|
||||
<artifactId>spring-boot-starter-data-mongodb</artifactId>
|
||||
|
@ -164,7 +159,6 @@
|
|||
</profiles>
|
||||
|
||||
<properties>
|
||||
<javers.version>5.14.0</javers.version>
|
||||
<git-commit-id-plugin.version>2.2.4</git-commit-id-plugin.version>
|
||||
<source.version>1.8</source.version>
|
||||
<target.version>1.8</target.version>
|
||||
|
|
|
@ -1,6 +1,5 @@
|
|||
package com.baeldung.disableautoconfig;
|
||||
|
||||
import org.javers.spring.boot.sql.JaversSqlAutoConfiguration;
|
||||
import org.springframework.boot.SpringApplication;
|
||||
import org.springframework.boot.autoconfigure.SpringBootApplication;
|
||||
import org.springframework.boot.autoconfigure.data.web.SpringDataWebAutoConfiguration;
|
||||
|
@ -9,8 +8,8 @@ import org.springframework.boot.autoconfigure.jdbc.DataSourceTransactionManagerA
|
|||
import org.springframework.boot.autoconfigure.orm.jpa.HibernateJpaAutoConfiguration;
|
||||
|
||||
@SpringBootApplication(exclude = {DataSourceAutoConfiguration.class,
|
||||
JaversSqlAutoConfiguration.class, SpringDataWebAutoConfiguration.class,
|
||||
DataSourceTransactionManagerAutoConfiguration.class, HibernateJpaAutoConfiguration.class})
|
||||
SpringDataWebAutoConfiguration.class, DataSourceTransactionManagerAutoConfiguration.class,
|
||||
HibernateJpaAutoConfiguration.class})
|
||||
public class SpringDataJPA {
|
||||
|
||||
public static void main(String[] args) {
|
||||
|
|
|
@ -6,19 +6,5 @@ spring.datasource.url=jdbc:h2:mem:testdb
|
|||
spring.datasource.driver-class-name=org.h2.Driver
|
||||
spring.datasource.username=sa
|
||||
spring.datasource.password=
|
||||
javers.mappingStyle=FIELD
|
||||
javers.algorithm=SIMPLE
|
||||
javers.commitIdGenerator=synchronized_sequence
|
||||
javers.prettyPrint=true
|
||||
javers.typeSafeValues=false
|
||||
javers.newObjectSnapshot=true
|
||||
javers.packagesToScan=
|
||||
javers.auditableAspectEnabled=true
|
||||
javers.springDataAuditableRepositoryAspectEnabled=true
|
||||
javers.sqlSchema=
|
||||
javers.sqlSchemaManagementEnabled=true
|
||||
javers.prettyPrintDateFormats.localDateTime=dd MMM yyyy, HH:mm:ss
|
||||
javers.prettyPrintDateFormats.zonedDateTime=dd MMM yyyy, HH:mm:ssZ
|
||||
javers.prettyPrintDateFormats.localDate=dd MMM yyyy
|
||||
javers.prettyPrintDateFormats.localTime=HH:mm:ss
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue