JZTXT
  • 首页
  • Ai
  • Java
  • Python
  • Android
  • Mysql
  • JavaScript
  • Html
  • CSS

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

发布时间 2023-04-04 22:29:53作者: 阿霖找BUG

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

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

但写错了

改正:

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

或者你想return一个值

加入注解

@ResponseBody

返回

 

    本栏目推荐文章
  • Go标准库:Go template用法详解
  • ACCESS 快速构建修改数据的窗体
  • [cpp]: 以模板作为模板参数 -- <template>
  • Templates Generics 模板 范型
  • String 类和 STL (Standard Template Library)
  • nginx反向代理时报no resolver defined to resolve
  • [cpp]: concept --<template>
  • cdn引入vue后报错无法识路径 Uncaught TypeError: Failed to resolve module specifier "vue". Relative references must start with either "/", "./", or "../".
  • [Vue warn]: Component provided template option but runtime compilation is not supported in this build of Vue. Configure your bundler to alias "vue" to "vue/dist/vue.esm-bundler.js".
  • SpringBoot配置报错:Description: Failed to configure a DataSource: 'url' attribute is not specified and no embedded datasource could be configured. Reason: Failed to determine a suitable driver class
版权声明:本网站为非赢利性站点,本网站所有内容均来源于互联网相关站点自动搜索采集信息,相关链接已经注明来源。
联系我们