zoukankan      html  css  js  c++  java
  • 一、Spring Boot 推荐目录结构

    一、Spring Boot 推荐目录结构

    (1)代码层的结构

      根目录:com.springboot

        1.工程启动类(ApplicationServer.java)置于com.springboot.build包下

        2.实体类(domain)置于com.springboot.domain

        3.数据访问层(Dao)置于com.springboot.repository

        4.数据服务层(Service)置于com,springboot.service,数据服务的实现接口(serviceImpl)至于com.springboot.service.impl

        5.前端控制器(Controller)置于com.springboot.controller

        6.工具类(utils)置于com.springboot.utils

        7.常量接口类(constant)置于com.springboot.constant

        8.配置信息类(config)置于com.springboot.config

        9.数据传输类(vo)置于com.springboot.vo

    (2)资源文件的结构

      根目录:src/main/resources

        1.配置文件(.properties/.json等)置于config文件夹下

        2.国际化(i18n))置于i18n文件夹下

        3.spring.xml置于META-INF/spring文件夹下

        4.页面以及js/css/image等置于static文件夹下的各自文件下

    (3)说明

      本文建议方案参考自:https://blog.csdn.net/u012675150/article/details/79351990 ,感谢zmxt1314同学分享。

    宋兴柱(Sindrol):转载内容,请标明出处,谢谢!
  • 相关阅读:
    Ubuntu1804命令行安装vmtool
    Pyspider的基本使用
    HDU-4507
    CF264BGood Sequences
    CF285D.D. Permutation Sum
    我罗斯方块最终篇(Player类、Game类)
    ES学习(三)--查询
    ES学习(二)--增删改查
    GIT学习
    ES学习(一)--核心概念,NRT、索引、分片、副本
  • 原文地址:https://www.cnblogs.com/wmxl/p/12514458.html
Copyright © 2011-2022 走看看