-
Notifications
You must be signed in to change notification settings - Fork 103
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
* Update gradle-plugin version (#269) * Update spring poot version to 3.0.0 in the sample project * Use jre guava version * Removed line with System.out.println * Remove unused h2 database config --------- Co-authored-by: Wojciech Odrobina <wodrobina@epages.com>
- Loading branch information
Showing
13 changed files
with
115 additions
and
88 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 4 additions & 0 deletions
4
samples/restdocs-api-spec-sample-web-test-client/src/test/resources/application.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
spring: | ||
autoconfigure: | ||
exclude: | ||
- org.springframework.boot.autoconfigure.web.servlet.WebMvcAutoConfiguration |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
26 changes: 16 additions & 10 deletions
26
samples/restdocs-api-spec-sample/src/main/java/com/epages/restdocs/apispec/sample/Cart.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
5 changes: 3 additions & 2 deletions
5
...docs-api-spec-sample/src/main/java/com/epages/restdocs/apispec/sample/CartRepository.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,10 @@ | ||
package com.epages.restdocs.apispec.sample; | ||
|
||
import org.springframework.data.repository.CrudRepository; | ||
import org.springframework.data.repository.PagingAndSortingRepository; | ||
import org.springframework.data.rest.core.annotation.RepositoryRestResource; | ||
|
||
@RepositoryRestResource(exported = false) | ||
public interface CartRepository extends PagingAndSortingRepository<Cart, Long> { | ||
@RepositoryRestResource | ||
public interface CartRepository extends CrudRepository<Cart, Long>, PagingAndSortingRepository<Cart, Long> { | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
25 changes: 12 additions & 13 deletions
25
...es/restdocs-api-spec-sample/src/main/java/com/epages/restdocs/apispec/sample/Product.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
3 changes: 2 additions & 1 deletion
3
...s-api-spec-sample/src/main/java/com/epages/restdocs/apispec/sample/ProductRepository.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,7 @@ | ||
package com.epages.restdocs.apispec.sample; | ||
|
||
import org.springframework.data.repository.CrudRepository; | ||
import org.springframework.data.repository.PagingAndSortingRepository; | ||
|
||
public interface ProductRepository extends PagingAndSortingRepository<Product, Long> { | ||
public interface ProductRepository extends CrudRepository<Product, Long>, PagingAndSortingRepository<Product, Long> { | ||
} |
8 changes: 4 additions & 4 deletions
8
samples/restdocs-api-spec-sample/src/main/resources/application.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
spring: | ||
output: | ||
ansi: | ||
enabled: 'ALWAYS' | ||
spring: | ||
output: | ||
ansi: | ||
enabled: 'ALWAYS' |
Oops, something went wrong.