mirror of
https://github.com/dqjdda/Aurora.git
synced 2018-11-06 05:33:29 +00:00
忘了改了啥,修复LM-develop指出的 图标显示异常的bug
This commit is contained in:
@@ -1,17 +1,14 @@
|
||||
package me.aurora;
|
||||
|
||||
import me.aurora.config.AuroraProperties;
|
||||
import org.springframework.boot.SpringApplication;
|
||||
import org.springframework.boot.autoconfigure.SpringBootApplication;
|
||||
import org.springframework.boot.builder.SpringApplicationBuilder;
|
||||
import org.springframework.boot.context.properties.EnableConfigurationProperties;
|
||||
import org.springframework.boot.web.servlet.support.SpringBootServletInitializer;
|
||||
import org.springframework.cache.annotation.EnableCaching;
|
||||
import org.springframework.scheduling.annotation.EnableScheduling;
|
||||
import org.springframework.stereotype.Controller;
|
||||
import org.springframework.transaction.annotation.EnableTransactionManagement;
|
||||
import org.springframework.web.bind.annotation.GetMapping;
|
||||
import springfox.documentation.swagger2.annotations.EnableSwagger2;
|
||||
|
||||
@Controller
|
||||
@EnableCaching
|
||||
|
||||
@@ -0,0 +1,21 @@
|
||||
package me.aurora.app.rest.common;
|
||||
|
||||
import me.aurora.annotation.Log;
|
||||
import org.springframework.web.bind.annotation.GetMapping;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
import org.springframework.web.servlet.ModelAndView;
|
||||
|
||||
/**
|
||||
* 公共的controller
|
||||
* @author 郑杰
|
||||
* @date 2018/09/25 19:08:41
|
||||
*/
|
||||
@RestController
|
||||
public class CommonController {
|
||||
|
||||
@Log("访问swagger页面")
|
||||
@GetMapping(value = "/swagger/index")
|
||||
public ModelAndView swagger(){
|
||||
return new ModelAndView("/system/api/index");
|
||||
}
|
||||
}
|
||||
+3
-1
@@ -1,5 +1,6 @@
|
||||
package me.aurora.app.rest.ueditor;
|
||||
|
||||
import me.aurora.annotation.Log;
|
||||
import me.aurora.config.baidu.ueditor.ActionEnter;
|
||||
import org.springframework.web.bind.annotation.GetMapping;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
@@ -16,8 +17,9 @@ import java.io.PrintWriter;
|
||||
*/
|
||||
@RestController
|
||||
@RequestMapping("ueditor")
|
||||
public class UEditorController {
|
||||
public class UeditorController {
|
||||
|
||||
@Log("访问富文本编辑器")
|
||||
@GetMapping(value = "/index")
|
||||
private ModelAndView index(){
|
||||
return new ModelAndView("/ueditor/index");
|
||||
@@ -31,7 +31,5 @@ public class ConfigurerAdapter implements WebMvcConfigurer {
|
||||
//跳转登陆注册页面
|
||||
registry.addViewController("/login.html").setViewName("/user/login");
|
||||
registry.addViewController("/signUp.html").setViewName("/register");
|
||||
//跳转到swagger页面
|
||||
registry.addViewController("/swagger/index").setViewName("/system/api/index");
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user