File tree 4 files changed +8
-6
lines changed
main/java/com/patternknife/securityhelper/oauth2/config/security/web
4 files changed +8
-6
lines changed Original file line number Diff line number Diff line change 22
22
23
23
#### Import the SQL file in the `` mysql `` folder.
24
24
25
- #### The API information is on `` src/main/asciidoc/ api-app.adoc `` , managed by Spring Rest Doc.
25
+ #### The API information is found on `` http://localhost:8505/docs/ api-app.html `` , managed by Spring Rest Doc
26
26
27
27
28
28
Original file line number Diff line number Diff line change @@ -218,7 +218,7 @@ http://maven.apache.org/xsd/maven-4.0.0.xsd">
218
218
<plugin >
219
219
<groupId >org.asciidoctor</groupId >
220
220
<artifactId >asciidoctor-maven-plugin</artifactId >
221
- <version >1.5.8 </version >
221
+ <version >2.2.6 </version >
222
222
<executions >
223
223
<execution >
224
224
<id >generate-docs</id >
File renamed without changes.
Original file line number Diff line number Diff line change 4
4
import lombok .RequiredArgsConstructor ;
5
5
import org .springframework .context .annotation .Configuration ;
6
6
import org .springframework .http .HttpMethod ;
7
- import org .springframework .web .servlet .config .annotation .CorsRegistry ;
8
- import org .springframework .web .servlet .config .annotation .EnableWebMvc ;
9
- import org .springframework .web .servlet .config .annotation .InterceptorRegistry ;
10
- import org .springframework .web .servlet .config .annotation .WebMvcConfigurer ;
7
+ import org .springframework .web .servlet .config .annotation .*;
11
8
12
9
@ RequiredArgsConstructor
13
10
@ Configuration
@@ -28,6 +25,11 @@ public void addCorsMappings(CorsRegistry registry) {
28
25
HttpMethod .DELETE .name ());
29
26
}
30
27
28
+ @ Override
29
+ public void addResourceHandlers (ResourceHandlerRegistry registry ) {
30
+ registry .addResourceHandler ("/docs/**" ).addResourceLocations ("classpath:/static/docs/" );
31
+ }
32
+
31
33
32
34
33
35
@ Override
You can’t perform that action at this time.
0 commit comments