
java
404专业团队
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
springboot整合html与jsp(详细)
springboot整合html与jsp1.在项目下生成webapp==File= ==>Project Structure= >Modules2.pom.xml 在兼容html的同时兼容jsp <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-thymeleaf原创 2020-06-29 10:53:17 · 1471 阅读 · 0 评论 -
springboot常见用处及陷阱
springbootspringboot的Html页面1.想要显示css和js必须加<html lang="en" xmlns:th="http://www.thymeleaf.org"> <base th:href="${#request.getContextPath()}+'/'">2.thymeleaf语法(1)超链接 使用th:href标签,内容格式是@{…} 如:<a th:href=”@{http://localhost:8080/l原创 2020-06-12 19:53:34 · 293 阅读 · 0 评论 -
idea运行项目tomcat报错找不到catalina.bat,系统找不到指定的文件
idea报错Cannot run program “D:\apache-tomcat-8.0.53\bin\catalina.bat” (in directory “D:\apache-tomcat-8.0.53\bin”): CreateProcess error=2,系统找不到指定的文件错误展示解决问题过程之前不小心更改了电脑的配置,导致idea运行tomcat就一直报这个错误,在网上查找了很多方法,也请别人给我远程过,其中重新下载了不同版本的tomcat,idea,但是问题依旧存在。最后想到了原创 2020-05-23 11:09:34 · 5377 阅读 · 4 评论 -
SpringBoot中上传图片到当前目录下,不能立即显示,需要重启服务器才会显示上传的图片
SpringBoot中上传图片到当前目录下,不能立即显示,需要重启服务器才会显示上传的图片bug原因这是因为idea对服务器的保护措施导致的,服务器不能对外部暴露真实的资源路径,需要配置虚拟路径映射访问。错误效果展示解决方法:在项目中配置虚拟路径映射访问@Configurationpublic class ImagesUploadConfig implements WebMvcConfigurer { @Override public void addResourceHandl原创 2020-05-22 08:58:56 · 2109 阅读 · 6 评论