File tree Expand file tree Collapse file tree 2 files changed +11
-3
lines changed
web-front/src/main/java/com/isystk/sample/web/front Expand file tree Collapse file tree 2 files changed +11
-3
lines changed Original file line number Diff line number Diff line change @@ -34,7 +34,7 @@ SpringBoot & React.js の学習用サンプルアプリケーションです
34
34
35
35
#### ■ アプリケーション
36
36
37
- - SpringBoot 2.7
37
+ - SpringBoot 2.5
38
38
- React 18
39
39
- Typescript
40
40
- Bootstrap 4
@@ -420,6 +420,12 @@ Dockerを起動後に以下のURLにアクセスすると利用可能です。
420
420
421
421
http://localhost:8983/
422
422
423
+ ### Swagger
424
+ 作成したAPIの一覧を確認したりデータを検索できます。<br >
425
+ フロントを起動後に以下のURLにアクセスすると利用可能です。
426
+
427
+ http://localhost:8080/swagger-ui/
428
+
423
429
## 🔗 参考
424
430
425
431
| プロジェクト| 概要|
Original file line number Diff line number Diff line change 1
1
package com .isystk .sample .web .front ;
2
2
3
+ import java .util .Collections ;
3
4
import org .springframework .context .annotation .Bean ;
4
5
import org .springframework .context .annotation .Configuration ;
5
6
@@ -18,10 +19,11 @@ public Docket api() {
18
19
.select ()
19
20
// // パッケージを指定して表示するAPIを絞り込む
20
21
// .apis(RequestHandlerSelectors.basePackage("com.isystk.sample.web.front.controller.api.v1"))
21
- // .paths(PathSelectors.any())
22
- // パスを指定して絞り込むこともできる
22
+ // パスを指定して絞り込む
23
23
.paths (PathSelectors .ant ("/api/v1/**" ))
24
24
.build ()
25
+ .protocols (Collections .singleton ("https" ))
26
+ .host ("localhost" )
25
27
.apiInfo (apiInfo ());
26
28
}
27
29
You can’t perform that action at this time.
0 commit comments