Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 711a880

Browse files
committed
Updated styles
1 parent 1f70df7 commit 711a880

1 file changed

Lines changed: 10 additions & 10 deletions

File tree

readme.md

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -83,17 +83,17 @@ that add to test coverage and documentation is always welcome! :)
8383

8484
##### Breaking changes in 0.8.4 since 0.8.2 that would need the configurations to be altered are:
8585
1. Remove the following autowired fields in your spring configuration
86-
```java
86+
```java
8787
@Autowired
8888
private SpringSwaggerModelConfig springSwaggerModelConfig;
89-
```
89+
```
9090
2. Add the following autowired fields in your spring configuration
91-
```java
91+
```java
9292
@Autowired
9393
private ModelProvider modelProvider;
94-
```
94+
```
9595
3. Make sure any customizations to the object mapper are appropriately added in an ObjectMapper bean definition
96-
```java
96+
```java
9797
/**
9898
* Object mapper.
9999
*
@@ -104,21 +104,21 @@ that add to test coverage and documentation is always welcome! :)
104104
//This is the opportunity to override object mapper behavior
105105
return new ObjectMapper();
106106
}
107-
```
107+
```
108108
4. Configure the swaggerApiResourceListing bean with the model provider that is autowired or provide your own
109109
implementation
110-
```java
110+
```java
111111
// Set the model provider, uses the default autowired model provider.
112112
swaggerApiResourceListing.setModelProvider(modelProvider);
113-
```
113+
```
114114

115115
5. Configure the blah bean with an implementation of the resource grouping strategy
116-
```java
116+
```java
117117
//How to group request mappings to ApiResource's typically by spring controller classes. This is a hook to provide
118118
// a custom implementation of the grouping strategy. By default we use SpringGroupingStrategy. An alternative is
119119
// to use ClassOrApiAnnotationResourceGrouping to group using Api annotation.
120120
apiListingReferenceScanner.setResourceGroupingStrategy(springSwaggerConfig.defaultResourceGroupingStrategy());
121-
```
121+
```
122122

123123
##### Features
124124
- Allows configuration of default response messages based on HTTP methods which are displayed on all api operations on swagger-ui

0 commit comments

Comments
 (0)