
java_springboot
HDU鬼先生
Java开发者
展开
-
SpringBoot下载Excel不能打开
https://blog.youkuaiyun.com/qq_35542689/article/details/88972312转载 2020-11-25 15:32:25 · 964 阅读 · 0 评论 -
下载文件Could not find acceptable representation
已解决!https://blog.youkuaiyun.com/abelethan/article/details/100559862原创 2020-11-25 11:44:52 · 1466 阅读 · 0 评论 -
Springboot读取配置文件
Springboot工具类读取配置文件内容(用于可配置接口的地址)1.开发环境IDEA +Springboot2.0.2 + maven + yml配置文件2.需要的文件1.配置文件:application.yml2.工具类:SoapUtils.java3.注入容器:YMLConfig.java3.实现application.yml:# 接口地址commonurl: recognitionWebServiceUrl: http://199.99.99.115:1.原创 2020-09-21 22:31:55 · 272 阅读 · 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 · 218 阅读 · 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 · 26629 阅读 · 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 · 254 阅读 · 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 · 233 阅读 · 0 评论 -
使用WinSW 在Windows服务打包部署Springboot项目
1.开发环境Springboot2.0.2.RELEASE+Maven+Idea2.目录结构3.打包jar包1.在pom.xml配置打包依赖<dependencies>... ...</dependencies><build> <plugins> <plugin> ...原创 2020-04-02 19:28:22 · 605 阅读 · 5 评论 -
对SpringIOC的理解
转自:博客园学习过Spring框架的人一定都会听过Spring的IoC(控制反转) 、DI(依赖注入)这两个概念,对于初学Spring的人来说,总觉得IoC 、DI这两个概念是模糊不清的,是很难理解的,今天和大家分享网上的一些技术大牛们对Spring框架的IOC的理解以及谈谈我对Spring Ioc的理解。一、分享Iteye的开涛对Ioc的精彩讲解 首先要分享的是Iteye的开涛这位...转载 2019-02-24 00:20:39 · 175 阅读 · 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 · 1073 阅读 · 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,选择quickstart2.补全项目结构3.run一下输出Hello World!...原创 2019-01-20 19:36:39 · 360 阅读 · 0 评论