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)
|
- [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)
|
- [“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)
|
- [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,6 +20,11 @@
|
|||||||
<groupId>org.springframework.boot</groupId>
|
<groupId>org.springframework.boot</groupId>
|
||||||
<artifactId>spring-boot-starter-data-jpa</artifactId>
|
<artifactId>spring-boot-starter-data-jpa</artifactId>
|
||||||
</dependency>
|
</dependency>
|
||||||
|
<dependency>
|
||||||
|
<groupId>org.javers</groupId>
|
||||||
|
<artifactId>javers-spring-boot-starter-sql</artifactId>
|
||||||
|
<version>${javers.version}</version>
|
||||||
|
</dependency>
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>com.h2database</groupId>
|
<groupId>com.h2database</groupId>
|
||||||
<artifactId>h2</artifactId>
|
<artifactId>h2</artifactId>
|
||||||
@ -27,4 +32,8 @@
|
|||||||
</dependency>
|
</dependency>
|
||||||
</dependencies>
|
</dependencies>
|
||||||
|
|
||||||
|
<properties>
|
||||||
|
<javers.version>6.5.3</javers.version>
|
||||||
|
</properties>
|
||||||
|
|
||||||
</project>
|
</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)
|
- [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)
|
- [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)
|
- [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>
|
<groupId>org.springframework.boot</groupId>
|
||||||
<artifactId>spring-boot-starter-data-redis</artifactId>
|
<artifactId>spring-boot-starter-data-redis</artifactId>
|
||||||
</dependency>
|
</dependency>
|
||||||
<dependency>
|
|
||||||
<groupId>org.javers</groupId>
|
|
||||||
<artifactId>javers-spring-boot-starter-sql</artifactId>
|
|
||||||
<version>${javers.version}</version>
|
|
||||||
</dependency>
|
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>org.springframework.boot</groupId>
|
<groupId>org.springframework.boot</groupId>
|
||||||
<artifactId>spring-boot-starter-data-mongodb</artifactId>
|
<artifactId>spring-boot-starter-data-mongodb</artifactId>
|
||||||
@ -164,7 +159,6 @@
|
|||||||
</profiles>
|
</profiles>
|
||||||
|
|
||||||
<properties>
|
<properties>
|
||||||
<javers.version>5.14.0</javers.version>
|
|
||||||
<git-commit-id-plugin.version>2.2.4</git-commit-id-plugin.version>
|
<git-commit-id-plugin.version>2.2.4</git-commit-id-plugin.version>
|
||||||
<source.version>1.8</source.version>
|
<source.version>1.8</source.version>
|
||||||
<target.version>1.8</target.version>
|
<target.version>1.8</target.version>
|
||||||
|
@ -1,6 +1,5 @@
|
|||||||
package com.baeldung.disableautoconfig;
|
package com.baeldung.disableautoconfig;
|
||||||
|
|
||||||
import org.javers.spring.boot.sql.JaversSqlAutoConfiguration;
|
|
||||||
import org.springframework.boot.SpringApplication;
|
import org.springframework.boot.SpringApplication;
|
||||||
import org.springframework.boot.autoconfigure.SpringBootApplication;
|
import org.springframework.boot.autoconfigure.SpringBootApplication;
|
||||||
import org.springframework.boot.autoconfigure.data.web.SpringDataWebAutoConfiguration;
|
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;
|
import org.springframework.boot.autoconfigure.orm.jpa.HibernateJpaAutoConfiguration;
|
||||||
|
|
||||||
@SpringBootApplication(exclude = {DataSourceAutoConfiguration.class,
|
@SpringBootApplication(exclude = {DataSourceAutoConfiguration.class,
|
||||||
JaversSqlAutoConfiguration.class, SpringDataWebAutoConfiguration.class,
|
SpringDataWebAutoConfiguration.class, DataSourceTransactionManagerAutoConfiguration.class,
|
||||||
DataSourceTransactionManagerAutoConfiguration.class, HibernateJpaAutoConfiguration.class})
|
HibernateJpaAutoConfiguration.class})
|
||||||
public class SpringDataJPA {
|
public class SpringDataJPA {
|
||||||
|
|
||||||
public static void main(String[] args) {
|
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.driver-class-name=org.h2.Driver
|
||||||
spring.datasource.username=sa
|
spring.datasource.username=sa
|
||||||
spring.datasource.password=
|
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…
x
Reference in New Issue
Block a user