boot项目初建

2018-10-18  本文已影响14人  简单coder

每天进步一点点,加油,你是最笨的!

jdbc总结:

@EnableJpaAuditing
@MapperScan(basePackages = "com.ipaozha.crm.dao")
public class CrmApplication {
    public static void main(String[] args) {
        SpringApplication.run(CrmApplication.class, args);
    }
}
#打印sql
logging:
  level:
    com.ipaozha.crm.dao : DEBUG
#pagehelper分页
pagehelper:
    helperDialect: mysql
    reasonable: true
    supportMethodsArguments: true
    params: count=countSql
    returnPageInfo: check
#扫描mapper文件
mybatis:
  mapper-locations: classpath:mapper/*.xml
spring:
  redis:
    port: 6379
    url: (公网ip)
    password: *********
  datasource:
    type: com.alibaba.druid.pool.DruidDataSource
    #druid相关配置
    druid:
      #监控统计拦截的filters
      filters: stat
      driver-class-name: com.mysql.jdbc.Driver
      #基本属性
      url: jdbc:mysql://(这里是你的公网ip)/crm?useUnicode=true&characterEncoding=UTF-8&allowMultiQueries=true&useSSL=false
      username: ********
      password: ********
      #配置初始化大小/最小/最大
      initial-size: 1
      min-idle: 1
      max-active: 20
      #获取连接等待超时时间
      max-wait: 60000
      #间隔多久进行一次检测,检测需要关闭的空闲连接
      time-between-eviction-runs-millis: 60000
      #一个连接在池中最小生存的时间
      min-evictable-idle-time-millis: 300000
      validation-query: SELECT 'x'
      test-while-idle: true
      test-on-borrow: false
      test-on-return: false
      #打开PSCache,并指定每个连接上PSCache的大小。oracle设为true,mysql设为false。分库分表较多推荐设置为false
      pool-prepared-statements: false
      max-pool-prepared-statement-per-connection-size: 20

web前端渲染相关:

<#if (category.createTime)??>
   ${category.createTime?string('yyyy-MM-dd hh:mm:ss')}
</#if>

嗯......先这样吧,稍微学了下mp4转gif,还挺简单的,介绍下这个软件GIFBrewery 3

上一篇 下一篇

猜你喜欢

热点阅读