moved spring-rest-hal-browser to spring-data-rest module (#10019)

* moved spring-rest-hal-browser to spring-data-rest module

* removed module from build
This commit is contained in:
Amit Pandey 2020-09-14 21:53:09 +05:30 committed by GitHub
parent 540e719c11
commit 3563524c09
12 changed files with 22 additions and 94 deletions

View File

@ -697,7 +697,6 @@
<module>spring-remoting</module>
<module>spring-rest-angular</module>
<module>spring-rest-compress</module>
<module>spring-rest-hal-browser</module>
<module>spring-rest-http</module>
<module>spring-rest-http-2</module>
<module>spring-rest-query-language</module>
@ -1200,7 +1199,6 @@
<module>spring-remoting</module>
<module>spring-rest-angular</module>
<module>spring-rest-compress</module>
<module>spring-rest-hal-browser</module>
<module>spring-rest-http</module>
<module>spring-rest-query-language</module>
<module>spring-rest-shell</module>

View File

@ -12,6 +12,7 @@ This module contains articles about Spring Data REST
- [Customizing HTTP Endpoints in Spring Data REST](https://www.baeldung.com/spring-data-rest-customize-http-endpoints)
- [Spring Boot with SQLite](https://www.baeldung.com/spring-boot-sqlite)
- [Spring Data Web Support](https://www.baeldung.com/spring-data-web-support)
- [Spring REST and HAL Browser](https://www.baeldung.com/spring-rest-hal)
### The Course
The "REST With Spring" Classes: http://bit.ly/restwithspring

View File

@ -32,6 +32,15 @@
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-data-jpa</artifactId>
</dependency>
<!-- https://mvnrepository.com/artifact/org.springframework.data/spring-data-rest-hal-browser -->
<dependency>
<groupId>org.springframework.data</groupId>
<artifactId>spring-data-rest-hal-browser</artifactId>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-validation</artifactId>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-autoconfigure</artifactId>

View File

@ -1,4 +1,4 @@
package com.baeldung;
package com.baeldung.halbrowser;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;

View File

@ -1,14 +1,15 @@
package com.baeldung.config;
package com.baeldung.halbrowser.config;
import java.util.Random;
import java.util.stream.IntStream;
import com.baeldung.data.BookRepository;
import com.baeldung.model.Book;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.ApplicationArguments;
import org.springframework.boot.ApplicationRunner;
import org.springframework.stereotype.Component;
import java.util.Random;
import java.util.stream.IntStream;
import com.baeldung.halbrowser.data.BookRepository;
import com.baeldung.halbrowser.model.Book;
@Component
public class DBLoader implements ApplicationRunner {

View File

@ -1,4 +1,4 @@
package com.baeldung.config;
package com.baeldung.halbrowser.config;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Configuration;

View File

@ -1,14 +1,14 @@
package com.baeldung.data;
package com.baeldung.halbrowser.data;
import com.baeldung.model.Book;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.PagingAndSortingRepository;
import org.springframework.data.repository.query.Param;
import org.springframework.data.rest.core.annotation.RestResource;
import org.springframework.stereotype.Repository;
import com.baeldung.halbrowser.model.Book;
@Repository
public interface BookRepository extends PagingAndSortingRepository<Book, Long> {

View File

@ -1,4 +1,4 @@
package com.baeldung.model;
package com.baeldung.halbrowser.model;
import javax.persistence.*;
import javax.validation.constraints.NotNull;

View File

@ -1,6 +0,0 @@
## Spring REST HAL Browser
This module contains articles about Spring REST with the HAL browser
### Relevant Articles:
- [Spring REST and HAL Browser](https://www.baeldung.com/spring-rest-hal)

View File

@ -1,62 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<artifactId>spring-rest-hal-browser</artifactId>
<version>1.0-SNAPSHOT</version>
<name>spring-rest-hal-browser</name>
<parent>
<groupId>com.baeldung</groupId>
<artifactId>parent-boot-2</artifactId>
<version>0.0.1-SNAPSHOT</version>
<relativePath>../parent-boot-2</relativePath>
</parent>
<dependencies>
<!-- https://mvnrepository.com/artifact/org.springframework.boot/spring-boot-starter-web -->
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-web</artifactId>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-validation</artifactId>
</dependency>
<!-- https://mvnrepository.com/artifact/org.springframework.boot/spring-boot-starter-data-jpa -->
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-data-jpa</artifactId>
</dependency>
<!-- https://mvnrepository.com/artifact/org.springframework.data/spring-data-rest-hal-browser -->
<dependency>
<groupId>org.springframework.data</groupId>
<artifactId>spring-data-rest-hal-browser</artifactId>
</dependency>
<!-- https://mvnrepository.com/artifact/com.h2database/h2 -->
<dependency>
<groupId>com.h2database</groupId>
<artifactId>h2</artifactId>
</dependency>
</dependencies>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<configuration>
<source>${source.version}</source>
<target>${target.version}</target>
</configuration>
</plugin>
</plugins>
</build>
<properties>
<source.version>1.8</source.version>
<target.version>1.8</target.version>
</properties>
</project>

View File

@ -1,13 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<configuration>
<appender name="STDOUT" class="ch.qos.logback.core.ConsoleAppender">
<encoder>
<pattern>%d{HH:mm:ss.SSS} [%thread] %-5level %logger{36} - %msg%n
</pattern>
</encoder>
</appender>
<root level="INFO">
<appender-ref ref="STDOUT" />
</root>
</configuration>