Giter VIP home page Giter VIP logo

art-springboot's Introduction

#ART-SpringBoot API DOC: http://localhost:10287/doc.html

包名规范

  1. 项目基本包:com.nuaa.art.{模块名}
  2. config:配置类
  3. common:公共类,定义常量类,组件
  4. entity: 数据库相关的实体类
  5. model:业务数据模型类(参数模型,数据传输模型等)
  6. controller:控制层接口
  7. service: 服务层,复杂的数据库操作,业务逻辑等。包含高层DAO服务与低层controller服务
  8. mapper:数据库, 简单的查询,要套在service中执行

模块功能

  1. main 主模块,启动类和项目配置
  2. common 公共工具模块,放置所有模块都会用到的工具(如日志工具,文件读写工具)。
  3. user 用户模块,与用户业务相关的实现。
  4. vrm 需求工程模块,实现领域概念库相关功能与VRM模型构建。
  5. vrmCheck 模型分析模块,实现VRM模型的一致性完整性静态分析。
  6. vrmVerify需求工程模块,实现VRM动态模型验证。
  7. atg 测试用例自动生成模块,实现ATG相关业务

业务模块负责各自模块的功能实现

怎么新增模块?

  1. 创建新模块,模块的包名形如 com.nuaa.art.xxx,
  2. 删除模块目录下的.git文件夹
  3. 文件 > 设置 > 版本控制 > 目录映射; 删除模块目录的路径映射,

以上操作是为了避免生成多个git仓库

  1. 删除模块的主文件。
  2. 在ART父模块的pom.xml中的增加模块名。
  3. 复制VRM模块下的pom文件到模块文件中,并修改、、为模块对应的属性。
  4. 在main的pom.xml中添加对新模块的

关于项目打包?

打包工具链配置已经在主模块中配置完成,直接进行maven compile即可。打包目录为out文件夹。 对于项目中其他模块,打包配置如下即可。

<build>
        <plugins>
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-compiler-plugin</artifactId>
                <version>${maven.compiler.version}</version>
                <configuration>
                    <source>${java.version}</source>
                    <target>${java.version}</target>
                    <encoding>${project.build.sourceEncoding}</encoding>
                    <!-- 用来传递编译器自身不包含但是却支持的参数选项 -->
                    <!--                    <compilerArguments>-->
                    <!--                        <verbose/>-->
                    <!--                        &lt;!&ndash; windows环境(二选一) &ndash;&gt;-->
                    <!--                        <bootclasspath>${java.home}/lib/rt.jar:${java.home}/lib/jce.jar</bootclasspath>-->
                    <!--                        &lt;!&ndash; Linux环境(二选一) &ndash;&gt;-->
                    <!--                        <bootclasspath>${java.home}/lib/rt.jar:${java.home}/lib/jce.jar</bootclasspath>-->
                    <!--                    </compilerArguments>-->
                </configuration>
            </plugin>
        </plugins>
    </build>

怎么在菜单栏添加功能菜单?(前端项目)

首先在menu/index.ts文件中添加菜单属性。

MenuItem {
  name: string //菜单标识(必须)
  label: string // 菜单标签(必须)
  component?: any //菜单响应弹窗(非必须)
  route?: string //菜单响应URL(非必须)
    // component、route必须有一项不为空才能保证菜单正常响应
  params?: any // 传递参数(非必须)
  diasble?: boolean //已弃用
    // (通过后端返回的用户权限来决定该项菜单是否可用,具体实现看MenuView组件)
  children?: MenuItem[] // 子菜单
}

在前端添加菜单代码后,在root用户下选择用户管理进行用户权限的修改即可。

art-springboot's People

Contributors

konsin avatar brilliant2blue avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.