首页>代码>spring boot项目通过自定义WebMvcConfigurerAdapter继承类实现访问静态资源文件的实例>/include-javascript-css/src/main/java/com/memorynotfound/thymeleaf/Run.java
01package com.memorynotfound.thymeleaf;
02 
03import org.springframework.boot.SpringApplication;
04import org.springframework.boot.autoconfigure.SpringBootApplication;
05import org.springframework.stereotype.Controller;
06import org.springframework.web.bind.annotation.RequestMapping;
07 
08@Controller
09@SpringBootApplication
10public class Run {
11 
12    @RequestMapping("/")
13    public String welcome() {
14        return "home";
15    }
16 
17    public static void main(String... args) throws Exception {
18        SpringApplication.run(Run.class, args);
19    }
20 
21}
最近下载更多
最近浏览更多
漫步的海星  LV4 2023年9月26日
skook7  LV2 2023年8月31日
18176866431  LV4 2023年8月28日
微信网友_6449682944987136  LV1 2023年4月26日
张廉彬  LV2 2021年5月31日
Laughingge  LV1 2021年3月19日
linyumalin 2021年2月19日
暂无贡献等级
usernamegs  LV10 2021年1月25日
luoyong12345  LV3 2021年1月9日
一只勤奋的猪猪  LV9 2021年1月1日
顶部 客服 微信二维码 底部
>扫描二维码关注最代码为好友扫描二维码关注最代码为好友