1.异常

发生受察时异常提交请求
发生运行时异常 回滚

 2.yml配置

server:
  port: 8888

# 配置mybatis
mybatis:
  mapper-locations: classpath:com\abc\multienvs\dao\*.xml
  type-aliases-package: com.abc.multienvs.bean

# 配置数据源
spring:
  datasource:
    type: com.alibaba.druid.pool.DruidDataSource
    driver-class-name: com.mysql.jdbc.Driver
    url: jdbc:mysql:///test?useUnicode=true&characterEncoding=utf8
    username: root
    password: 12345678

 

posted on 2019-04-10 11:43  <meng>  阅读(102)  评论(0编辑  收藏  举报