初始版本

This commit is contained in:
suncz
2024-04-29 17:04:35 +08:00
commit b174c04733
1701 changed files with 349852 additions and 0 deletions

View File

@@ -0,0 +1,28 @@
package com.vverp.controller;
import com.vverp.service.InformationService;
import org.springframework.stereotype.Controller;
import org.springframework.ui.ModelMap;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import javax.annotation.Resource;
/**
* @author dealsky
* @date 2021/4/27 下午5:33
*/
@Controller
@RequestMapping("/information")
public class InformationController {
@Resource
private InformationService informationService;
@RequestMapping("/{title}")
public String preview(ModelMap modelMap, @PathVariable String title) {
modelMap.addAttribute("information", informationService.findSingle());
return "/information/preview";
}
}