首页 > 其他分享 >Error resolving template [date], template might not exist or might not be accessible by any of the c

Error resolving template [date], template might not exist or might not be accessible by any of the c

时间:2023-04-04 22:33:29浏览次数:38  
标签:accessible return configured template might welcome1

这种情况要不就是你想加载页面

@RequestMapping("/welcome1.html")
public String welcome1(){
return "/welcome1";
}

但写错了

改正:

@RequestMapping("/welcome1.html")
public String welcome1(){
return "welcome1";
}

或者你想return一个值

加入注解

@ResponseBody

返回

 

标签:accessible,return,configured,template,might,welcome1
From: https://www.cnblogs.com/lin-07/p/17288139.html

相关文章

  • Property 'sqlSessionFactory' or 'sqlSessionTemplate' are required
    网上一堆说的,启动类的加@MapperScan,mybatis指定mapper路径,甚至说实体类与数据库连不上等等。都不行,后来比对下与另一个能正常启动的pom文件比对,发现是依赖没加入,包括connector依赖都没有。综上,思路是未连接数据库的原因。......
  • template
    template(......
  • Kubernetes: manifest template
     apiVersion:v1Kind:podapiVersion:v1kind:Podmetadata:annotations:kubeadm.kubernetes.io/kube-apiserver.advertise-address.endpoint:192.168.8.11:6443kubernetes.io/config.hash:755e36554917832e5f2c40bbb2e580cblabels:component:k......
  • SpringBoot 使用RedisTemplate
    1.导入Maven依赖<dependency><groupId>org.springframework.boot</groupId><artifactId>spring-boot-starter-data-redis</artifactId></dependency>2.配置连接信息spring:redis:host:127.0.0.1......
  • Unable to start the daemon process . This problem might be caused by incorrect c
      创建springboot项目的时候报这个错是因为你选择了Gradle环境但是你本地没有这个Gradle环境   选择maven环境就可以了......
  • Spring中使用JdbcTemplate操作数据库
    JDBC是Java提供的一种用于执行SQL语句的API,可以对多种关系型数据库(例如MySQL、Oracle等)进行访问。但在实际的企业级应用开发中,却很少有人直接使用原生的JDBCAPI......
  • poi 导入excel (懒人拷贝代码用)(jdbctemplate)oms版本
     相关内容:1,jdbcTemplate批量导入2,js原始产生form动态产生文件选择框3,反射机制调用set方法 <divclass="l-bar-separator"></div><divclass="group"><aclass="linkad......
  • RestTemplate
    服务之间是通过http协议调用,虽然效率较低但是具有良好的可扩展性和可维护性。可以通过httpclient,okhttp等调用但是有重复代码,较难维护,使用不便。现在流行的方式有RestTempl......
  • JPA Page 通过RestTemplate传递
    Cannotconstructinstanceoforg.springframework.data.domain.Page 直接上解决方案:构造实现类(因为PageImpl没有构造函数,所以自带的PageImpl无法使用)importor......
  • vue-element-template改为从后台获取菜单
    一、后端接口获取菜单信息1、返回数据样式{ "code":20000, "data":[{ "menuId":"2000000000000001", "parentMenuId":"0", "name":"Json工具", "menuType......