mirror of
https://gitee.com/fit2cloud-feizhiyun/MeterSphere.git
synced 2024-11-29 18:48:13 +08:00
去掉模版引擎直接使用html
This commit is contained in:
parent
104b02e242
commit
25426b299e
@ -41,17 +41,6 @@
|
||||
<artifactId>spring-boot-starter</artifactId>
|
||||
</dependency>
|
||||
|
||||
<dependency>
|
||||
<groupId>org.springframework.boot</groupId>
|
||||
<artifactId>spring-boot-starter-thymeleaf</artifactId>
|
||||
<exclusions>
|
||||
<exclusion>
|
||||
<groupId>org.springframework.boot</groupId>
|
||||
<artifactId>spring-boot-starter-tomcat</artifactId>
|
||||
</exclusion>
|
||||
</exclusions>
|
||||
</dependency>
|
||||
|
||||
<dependency>
|
||||
<groupId>org.springframework.boot</groupId>
|
||||
<artifactId>spring-boot-starter-test</artifactId>
|
||||
|
@ -11,13 +11,13 @@ public class IndexController {
|
||||
|
||||
@GetMapping(value = "/")
|
||||
public String index() {
|
||||
return "index";
|
||||
return "index.html";
|
||||
}
|
||||
|
||||
@GetMapping(value = "/login")
|
||||
public String login() {
|
||||
if (SessionUtils.getUser() == null) {
|
||||
return "login";
|
||||
return "login.html";
|
||||
} else {
|
||||
return "redirect:/";
|
||||
}
|
||||
|
@ -22,4 +22,7 @@ mybatis.configuration.use-column-label=true
|
||||
mybatis.configuration.auto-mapping-behavior=full
|
||||
mybatis.configuration.default-statement-timeout=25000
|
||||
|
||||
logging.file.path=/opt/fit2cloud/logs/${spring.application.name}
|
||||
logging.file.path=/opt/fit2cloud/logs/${spring.application.name}
|
||||
|
||||
# view
|
||||
spring.resources.static-locations=classpath:/templates/,classpath:/static/
|
||||
|
Loading…
Reference in New Issue
Block a user