Skip to content

Commit

Permalink
moved spring-rest-hal-browser to spring-data-rest module (eugenp#10019)
Browse files Browse the repository at this point in the history
* moved spring-rest-hal-browser to spring-data-rest module

* removed module from build
  • Loading branch information
amit2103 authored Sep 14, 2020
1 parent f47741a commit d73bc7a
Show file tree
Hide file tree
Showing 12 changed files with 22 additions and 94 deletions.
2 changes: 0 additions & 2 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down Expand Up @@ -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>
Expand Down
1 change: 1 addition & 0 deletions spring-data-rest/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
9 changes: 9 additions & 0 deletions spring-data-rest/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.baeldung;
package com.baeldung.halbrowser;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
Expand Down
Original file line number Diff line number Diff line change
@@ -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 {
Expand Down
Original file line number Diff line number Diff line change
@@ -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;
Expand Down
Original file line number Diff line number Diff line change
@@ -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> {

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.baeldung.model;
package com.baeldung.halbrowser.model;

import javax.persistence.*;
import javax.validation.constraints.NotNull;
Expand Down
6 changes: 0 additions & 6 deletions spring-rest-hal-browser/README.md

This file was deleted.

62 changes: 0 additions & 62 deletions spring-rest-hal-browser/pom.xml

This file was deleted.

Empty file.
13 changes: 0 additions & 13 deletions spring-rest-hal-browser/src/main/resources/logback.xml

This file was deleted.

0 comments on commit d73bc7a

Please sign in to comment.