import org.springframework.stereotype.Controller; import org.springframework.web.bind.annotation.RequestMapping; /** * @outhor yuyu * @date 2022/4/24 18:45 **/ @Controller public class HellowController { @RequestMapping("/") public String index(){ //返回视图名称 return "index"; } }
已经在Tomcat中下载了8.5版本
web.xml也已经配置
<?xml version="1.0" encoding="UTF-8"?> <!-- Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to You under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the Lice