#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
關(guān)于dataSource的配置,可以直接在application.properties中進(jìn)行:
######數(shù)據(jù)庫配置######
spring.datasource.data=
spring.datasource.driver-class-name=com.mysql.jdbc.Driver
spring.datasource.url=
spring.datasource.username=
spring.datasource.password=
######數(shù)據(jù)庫配置######
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)。因?yàn)榇a頂部的" 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
課程結(jié)束,后端我用SpirngBoot + JPA的方式將項(xiàng)目實(shí)現(xiàn)了一遍,沒有采用Mybatis,代碼上傳至碼云,第一個是前端,第二個是后端,希望能夠和大家一起學(xué)習(xí)。
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