首页>代码>spring boot+mvc+mybatis+druid+jsp+bootstrap实现后台权限管理系统源码>/demo-boot/src/main/java/com/xe/demo/Application.java
package com.xe.demo; import org.mybatis.spring.annotation.MapperScan; import org.springframework.boot.SpringApplication; import org.springframework.boot.autoconfigure.SpringBootApplication; import org.springframework.boot.builder.SpringApplicationBuilder; import org.springframework.boot.web.support.SpringBootServletInitializer; import org.springframework.cache.annotation.EnableCaching; import org.springframework.context.annotation.Import; import org.springframework.stereotype.Controller; import org.springframework.web.bind.annotation.RequestMapping; import com.xe.demo.common.datasource.DynamicDataSourceRegister; /** * springboot启动器 * @author CZH */ @Controller // 开启缓存 @EnableCaching @MapperScan(basePackages = "com.xe.*.mapper") @Import(DynamicDataSourceRegister.class) @SpringBootApplication public class Application extends SpringBootServletInitializer { @Override protected SpringApplicationBuilder configure(SpringApplicationBuilder application) { return application.sources(Application.class); } public static void main(String[] args) { SpringApplication.run(Application.class, args); } @RequestMapping("/") String home() { return "login"; } @RequestMapping("/404") String notFound() { return "common/404"; } @RequestMapping("/500") String error() { return "common/500"; } }
最近下载更多
Brilion LV6
2023年2月24日
levmar LV12
2023年1月12日
cqbscxh LV11
2022年9月19日
yang315 LV13
2022年8月29日
ninininini LV2
2022年8月29日
帝海哥 LV2
2022年8月29日
Marsman233 LV2
2022年8月29日
大哥上代码了 LV4
2022年8月20日
一杯美式 LV5
2022年6月17日
Sunsi12345 LV8
2022年5月19日
最近浏览更多
13521878735 LV3
3月26日
yangyang567 LV1
3月8日
做自己的太阳 LV11
2月1日
makenchen
1月7日
暂无贡献等级
故里逢春 LV2
2023年12月25日
black8angel LV4
2023年12月22日
Dominick LV14
2023年11月29日
fff2003 LV6
2023年11月14日
haotzy LV3
2023年10月8日
漫步的海星 LV4
2023年9月21日