bdf3基于spring-boot研发的开发框架。包含用户、角色、菜单、权限(最小粒度为组件)、数据导入、字典、日志、实时通讯、公众号、微程序、云数据库、个人中心、云数据源、用户个性化和一个或多个数据库实例的独立数据库模式的多租户功能模块。功能模块化,自动化,参考spring boot项目结构构建,提供一些列预定义依赖项目快。基于bdf3快速开发企业管理系统。
由于基于spring-boot,bdf3项目搭建和spring-boot几乎一样,不同的是依赖的jar包不一样。
<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">
<modelVersion>4.0.0</modelVersion>
<!-- 继承的父项目 -->
<parent>
<groupId>com.bstek.bdf3</groupId>
<artifactId>bdf3-starter-parent</artifactId>
<version>1.1.0-SNAPSHOT</version>
</parent>
<artifactId>bdf3-sample</artifactId>
<dependencies>
<!-- bdf3预定义依赖,简化依赖的复杂度 -->
<dependency>
<groupId>com.bstek.bdf3</groupId>
<artifactId>bdf3-starter</artifactId>
</dependency>
<!-- 开发测试工具 -->
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-devtools</artifactId>
<scope>provided</scope>
</dependency>
<!-- 数据库驱动 -->
<dependency>
<groupId>com.h2database</groupId>
<artifactId>h2</artifactId>
</dependency>
</dependencies>
<!-- bdf3项目jar存放的maven私服 -->
<repositories>
<repository>
<id>bsdn-maven-repository</id>
<url>http://nexus.bsdn.org/content/groups/public/</url>
</repository>
</repositories>
</project>
package com.bstek.bdf3.sample;
import org.springframework.boot.SpringApplication; import org.springframework.boot.autoconfigure.SpringBootApplication; import org.springframework.cache.annotation.EnableCaching;
/**
>通过以上两个步骤,一个基本的bdf3项目就搭建好了。直接运行项目的主类(带main函数的类)[示例下载](https://github.com/muxiangqiu/bdf3/blob/master/sample/bdf3-sample.zip?raw=true)
## 配置文件说明
1.application.properties
server.port = 8080
server.context-path=/bdf
spring.jpa.showSql=true
spring.jpa.hibernate.ddl-auto=update
spring.devtools.restart.additional-exclude=com/**
spring.datasource.sql-script-encoding=UTF-8
spring.datasource.continue-on-error=true spring.datasource.url=jdbc:mysql://localhost:3306/bdf3 spring.datasource.username=root spring.datasource.password=root spring.datasource.driver-class-name=com.mysql.jdbc.Driver
spring.datasource.initialization-mode=ALWAYS
## Spring-Boot文档教程
[spring-boot文档教程](https://projects.spring.io/spring-boot/#quick-start)
## 界面截图



















