springboot简单案例

时间:2021-10-16 10:24:35
【文件属性】:
文件名称:springboot简单案例
文件大小:3.1MB
文件格式:RAR
更新时间:2021-10-16 10:24:35
sptingboot springboot简单案例,主方法 //@EnableScheduling // 定时器扫描 已经在MyScheduleConfig类上,这里可以不写了 @EnableAsync // 异步执行 与 @Async 一起用 @EnableCaching // 缓存 @ServletComponentScan // 扫描filter servlet listener @MapperScan("cn.springBoot.dao") // mybatis 扫描,没有这个不能注入 @SpringBootApplication public class Application { // TRACE < DEBUG < INFO < WARN < ERROR < FATAL //日志文件级别 public static void main(String[] args) { SpringApplication.run(Application.class, args); } } 注意:pom文件报错,需要自己百度解决,这里估计放不了链接
【文件预览】:
springboot简单案例
----springBoot()
--------.project(562B)
--------db()
--------mvnw.cmd(5KB)
--------mvnw(6KB)
--------src()
--------target()
--------.settings()
--------.mvn()
--------pom.xml(3KB)
--------.classpath(1KB)
--------.gitignore(268B)
----redme.txt(444B)

网友评论