![](https://img-blog.csdnimg.cn/20201014180756925.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
java_springboot
HDU鬼先生
Java开发者
展开
-
SpringBoot下载Excel不能打开
https://blog.csdn.net/qq_35542689/article/details/88972312转载 2020-11-25 15:32:25 · 879 阅读 · 0 评论 -
下载文件Could not find acceptable representation
已解决! https://blog.csdn.net/abelethan/article/details/100559862原创 2020-11-25 11:44:52 · 1428 阅读 · 0 评论 -
Springboot读取配置文件
Springboot工具类读取配置文件内容(用于可配置接口的地址) 1.开发环境 IDEA +Springboot2.0.2 + maven + yml配置文件 2.需要的文件 1.配置文件:application.yml 2.工具类:SoapUtils.java 3.注入容器:YMLConfig.java 3.实现 application.yml: # 接口地址 commonurl: recognitionWebServiceUrl: http://199.99.99.115:1.原创 2020-09-21 22:31:55 · 215 阅读 · 0 评论 -
【开发日常BUG】ERROR RESOLVING TEMPLATE “xxxx“, TEMPLATE MIGHT NOT EXIST OR MIGHT NOT BE ACCESSIBLE
1.问题描述 将springboot项目打成jar包发布的时候,提示500,页面不存在,但是你可以在jar包找到页面. 2.问题解决 你可能在ThymeleafController中是这样写代码的. 错误示范: @RequestMapping("/english") private String toIdentifyOperate() { return "/english"; } 正确示范: @RequestMapping("/english")原创 2020-08-25 14:35:26 · 182 阅读 · 0 评论 -
template might not exist or might not be accessible by any of the configured Template Resolvers
简单表述:控制台出现了这个异常:Error resolving template "xxx", template might not exist or might not be accessible by any of the configured Template Resolvers 解决办法:在报出这个异常的方法上添加注解@ResponseBody 讲一下个人理解:这个注解就是用来区别 方法的返回值字符串 和 视图解析器解析的页面名字字符串 的冲突的,举个例子:方法A返回的字符串success,如果转载 2020-07-26 16:31:58 · 26543 阅读 · 0 评论 -
【问题记录】Springboot项目中templates和static的区别和templates网页如何用后台方式打开
1.开发环境 Idea+maven+Springboot2.0.2.RELEASE+thymeleaf+yml配置文件 2.项目目录 2.遇到的问题1 将Springboot项目部署到Windows服务后,使用ip:端口/index.html的方式无法打开主页. 解决方法:html在templates中建议使用后台请求Controller的方式打开 @Controller @Cr...原创 2020-04-02 20:02:36 · 214 阅读 · 0 评论 -
SpringBoot整合Thymeleaf
1.开发环境 Idea+Springboot2.0.2+maven+thymeleaf+yml配置文件 2.项目目录 3.pom.xml依赖配置 <parent> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-sta...原创 2020-04-02 19:56:08 · 199 阅读 · 0 评论 -
使用WinSW 在Windows服务打包部署Springboot项目
1.开发环境 Springboot2.0.2.RELEASE+Maven+Idea 2.目录结构 3.打包jar包 1.在pom.xml配置打包依赖 <dependencies> ... ... </dependencies> <build> <plugins> <plugin> ...原创 2020-04-02 19:28:22 · 549 阅读 · 5 评论 -
对SpringIOC的理解
转自:博客园 学习过Spring框架的人一定都会听过Spring的IoC(控制反转) 、DI(依赖注入)这两个概念,对于初学Spring的人来说,总觉得IoC 、DI这两个概念是模糊不清的,是很难理解的,今天和大家分享网上的一些技术大牛们对Spring框架的IOC的理解以及谈谈我对Spring Ioc的理解。 一、分享Iteye的开涛对Ioc的精彩讲解 首先要分享的是Iteye的开涛这位...转载 2019-02-24 00:20:39 · 146 阅读 · 0 评论 -
慕课网_SpringBoot构建电商基础秒杀项目_学习笔记<2>引入SpingBoot项目
正题 本项目使用的环境 开发工具:IntelliJ IDEA 2017.3.1,Navicat for MySQL springboot:2.0.5 jdk:jdk1.8.0_151 maven:apache-maven-3.6.0 步骤: 1.建议多去看看spring的文档 2.设置pom.xml,引入依赖和插件(SpringBoot,mysqldriver,druid连接池,my...原创 2019-01-20 20:01:47 · 1026 阅读 · 0 评论 -
慕课网_SpringBoot构建电商基础秒杀项目_学习笔记<1>使用IDEA创建MAVEN项目
正题 本项目使用的环境 开发工具:IntelliJ IDEA 2017.3.1,Navicat for MySQL springboot:2.0.5 jdk:jdk1.8.0_151 maven:apache-maven-3.6.0 步骤: 1.创建一个mavenproject,选择quickstart 2.补全项目结构 3.run一下输出Hello World!...原创 2019-01-20 19:36:39 · 313 阅读 · 0 评论