首页>代码>springboot+mybatis-plus框架实现java web项目公共图片上传接口(图片服务器)>/imgserver/src/main/java/com/npf/imgserver/Application.java
package com.npf.imgserver; import org.mybatis.spring.annotation.MapperScan; import org.springframework.boot.SpringApplication; import org.springframework.boot.autoconfigure.EnableAutoConfiguration; import org.springframework.boot.autoconfigure.SpringBootApplication; import org.springframework.cache.annotation.EnableCaching; import org.springframework.transaction.annotation.EnableTransactionManagement; //启动入口标识 @SpringBootApplication //自动装配 @EnableAutoConfiguration //事物支持 @EnableTransactionManagement //数据访问层扫描 @MapperScan("com.npf.imgserver.dao") //缓存支持 @EnableCaching public class Application { /** * springboot 工程启动入口 * @param args */ public static void main(String[] args) { SpringApplication.run(Application.class, args); } }
最近下载更多