浏览代码

windy地图

yl 8 月之前
父节点
当前提交
4822893d6c

+ 15 - 0
cpp-admin/src/main/java/com/cpp/web/controller/staticA/StaticController.java

@@ -0,0 +1,15 @@
+package com.cpp.web.controller.staticA;
+
+
+import org.springframework.stereotype.Controller;
+import org.springframework.web.bind.annotation.GetMapping;
+
+
+@Controller
+public class StaticController {
+
+    @GetMapping("/windy")
+    public String returnHtml(){
+        return "windy";
+    }
+}

文件差异内容过多而无法显示
+ 9399 - 0
cpp-admin/src/main/resources/templates/windy.html


+ 2 - 1
cpp-framework/src/main/java/com/cpp/framework/config/SecurityConfig.java

@@ -113,7 +113,8 @@ public class SecurityConfig
                 // 对于登录login 注册register 验证码captchaImage 允许匿名访问
                 requests.antMatchers("/login", "/register", "/captchaImage").permitAll()
                     // 静态资源,可匿名访问
-                    .antMatchers(HttpMethod.GET, "/", "/*.html", "/**/*.html", "/**/*.css", "/**/*.js", "/profile/**","/static/**","/index").permitAll()
+                    .antMatchers(HttpMethod.GET, "/", "/*.html", "/**/*.html", "/**/*.css", "/**/*.js", "/profile/**","/static/**","/index","/windy").permitAll()
+
                     .antMatchers("/swagger-ui.html", "/swagger-resources/**", "/webjars/**", "/*/api-docs", "/druid/**").permitAll()
                     // 除上面外的所有请求全部需要鉴权认证
                     .anyRequest().authenticated();

+ 5 - 1
cpp-ui/src/views/windy/index.vue

@@ -8,8 +8,12 @@ export default {
   components: { iFrame },
   data() {
     return {
-      url: "D:/code/cpp/cpp-ui/src/views/windy/windy.html"
+      // url: "file:///D:/kf/IDProject/cpp/cpp-ui/src/views/windy/windy.html"
+      url:process.env.VUE_APP_BASE_API + "/windy"
     };
   },
+  mounted() {
+
+  },
 };
 </script>

部分文件因为文件数量过多而无法显示