美文网首页
hsweb3-demo学习

hsweb3-demo学习

作者: 小皮球_1927 | 来源:发表于2018-06-25 16:59 被阅读0次

    1. github下载地址

    hsweb3-demo
    下载并导入到 idea 中,运行,访问 http://localhost:8089可以进入页面

      默认账号密码是 admin/admin
    
    image.png

    自带的功能可以说是相当的强大了,大家可以自行体验

    2. 项目介绍

    hs-web-demo 是 maven 结构


    image.png

    前端不是我们关注的重点,我们直接看代码可以发现,只提供了2个Controller,就直接可以使用完整的 hs-web 所给我们带来的功能!代码相当的简洁

    3. swagger api 查看

    访问 http://localhost:8089/swagger-ui.html 可以查看到整个应用所有的 api

    image.png
    我就不贴完了,太多
    

    4. pom.xml

    上面提到的所有的 api 请求,都是通过 pom.xml 引入相关的 jar 实现的,hs-web 默认提供了这些功能.

    <?xml version="1.0" encoding="UTF-8"?>
    <project xmlns="http://maven.apache.org/POM/4.0.0"
             xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
             xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
        ...
        <dependencies>
    
            <!--test-->
    
            <dependency>
                <groupId>org.springframework.boot</groupId>
                <artifactId>spring-boot-starter-test</artifactId>
                <scope>test</scope>
            </dependency>
    
            <!--<dependency>-->
            <!--<groupId>org.hswebframework.web</groupId>-->
            <!--<artifactId>hsweb-datasource-jta</artifactId>-->
            <!--<version>${hsweb.framework.version}</version>-->
            <!--</dependency>-->
            <!--权限管理-->
            <dependency>
                <groupId>org.hswebframework.web</groupId>
                <artifactId>hsweb-system-authorization-starter</artifactId>
            </dependency>
    
            <!--开发人员工具-->
            <dependency>
                <groupId>org.hswebframework.web</groupId>
                <artifactId>hsweb-system-dev-tools</artifactId>
                <version>${hsweb.framework.version}</version>
            </dependency>
    
            <!--权限控制-->
            <dependency>
                <groupId>org.hswebframework.web</groupId>
                <artifactId>hsweb-authorization-basic</artifactId>
            </dependency>
    
            <!--jwt-->
            <dependency>
                <groupId>org.hswebframework.web</groupId>
                <artifactId>hsweb-authorization-jwt</artifactId>
                <version>${hsweb.framework.version}</version>
            </dependency>
    
            <!--组织架构-->
            <dependency>
                <groupId>org.hswebframework.web</groupId>
                <artifactId>hsweb-system-organizational-starter</artifactId>
            </dependency>
            <!--动态表单-->
            <dependency>
                <groupId>org.hswebframework.web</groupId>
                <artifactId>hsweb-system-dynamic-form-starter</artifactId>
                <version>${hsweb.framework.version}</version>
            </dependency>
            <!--模板管理-->
            <dependency>
                <groupId>org.hswebframework.web</groupId>
                <artifactId>hsweb-system-template-starter</artifactId>
                <version>${hsweb.framework.version}</version>
            </dependency>
    
            <!--定时调度-->
            <dependency>
                <groupId>org.hswebframework.web</groupId>
                <artifactId>hsweb-system-schedule-starter</artifactId>
                <version>${hsweb.framework.version}</version>
            </dependency>
            <!--动态脚本-->
            <dependency>
                <groupId>org.hswebframework.web</groupId>
                <artifactId>hsweb-system-script-starter</artifactId>
                <version>${hsweb.framework.version}</version>
            </dependency>
            <!--访问日志-->
            <dependency>
                <groupId>org.hswebframework.web</groupId>
                <artifactId>hsweb-access-logging-aop</artifactId>
            </dependency>
            <!--oauth2 server支持-->
            <dependency>
                <groupId>org.hswebframework.web</groupId>
                <artifactId>hsweb-system-oauth2-server-starter</artifactId>
                <version>${hsweb.framework.version}</version>
            </dependency>
    
            <!--oauth2 client支持-->
            <dependency>
                <groupId>org.hswebframework.web</groupId>
                <artifactId>hsweb-system-oauth2-client-starter</artifactId>
                <version>${hsweb.framework.version}</version>
            </dependency>
    
            <!--ueditor支持,需要引入文件上传功能-->
            <dependency>
                <groupId>org.hswebframework.web</groupId>
                <artifactId>hsweb-thirdparty-ueditor</artifactId>
                <version>${hsweb.framework.version}</version>
            </dependency>
            <!--文件上传-->
            <dependency>
                <groupId>org.hswebframework.web</groupId>
                <artifactId>hsweb-system-file-starter</artifactId>
                <version>${hsweb.framework.version}</version>
            </dependency>
    
            <!--数据库管理-->
            <dependency>
                <groupId>org.hswebframework.web</groupId>
                <artifactId>hsweb-system-database-manager-starter</artifactId>
                <version>${hsweb.framework.version}</version>
            </dependency>
    
            <!--数据源-->
            <dependency>
                <groupId>org.hswebframework.web</groupId>
                <artifactId>hsweb-datasource-api</artifactId>
                <version>${hsweb.framework.version}</version>
            </dependency>
            <dependency>
                <groupId>org.hswebframework.web</groupId>
                <artifactId>hsweb-datasource-web</artifactId>
                <version>${hsweb.framework.version}</version>
            </dependency>
    
            <dependency>
                <groupId>org.hswebframework.web</groupId>
                <artifactId>hsweb-concurrent-cache</artifactId>
                <version>${hsweb.framework.version}</version>
            </dependency>
    
            <dependency>
                <groupId>org.hswebframework.web</groupId>
                <artifactId>hsweb-spring-boot-starter</artifactId>
            </dependency>
    
            <dependency>
                <groupId>org.springframework.boot</groupId>
                <artifactId>spring-boot-starter-logging</artifactId>
            </dependency>
    
            <!--数据字典-->
            <dependency>
                <groupId>org.hswebframework.web</groupId>
                <artifactId>hsweb-system-dictionary-starter</artifactId>
                <version>${hsweb.framework.version}</version>
            </dependency>
    
            <!--工作流-->
            <dependency>
                <groupId>org.hswebframework.web</groupId>
                <artifactId>hsweb-system-workflow-starter</artifactId>
                <version>${hsweb.framework.version}</version>
            </dependency>
            <dependency>
                <groupId>org.hswebframework.web</groupId>
                <artifactId>hsweb-flowable-modeler</artifactId>
                <version>3.0-SNAPSHOT</version>
            </dependency>
            <!--首页仪表盘配置-->
            <dependency>
                <groupId>org.hswebframework.web</groupId>
                <artifactId>hsweb-system-dashboard-starter</artifactId>
                <version>${hsweb.framework.version}</version>
            </dependency>
            <!--swagger-->
    
            <dependency>
                <groupId>com.spring4all</groupId>
                <artifactId>spring-boot-starter-swagger</artifactId>
                <version>1.5.1.RELEASE</version>
            </dependency>
    
            <dependency>
                <groupId>io.github.swagger2markup</groupId>
                <artifactId>swagger2markup</artifactId>
                <version>1.3.1</version>
            </dependency>
    
            <dependency>
                <groupId>org.codehaus.groovy</groupId>
                <artifactId>groovy-all</artifactId>
            </dependency>
    
            <dependency>
                <groupId>com.h2database</groupId>
                <artifactId>h2</artifactId>
            </dependency>
    
            <dependency>
                <groupId>mysql</groupId>
                <artifactId>mysql-connector-java</artifactId>
                <version>5.1.40</version>
            </dependency>
    
            <!--<dependency>-->
            <!--<groupId>com.oracle</groupId>-->
            <!--<artifactId>ojdbc14</artifactId>-->
            <!--</dependency>-->
    
            <dependency>
                <groupId>com.alibaba</groupId>
                <artifactId>druid</artifactId>
            </dependency>
    
            <dependency>
                <groupId>ch.qos.logback</groupId>
                <artifactId>logback-classic</artifactId>
            </dependency>
    
            <dependency>
                <groupId>org.slf4j</groupId>
                <artifactId>slf4j-api</artifactId>
            </dependency>
            <dependency>
                <groupId>org.springframework.boot</groupId>
                <artifactId>spring-boot-configuration-processor</artifactId>
                <optional>true</optional>
            </dependency>
            <dependency>
                <groupId>org.projectlombok</groupId>
                <artifactId>lombok</artifactId>
            </dependency>
    
        </dependencies>
    ...
    

    里面涵盖了很多模块,根据实际需求,可以引入不同的模块来引入不同的功能!

    这次先简单的讲到这里,让大家对 hsweb-framework 有个初步的认识。
    下次将一步一步的学习 hsweb-framework 的整个过程

    hsweb-framework 学习目录

    相关文章

      网友评论

          本文标题:hsweb3-demo学习

          本文链接:https://www.haomeiwen.com/subject/uaiyyftx.html