【问题标题】:Vue.js and spring boot project architectureVue.js 和 Spring Boot 项目架构
【发布时间】:2018-12-29 15:15:01
【问题描述】:

我对弹簧靴很熟悉。现在我当然想使用Vue.jsthymeleaf(只有少数像片段这样的东西)和Spring Boot

我不确定项目结构。我真的需要frontend clientbackend client 吗?在做研究的时候,我经常看到这样的树,上面有三个pom.xml

       ├── project
       ├── backend
       │   ├── src
       │   └── pom.xml
       ├── frontend
       │   ├── src
       │   └── pom.xml
       └── pom.xml

现在我的项目是这样的:

   ├── application.properties
   ├── com
   │   └── elps
   │       └── fileconverter
   │           ├── controller
   │           │   └── FileConverterController.class
   │           └── FileconverterApplication.class
   ├── static
   │   └── css
   │       ├── normalize.css
   │       └── skeleton.css
   └── templates
       ├── fragments
       │   ├── footer.html
       │   └── header.html
       └── index.html

使用Vue.jsSpring Boot 构建项目的常用方法是什么? 我得到的唯一要求是不要执行脚本within HTML 文件。

【问题讨论】:

    标签: spring-boot vue.js architecture project-structure


    【解决方案1】:

    我关注https://blog.codecentric.de/en/2018/04/spring-boot-vuejs/,它有 3 个 pom.xml。但是您的项目结构也没有问题。我个人使用 src/main/java, src/main/webapp/ 来分离层,并使用 gradle 来构建带有嵌入式 web 容器的应用程序。这适用于简单的 Web 应用程序 - 可扩展性超出范围。

    【讨论】:

      猜你喜欢
      • 2021-05-29
      • 2017-02-18
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2018-07-08
      • 2019-06-23
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多