springboot
文章平均质量分 53
qq_775879106
这个作者很懒,什么都没留下…
展开
-
SpringBoot实现参数解析基于注解
我们都知道SpringMvc的Controller的方法上可以接收各种各样的参数,比如HttpServletRequest或HttpServletResponse,各种注解@RequestParam、@RequestHeader、@RequestBody、@PathVariable、@ModelAttribute,这些参数是从哪里获取的?这些参数都是由不同的参数解析器为我们解析出来的,可以解析类也可以解析带注解的类我们可以利用解析器解析自定义的参数(类、注解),在我们需要的传入的cont...原创 2021-11-12 10:44:58 · 808 阅读 · 0 评论 -
idea+Spring Boot之springboot+mysql+mybatis搭建
springboot的优势之一就是快速搭建项目,省去了自己导入jar包和配置xml的时间,使用非常方便。1、选择file>new>project创建项目project,然后选择Spring initializr,点击下一步 2、按图示进行勾选,点击下一步,给项目起个名字,点击确定。3、选择左边的列web,右边列勾选web框 4、如果前面没有修改工程名称,可以在这一界面更改,然后点击fi...原创 2018-07-03 10:03:12 · 25310 阅读 · 20 评论 -
springboot 集成jsp页面 后台报错jasperException
1.不正确引入springboot jstl的依赖包,可能会出现如下错误the absolute uri: http://java.sun.com/jsp/jstl/core cannot be resolved in either web.xml or the jar files deployed with this application2.在pom.xml中添加jstl的依赖包即可 3...原创 2018-07-03 12:10:14 · 911 阅读 · 0 评论 -
springboot整合activemq配置yml
1、加入依赖<dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-activemq</artifactId></dependency>如果使用pool的话, 就需要在pom中加入以...原创 2019-01-28 16:49:02 · 5033 阅读 · 4 评论 -
spring boot 打包跳过测试
1、网上idea打包跳过测试,尝试多种方法各种报错,整理出正确的方式。 <properties> <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> <project.reporting.outputEncoding>UTF-8</project.r...原创 2019-04-02 17:55:30 · 1419 阅读 · 0 评论 -
使用IDEA创建Spring boot项目时,报错Cannot download 'https://start.spring.io': connect timed out
关闭防火墙解决了。原创 2019-06-01 08:49:11 · 1912 阅读 · 0 评论