Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/cellbang/panda
基于dorado 的spring-boot研发的开发框架
https://github.com/cellbang/panda
bdf dorado spring-boot spring-security
Last synced: 19 days ago
JSON representation
基于dorado 的spring-boot研发的开发框架
- Host: GitHub
- URL: https://github.com/cellbang/panda
- Owner: cellbang
- License: apache-2.0
- Created: 2018-07-19T14:21:23.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2024-07-19T14:57:08.000Z (6 months ago)
- Last Synced: 2024-07-19T19:07:11.039Z (6 months ago)
- Topics: bdf, dorado, spring-boot, spring-security
- Language: JavaScript
- Homepage:
- Size: 13.7 MB
- Stars: 16
- Watchers: 8
- Forks: 8
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Panda
[![License](http://img.shields.io/:license-apache-brightgreen.svg)](http://www.apache.org/licenses/LICENSE-2.0.html)>Panda基于spring-boot研发的开发框架。包含用户、角色、菜单、权限(最小粒度为组件)、数据导入、字典、日志、实时通讯、公众号、微程序、云数据库、个人中心、云数据源、用户个性化和一个或多个数据库实例的独立数据库模式的多租户功能模块。功能模块化,自动化,参考spring boot项目结构构建,提供一些列预定义依赖项目快。基于Panda快速开发企业管理系统。
## Panda文档教程
[Panda文档教程](https://github.com/malagu-org/panda/wiki/01.panda-jpa)## 演示地址
1. [传统风格多租户版](http://106.14.191.97:8081/panda.security.ui.view.Main.d) 公司ID/用户名/密码:master/admin/123456
2. [实时通讯+公众号+微程序风格非多租户版](http://106.14.191.97:8080/panda.notice.ui.view.Chat.d) 用户名/密码:admin/123456
3. [方块风格非多租户版](http://106.14.191.97:8080/panda.security.ui.view.Portal.d) 用户名/密码:admin/123456
4. [传统风格非多租户版](http://106.14.191.97:8080/panda.security.ui.view.Main.d) 用户名/密码:admin/123456### 所有用户的密码都是123456
## 快速入门
>由于基于spring-boot,Panda项目搭建和spring-boot几乎一样,不同的是依赖的jar包不一样。1. 创建一个标准的Maven项目panda-sample,项目打包类型为jar,项目的父项目指向panda-starter-parent,最终生成项目的pom文件如下:
```xml4.0.0
org.malagu.panda
panda-starter-parent
1.1.0-SNAPSHOT
panda-sample
org.malagu.panda
panda-starter
org.springframework.boot
spring-boot-devtools
provided
com.h2database
h2
bsdn-maven-repository
http://nexus.bsdn.org/content/groups/public/
```
2. 启动类
```java
package org.malagu.panda.sample;import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cache.annotation.EnableCaching;/**
* @author Kevin Yang (mailto:[email protected])
* @since 2016年12月10日
*/
@SpringBootApplication
@EnableCaching
public class SampleApplication {
public static void main(String[] args) throws Exception {
SpringApplication.run(SampleApplication.class, args);
}
}```
>通过以上两个步骤,一个基本的Panda项目就搭建好了。直接运行项目的主类(带main函数的类)[示例下载](https://github.com/muxiangqiu/Panda/blob/master/sample/panda-sample.zip?raw=true)## 配置文件说明
1.application.properties
```
#服务器端口设置
server.port = 8080
#项目路径
server.servlet.context-path=/panda
#是否打印sql语句
spring.jpa.showSql=true
#hibernate反向创建表设置,update启动时更新表结构,create 启动时重新创建表结构,none 启动时不检查
spring.jpa.hibernate.ddl-auto=update
#springboot热部署设置,添加文件改动不重启目录。
spring.devtools.restart.additional-exclude=com/**
#数据库脚本的编码设置为UTF-8
spring.datasource.sql-script-encoding=UTF-8#数据源配置,pom中需要引入对应的数据库jdbc依赖
spring.datasource.continue-on-error=true
spring.datasource.url=jdbc:mysql://localhost:3306/Panda
spring.datasource.username=root
spring.datasource.password=root
spring.datasource.driver-class-name=com.mysql.jdbc.Driver
#如果数据库为非嵌入式数据库,这个属性第一次启动的时候一定要设置为ALWAYS,用于初始化数据,初始化好后,可以关闭,也可以不关闭,有自己决定
spring.datasource.initialization-mode=ALWAYS
```## Spring-Boot文档教程
[spring-boot文档教程](https://projects.spring.io/spring-boot/#quick-start)
## 界面截图
![](https://raw.githubusercontent.com/malagu-org/Panda/master/screenshot/panda.png)
![](https://raw.githubusercontent.com/malagu-org/Panda/master/screenshot/2.png)
![](https://raw.githubusercontent.com/malagu-org/Panda/master/screenshot/3.png)
![](https://raw.githubusercontent.com/malagu-org/Panda/master/screenshot/4.png)
![](https://raw.githubusercontent.com/malagu-org/Panda/master/screenshot/5.png)
![](https://raw.githubusercontent.com/malagu-org/Panda/master/screenshot/6.png)
![](https://raw.githubusercontent.com/malagu-org/Panda/master/screenshot/7.png)
![](https://raw.githubusercontent.com/malagu-org/Panda/master/screenshot/8.png)
![](https://raw.githubusercontent.com/malagu-org/Panda/master/screenshot/9.png)
![](https://raw.githubusercontent.com/malagu-org/Panda/master/screenshot/10.png)
![](https://raw.githubusercontent.com/malagu-org/Panda/master/screenshot/11.png)
![](https://raw.githubusercontent.com/malagu-org/Panda/master/screenshot/12.png)
![](https://raw.githubusercontent.com/malagu-org/Panda/master/screenshot/13.png)
![](https://raw.githubusercontent.com/malagu-org/Panda/master/screenshot/14.png)
![](https://raw.githubusercontent.com/malagu-org/Panda/master/screenshot/15.png)
![](https://raw.githubusercontent.com/malagu-org/Panda/master/screenshot/16.png)
![](https://raw.githubusercontent.com/malagu-org/Panda/master/screenshot/17.png)
![](https://raw.githubusercontent.com/malagu-org/Panda/master/screenshot/18.png)
![](https://raw.githubusercontent.com/malagu-org/Panda/master/screenshot/19.png)
![](https://raw.githubusercontent.com/malagu-org/Panda/master/screenshot/20.png)