1.异常
发生受察时异常提交请求
发生运行时异常 回滚
2.yml配置
server: port: 8888 # 配置mybatis mybatis: mapper-locations: classpath:comabcmultienvsdao*.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