Giter VIP home page Giter VIP logo

video's Introduction

spring-boot-shine

blog

spring-boot项目笔记:(一)搭建项目

spring-boot项目笔记:(二)集成redis,mybatis,swagger

spring-boot项目笔记:(三) 事务

spring-boot项目笔记:(四) 拦截器和异常处理

spring-boot项目笔记:(五) 部署和远程调试

spring-boot项目笔记:(六) 视频截图和转码

🌈 application.properties配置

在resources文件下新建application.properties

# 项目contextPath,一般在正式发布版本中,我们不配置
#server.context-path=/video
# 错误页,指定发生错误时,跳转的URL。请查看BasicErrorController源码便知
#server.error.path=/error
# 服务端口
server.port=9000
# session最大超时时间(分钟),默认为30
server.session-timeout=60
# 该服务绑定IP地址,启动服务器时如本机不是该IP地址则抛出异常启动失败,只有特殊需求的情况下才配置
#server.address=your_IP

#druid
druid.url=jdbc:mysql://your_IP:3306/video_db?useUnicode=true&characterEncoding=utf-8&useSSL=false
druid.driver-class=com.mysql.jdbc.Driver
druid.username=your_username
druid.password=your_password
druid.initial-size=1
druid.min-idle=1
druid.max-active=20
druid.test-on-borrow=true

#mybatis
mybatis.type-aliases-package=com.shine.video.dao
mybatis.mapper-locations=classpath:mapping/*.xml

#redis
spring.redis.host=your_IP
spring.redis.password=your_password
spring.redis.port=16379
spring.redis.pool.max-idle=100
spring.redis.pool.min-idle=1
spring.redis.pool.max-active=1000
spring.redis.pool.max-wait=-1

#log
logging.config=classpath:logback.xml
logging.path=/software/boot-log

video's People

Contributors

7le avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.