脚本宝典收集整理的这篇文章主要介绍了千峰商城-springboot项目实战01-创建与配置,脚本宝典觉得挺不错的,现在分享给大家,也给大家做个参考。
application.properties
#配置数据源 spring.datasource.driver-class-name=com.mysql.cj.jdbc.Driver spring.datasource.url=jdbc:mysql://localhost:3306/mybatis?useUnicode=true&characterEncoding=utf-8&severTimezone=UTC spring.activemq.user=root spring.datasource.password=123456 #映射文件路径 mybatis.mapper-locations=classpath:mappers/*Mapper.xml #实体类包名 mybatis.type-aliases-package=com.qfedu.springboot.demo.entity
package com.qfedu.springboot.demo; import org.mybatis.spring.annotation.MapperScan; import org.springframework.boot.SpringApplication; import org.springframework.boot.autoconfigure.SpringBootApplication; @SpringBootApplication @MapperScan("com.qfedu.springboot.demo.dao") public class SpringbootDemo1Application { public static void main(String[] args) { SpringApplication.run(SpringbootDemo1Application.class, args); } }
以上是脚本宝典为你收集整理的千峰商城-springboot项目实战01-创建与配置全部内容,希望文章能够帮你解决千峰商城-springboot项目实战01-创建与配置所遇到的问题。
本图文内容来源于网友网络收集整理提供,作为学习参考使用,版权属于原作者。
如您有任何意见或建议可联系处理。小编QQ:384754419,请注明来意。