kvf-admin

kvf-admin是一套基于springboot、mybatis、shiro及layui的轻量级快速开发框架、脚手架、后台管理系统、权限系统、基于activiti6整合的工作流OA系统,上手简单,拿来即用。

MIT License

Stars
455
Committers
2

kvf-admin

kvf-admin214768328

kvf-admin-activitiOA

kvf-admin-activitikvf-adminactiviti6OA OA activiti

  • API/API
  • //
  • ///

kvf-admin

 pom.xml mavenpom
  
sql
      kvf_sys.sql  sql
      
src
    main
      java
        com
            kalvin
                kvf
                      KvfAdminApplication.java   
                      
                    common  
                    modules 
                        generator   
                        sys 
      resources
            application.yml   spring boot 
            ehcache.xml   ehcache
            
          mapper mybatis mapper
          static 
          templates  
                403.html  403
                home.html 
                index.html   
                login.html   
                
              common 
                    base.html
                    sys_tpl.html
                    
              generator  
                        
              sys    
                      
    test  

  • jdk8+
  • mysql5.7+

  • XSS
  • ehcache + redis@CacheableredisTemplate
  • controller@Log("")
  • R
  • OA
  • jartomcatdocker

  • git/gitee(gitgitee)OAclone activiti
  • sql/kvf_admin.sqlOAsql/kvf_admin_activiti.sql
  • application-dev.yml
  • ideaeclipselombokget/set
  • KvfAdminApplication.javakvf-admin
  • ideahttp://localhost/idea80
  • eclipsehttp://localhost/kvf-admin80
  • admin/123456

linux

(dev)
mvn package -P dev
(test)
mvn package -P test -Dmaven.test.skip=true
(prod)
mvn package -P prod -Dmaven.test.skip=true

jar

jar

nohup java -jar kvf-admin.jar &

tomcat

pom.xmlwar

<packaging>war</packaging>
wartomcatwebappsbin
./startup.sh

docker

dockerdocker-compose

kvf-admin()docker
mvn docker:build
./docker-compose

docker-compose

vim docker-compose.yml
vim .env
docker-compose up -d
docker-compose up -d kvf-admin

  • jskconfig.js
  • jskcommon.js
  • base.htmlcss<link th:replace="common/base::static"/>
  • @Log("")[com.kalvin.kvf.common.annotation.Log]controller
  • @Cacheable(value="cache_name")``@CacheEvict(value = "cache_name", allEntries = true);redisTemplate
  • SpringSpringContextKit.javabeanIUserService userService = SpringContextKit.getBean(IUserService.class);
  • KvfException.javaservicethrow new KvfException("ID");
  • R.javacontrollerR.ok(data); R.fail("");
  • devapplication-dev.yml
  • CommonController->fileUpload

  • vue-admin

1.org.apache.ibatis.binding.BindingException: Parameter 'xxx' not found,Available parameters are [0, 1, param1, param2]

ideaidea-parameters idea

mapper@Param

2.mybatisPluscrud

map-underscore-to-camel-case truemybatisplusmyColumn() -> my_column() map-underscore-to-camel-case:true falsemyColumn() -> myColumn() map-underscore-to-camel-case:false

@TableField(value="")

@TableField(value = "myColumn")
private String myColumn;

  • githubhttps://github.com/kalvinGit/kvf-admin
  • giteehttps://gitee.com/kalvinmy/kvf-admin
  • WatchStar
  • 214768328
Related Projects