java 生成交易快照_Springboot模板工程

该博客介绍了如何创建一个最小可用的Springboot工程,用于生成交易快照。内容包括项目结构、配置、数据库连接信息、Mybatis的配置、Mapper接口、启动类以及web前端的设置。此外,还提到了运行项目的注意事项和Springboot模板工程的概述。
摘要由CSDN通过智能技术生成

最小可用工程

项目结构

50b8fb3773e40e2c4f1c9d755e49ff1a.png

配置

由于 Springboot 启动时会自动加载 mybatis 相关的东西,因此,需要将 mybatis 相关的配置填上。

resources/application.properties

#####jdbc

spring.datasource.driverClassName=com.mysql.jdbc.Driver

spring.datasource.url=jdbc:mysql://localhost:3306/test?useUnicode=true&characterEncoding=UTF-8&zeroDateTimeBehavior=convertToNull&autoReconnect=true&useSSL=false

spring.datasource.username=test

spring.datasource.password=test

mybatis.type-aliases-package=com.lovesqcc.model

mybatis.mapper-locations=classpath:mybatis/mapper/*.xml

resources/mybatis/mapper/OrderMapper.xml

resources/spring.xml

xmlns:xsi="http://www.

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值