摘要: // 搭建服务中心 构建Maven父子模块 // 搭建eureka服务中心 @SpringBootApplication @EnableEurekaServer public class EurekaApplication { private static final Logger LOGGER = 阅读全文
posted @ 2021-01-24 23:28 雪瞳 阅读(122) 评论(0) 推荐(0) 编辑
摘要: //对于SpringBoot所推崇的去除xml化编程需求,将原始的spring-*.xml文件使用配置类的方式进行注入 //mybatis // 该标签表示将这个类注入到Spring的IOC容器内 @Configuration // 配置mybatis Mapper的扫描路径 @MapperScan 阅读全文
posted @ 2021-01-24 23:22 雪瞳 阅读(545) 评论(0) 推荐(0) 编辑
摘要: //SpringBoot是对SSM框架的进一步改进与封装,随着微服务时代的来临,使用多个子模块组建一个大的应用项目成为时下后端开发的趋势。 //数据库Dao层 使用Mybatis框架 @Repository public interface ShopDao { /** * 返回查询条件的总数 * @ 阅读全文
posted @ 2021-01-24 23:14 雪瞳 阅读(392) 评论(0) 推荐(0) 编辑