The project is a Maven archetype for Spring Boot web application.
后续更新分拆成两个版本:
专注rest服务的
jfinal-spring-boot-quickstart-archetype
整和了layui的
jfinal-cms-spring-boot-quickstart-archetype
整合框架:
Spring-boot 2.0.3
Jfinal 3.4
Jfinal-ext 3.0.6
Shiro - Shiro-spring-boot-strator-1.4.0
Redis - Lettuce-5.0.4
Mongo-java-driver-3.6.4
Mysql-connector-java-5.1.20
Mysql - HikariCP-2.7.8
Swagger - Swagger2-spring-boot-strater-2.0.0
Javamelody - javamelody-spring-boot-starter-1.73.1
v2.1.2
1.专注rest微服务架构,专注最佳实践
2.加入shiro认证
3.加入session缓存
此选项可以加快构建速度
http://repo2.maven.org/maven2/archetype-catalog.xml
将archetype-catalog.xml文件放到~/用户名/.m2/ 目录下
To install the archetype in your local repository execute following commands:
$ git clone https://github.com/wxcmyx/jfinal-spring-boot-quickstart-archetype.git
$ cd jfinal-spring-boot-quickstart-archetype
$ mvn clean install
$ mvn archetype:generate \
-DarchetypeGroupId=com.wixct \
-DarchetypeArtifactId=jfinal-spring-boot-quickstart \
-DarchetypeVersion=2.1.3 \
-DgroupId=xxxxx \
-Dpackage=com.company \
-DartifactId=xxxxxx \
-Dversion=1.0.0-SNAPSHOT \
-DinteractiveMode=false
如果使用了Pre Installation,需要在上面代码的基础上再补充上
-DarchetypeCatalog=local
$ mvn test spring-boot:run
http://localhost:8080/api/hello
Note: No additional services are required in order to start the application.
修改shiro权限认证方式,可能需要修改的几个包:
xx.config
xx.domain
xx.security
xx.service