|
@@ -1,12 +1,15 @@
|
|
|
package com.kym.admin;
|
|
package com.kym.admin;
|
|
|
|
|
|
|
|
-import com.kym.service.wechat.impl.WxPayServiceImpl;
|
|
|
|
|
import org.mybatis.spring.annotation.MapperScan;
|
|
import org.mybatis.spring.annotation.MapperScan;
|
|
|
import org.springframework.boot.SpringApplication;
|
|
import org.springframework.boot.SpringApplication;
|
|
|
import org.springframework.boot.autoconfigure.SpringBootApplication;
|
|
import org.springframework.boot.autoconfigure.SpringBootApplication;
|
|
|
import org.springframework.context.annotation.ComponentScan;
|
|
import org.springframework.context.annotation.ComponentScan;
|
|
|
import org.springframework.context.annotation.FilterType;
|
|
import org.springframework.context.annotation.FilterType;
|
|
|
|
|
+import org.springframework.stereotype.Controller;
|
|
|
|
|
+import org.springframework.web.bind.annotation.RequestMapping;
|
|
|
|
|
|
|
|
|
|
+
|
|
|
|
|
+@Controller
|
|
|
@SpringBootApplication()
|
|
@SpringBootApplication()
|
|
|
@ComponentScan(value = {"com.kym"}, excludeFilters = @ComponentScan.Filter(type = FilterType.ASSIGNABLE_TYPE))
|
|
@ComponentScan(value = {"com.kym"}, excludeFilters = @ComponentScan.Filter(type = FilterType.ASSIGNABLE_TYPE))
|
|
|
@MapperScan(basePackages = {"com.kym.mapper"})
|
|
@MapperScan(basePackages = {"com.kym.mapper"})
|
|
@@ -16,4 +19,10 @@ public class AdminApplication {
|
|
|
SpringApplication.run(AdminApplication.class, args);
|
|
SpringApplication.run(AdminApplication.class, args);
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
+
|
|
|
|
|
+ @RequestMapping("/")
|
|
|
|
|
+ public String index() {
|
|
|
|
|
+ return "redirect:/index.html";
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
}
|
|
}
|