kvf-admin是一套基于springboot、mybatis、shiro及layui的轻量级快速开发框架、脚手架、后台管理系统、权限系统、基于activiti6整合的工作流OA系统,上手简单,拿来即用。
MIT License
kvf-admin214768328
kvf-admin-activitikvf-adminactiviti6OA OA activiti
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
mvn package -P dev
mvn package -P test -Dmaven.test.skip=true
mvn package -P prod -Dmaven.test.skip=true
jar
nohup java -jar kvf-admin.jar &
pom.xmlwar
<packaging>war</packaging>
./startup.sh
dockerdocker-compose
mvn docker:build
docker-compose
vim docker-compose.yml
vim .env
docker-compose up -d
docker-compose up -d kvf-admin
<link th:replace="common/base::static"/>
@Cacheable(value="cache_name")``@CacheEvict(value = "cache_name", allEntries = true)
;redisTemplateIUserService userService = SpringContextKit.getBean(IUserService.class);
throw new KvfException("ID");
R.ok(data); R.fail("");
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
true
mybatisplusmyColumn() -> my_column()
map-underscore-to-camel-case:true
false
myColumn() -> myColumn()
map-underscore-to-camel-case:false
@TableField(value="")
@TableField(value = "myColumn")
private String myColumn;