# 图书管理系统 **Repository Path**: paradise-team/hao_brother ## Basic Information - **Project Name**: 图书管理系统 - **Description**: 基于SpringBoot的图书管理系统 - **Primary Language**: Java - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 1 - **Forks**: 1 - **Created**: 2021-01-21 - **Last Updated**: 2021-08-27 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # BS-Library System > 图书馆管理系统 >
> A Bibased System By Java. >
> Configuration at bottom in this page ## Admin account username: admin
password: 123456 ## Database > sql/ 目录下为数据库脚本文件 ## Build ``` bash # Into root directory cd bs # clean target and skip all tests mvn clean -DskipTests=true # compile and package program, skip all tests mvn package -DskipTests=true ``` ## run Now, the root dir will have a subDir named `target` ``` bash # Into this subDir cd target # run project java -jar ./bs-0.0.1-SNAPSHOT.jar ``` or ```bash # use mvn Plugin spring-boot:run to run this project mvn spring-boot:run -DskipTests=true ``` ## Config > 创建 application-dev.yml ```yml #项目根路径 server: servlet: context-path: / tomcat: uri-encoding: UTF-8 #启动配置文件 spring: profiles: active: 'dev' #上传文件大小限制 servlet: multipart: max-file-size: '3' max-request-size: '3' #应用名称 application: name: 'bs' #字符编码 http: encoding: force: true http: encoding: charset: UTF-8 http: encoding: enabled: true ############################# # 数据源 # ############################# datasource: url: jdbc:mysql://127.0.0.1:3306/数据库名?rewriteBatchedStatements=true&useUnicode=true&characterEncoding=utf8&useSSL=false username: 用户名 password: 密码 driver-class-name: com.mysql.jdbc.Driver druid: filters: stat maxActive: 20 initialSize: 1 maxWait: 60000 minIdle: 10 timeBetweenEvictionRunsMillis: 60000 minEvictableIdleTimeMillis: 300000 validationQuery: SELECT 'x' testWhileIdle: true testOnBorrow: false testOnReturn: false PoolPreparedStatements: true maxOpenPreparedStatements: 20 removeAbandoned: true removeAbandonedTimeout: 1800 logAbandoned: true #Druid监控配置 url-mapping: /druid/* loginUsername: loginPassword: ############################# # 日志 # ############################# logging: path: 日志输出目录绝对地址 pattern: file: '%d{yyyy-MM-dd HH:mm:ss.SSS} %-4relative [%thread] %-5level %logger{50} - %msg%n' #打印mapper日志 : level: cn: edu: neusoft: bs: debug ```