| | |
| | | .antMatchers("/login", "/captchaImage").anonymous()
|
| | | .antMatchers(
|
| | | HttpMethod.GET,
|
| | | "/",
|
| | | "/*.html",
|
| | | "/**/*.html",
|
| | | "/**/*.css",
|
| | | "/**/*.js"
|
| | | "/**/*.js",
|
| | | "/profile/**"
|
| | | ).permitAll()
|
| | | .antMatchers("/profile/**").anonymous()
|
| | | .antMatchers("/common/download**").anonymous()
|
| | | .antMatchers("/common/download/resource**").anonymous()
|
| | | .antMatchers("/swagger-ui.html").anonymous()
|
对比新文件 |
| | |
| | | package com.ruoyi.project.system.controller;
|
| | |
|
| | | import org.springframework.beans.factory.annotation.Autowired;
|
| | | import org.springframework.web.bind.annotation.RequestMapping;
|
| | | import org.springframework.web.bind.annotation.RestController;
|
| | | import com.ruoyi.common.utils.StringUtils;
|
| | | import com.ruoyi.framework.config.RuoYiConfig;
|
| | |
|
| | | /**
|
| | | * 棣栭〉
|
| | | *
|
| | | * @author ruoyi
|
| | | */
|
| | | @RestController
|
| | | public class SysIndexController
|
| | | {
|
| | | /** 绯荤粺鍩虹閰嶇疆 */
|
| | | @Autowired
|
| | | private RuoYiConfig ruoyiConfig;
|
| | |
|
| | | /**
|
| | | * 璁块棶棣栭〉锛屾彁绀鸿
|
| | | */
|
| | | @RequestMapping("/")
|
| | | public String index()
|
| | | {
|
| | | return StringUtils.format("娆㈣繋浣跨敤RuoYi鍚庡彴绠$悊妗嗘灦锛屽綋鍓嶇増鏈細v{}", ruoyiConfig.getVersion());
|
| | | }
|
| | | }
|