• Stars
    star
    223
  • Rank 177,324 (Top 4 %)
  • Language FreeMarker
  • Created almost 8 years ago
  • Updated about 7 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

2.x版本演示项目

hsweb 演示

演示如何在新项目中使用hsweb 基于hsweb-frameworkhsweb-platform

环境

运行唯一需要的环境: java8

运行

直接运行

    $ ./mvnw spring-boot:run    #linux
    $ mvnw.cmd spring-boot:run  #windows

IDE 导入ide后等待maven依赖下载完成后执行org.hsweb.demo.Run

目录说明

----------src/main/java
---------------org.hsweb.demo
--------------------bean,controller,dao,service #不做过多说明,都懂
--------------------Run.java                    #项目启动类,直接运行启动项目
----------resources
---------------config                           #配置目录(logback和mybatis配置文件)
---------------mappers                          #mybatis mapper配置文件
---------------scripts.initialize               #系统初始化脚本
---------------templates                        #模板文件(freemarker)
---------------static                           #静态文件目录
---------------application.yml                  #应用主配置,数据源啥的都在这里

访问

启动成功登录后,用浏览器打开 http://localhost:8080/ 帐号:admin 密码:admin 上报问题

注意

启动日志提示sigar-amd64-winnt.dll相关错误,这是系统监控需要的库,不引入不影响程序运行. 要使用系统监控功能,请自行将 sigar-amd64-winnt.dll 放入system32 目录或者libsigar-amd64-linux.so /usr/lib 目录. 下载地址