#mybatis的mapper配置
# mybatis配置文件所在路径
mybatis.config-location:classpath=mybatis-config.xml
# 所有的mapper映射文件
mybatis.mapper-locations:classpath*=com/springboot/mapper/*.xml
# mybatis配置文件所在路径
mybatis.config-location:classpath=mybatis-config.xml
# 所有的mapper映射文件
mybatis.mapper-locations:classpath*=com/springboot/mapper/*.xml
2018-12-02
关于dataSource的配置,可以直接在application.properties中进行:
######数据库配置######
spring.datasource.data=
spring.datasource.driver-class-name=com.mysql.jdbc.Driver
spring.datasource.url=
spring.datasource.username=
spring.datasource.password=
######数据库配置######
spring.datasource.data=
spring.datasource.driver-class-name=com.mysql.jdbc.Driver
spring.datasource.url=
spring.datasource.username=
spring.datasource.password=
2018-12-02
DataSource 报错:setDataSource(javax.sql.DataSource) in SqlSessionFactoryBean cannot be applied to(javax.activation.DataSource)。因为代码顶部的" import sql.DataSource; " 写成了 " import javax.activation.DataSource; "
2018-11-27
Spring 2.1.0中application properties,url加前缀已变成:
server.servlet.context-path=/demo
server.servlet.context-path=/demo
2018-11-27
微信小程序后台: https://gitee.com/xiangze/demo
微信小程序前端:https://gitee.com/xiangze/areadisplay
微信小程序前端:https://gitee.com/xiangze/areadisplay
2018-11-22
课程结束,后端我用SpirngBoot + JPA的方式将项目实现了一遍,没有采用Mybatis,代码上传至码云,第一个是前端,第二个是后端,希望能够和大家一起学习。
https://gitee.com/chenforcode/area_front_end
https://gitee.com/chenforcode/Area
https://gitee.com/chenforcode/area_front_end
https://gitee.com/chenforcode/Area
2018-09-29