摘要: 通过application类中的main方法里面的run方法 @SpringBootApplication @ServletComponentScan(basePackages = "com.sp") //可以自动将写的servlet扫描进去 配置扫描的包 @MapperScan("com.sp.m 阅读全文
posted @ 2021-07-02 23:30 YuyuFishSmile 阅读(200) 评论(0) 推荐(0)
摘要: 编写引导类注意要标明注解 @SpringBootApplication SpringApplication.run(BootWeb01Application.class, args); 再编写main方法的时候使用run方法 起步依赖spring-boot-starter-parent 父工程,主要 阅读全文
posted @ 2021-07-02 21:06 YuyuFishSmile 阅读(68) 评论(0) 推荐(0)
摘要: <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-data-redis</artifactId> </dependency> spring-boot-autoconfigu 阅读全文
posted @ 2021-07-02 11:11 YuyuFishSmile 阅读(63) 评论(0) 推荐(0)