0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

Vue3+Springboot RestApiの構築

Last updated at Posted at 2022-05-29

Ⅰ. 前提知識

1.SPAと3大JavaScriptフレームワーク(React、Vue、AnguarJs)
2.JAVA、Springboot、OpenAPI
3.Docker、その他

Ⅱ. 技術要素

1.フロントエンド
Vue.js3、BootStrap、TypeScript(必須ではない)
2.バックエンド
Springboot、MyBatis
3.その他
DB:mysql、サーバ:Docker

Ⅲ.SPAのフレームワーク

image.png

Ⅳ.責務配置

image.png

Ⅴ. アーキテクチャ

image.png

Ⅵ. 実装手順(摘要)

1.Rest API部分
①. Spring Boot DevTools
②. Lombok
③. Validation
④. MyBatis Framework
⑤. MySQL Driver
⑥. Spring Web
⑦. Rest Repositories

2. Vue3部分
①. Vue3 CLI
②. axios (apiを呼び出すため)

Ⅶ. ディレクトリ構成

1.Rest Api部分
Sample/
  controller/
    XXXController.java  ※コントローラー
  mapper/
    XXXMapper.java  ※マッパー
  model/
    XXX.java  ※モデル
  service
    XXXService.java  ※サービス

src/main/resources/ ※MyBatis仕様
  sample/
    mapper/
     XXXMapper.xml  ※SqlXML

2. Vue3部分
src/
 assest/css/
  bootstrap.min.css ※CSSファイル
 components/
  MenuList.vue  ※コンポーネント
 router/
  index.js  ※ルーティング
 store/
  index.js  ※Vuex
 views/
  XXX.vue ※ページ作成
App.vue ※ホームページ

Ⅷ. 課題と展望

1.課題
フロントエンドとバックエンドの仕様連携が一定程度の難度がある

2.展望
システムを高度的なコンポネント化することが期待でき

Ⅸ. 参考文献

1.Spring Boot 2 応用: REST x Swagger UI、MyBatis から AWS へのデプロイまで|原田 けいと, 竹田 甘地, Robert Segawa
2.Vue.js3超入門|掌田津耶乃

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?