使用thymeleaf模板引擎,引入frame框架和公用css和js文件

This commit is contained in:
F嘉阳
2018-02-04 11:25:29 +08:00
parent b9d60e644b
commit 1eb2dbffd8
15 changed files with 12111 additions and 71 deletions

View File

@@ -13,11 +13,6 @@ public class LoginController {
@Autowired
private UserService userService;
@GetMapping(value = {"index",""})
public String toLoginPage(){
return "login";
}
@PostMapping("/login/dologin")
public String doLogin(TbUser tbUser)throws Exception{
if (userService.doLoginService(tbUser.getColname(),tbUser.getColpassword())){

View File

@@ -0,0 +1,17 @@
package com.fjy.spring.controller;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
@Controller
public class NavController {
@GetMapping(value = {"index",""})
public String toLoginPage(){
return "login";
}
@GetMapping(value = {"testthymeleaf"})
public String toTestPage(){
return "/dist/thymeleafTest";
}
}