![](https://img-blog.csdnimg.cn/20201014180756927.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
SpringBoot
文章平均质量分 58
zhouzhou_98
所谓的焦虑就是书读的太少,而想的又太多
展开
-
vue与springboot实现大文件
项目总体结构使用springboot+vue前后端分离的方式实现大文件切片快速上传项目演示流程: 上传的基本原理就是前端根据文件大小,按块大小分成很多块,目前是一个一个块的依次上传上去,暂时还没有开始研究多线程的方式,后期将会深化这一方面的应用。 创建数据库:Date: 2021-01-23 22:45:03*/SET FOREIGN_KEY_CHECKS=0;-- ------------------------------ Table structur原创 2021-01-23 23:49:30 · 448 阅读 · 0 评论 -
大文件上传与下载
参考链接https://blog.csdn.net/xiaoashuo/article/details/104808807?utm_medium=distribute.pc_relevant.none-task-blog-baidujs_title-2&spm=1001.2101.3001.4242https://gitee.com/luckytuan/fast-loaderhttps://www.jb51.net/article/190808.htm...原创 2021-01-18 09:16:39 · 543 阅读 · 0 评论 -
拦截器
MyInterceptorpackage com.helloworld.Intercepter;import org.springframework.web.servlet.handler.HandlerInterceptorAdapter;import javax.servlet.http.HttpServletRequest;import javax.servlet...原创 2020-02-04 14:24:21 · 105 阅读 · 0 评论 -
springboot之文件上传
在application.peoperties添加,之后便进行上传下载准备#文件上传file.path=D:/upload/代码如下:application.properties###修改端口号#server.port=8082###应用上下文##server.servlet.context-path=/crm##spring.main.banner-mode=off#db....原创 2020-02-04 13:42:21 · 429 阅读 · 0 评论 -
Spring-boot之Servlet组件
AppConfigpackage com.helloworld.servlet;import org.springframework.boot.SpringApplication;import org.springframework.boot.autoconfigure.SpringBootApplication;import org.springframework.boot.we...原创 2020-02-04 11:40:29 · 102 阅读 · 0 评论 -
统一异常处理
FreeMarkerControllerpackage com.helloworld.freemarker;import org.springframework.stereotype.Controller;import org.springframework.ui.Model;import org.springframework.web.bind.annotation.Reques...原创 2020-02-04 10:57:24 · 117 阅读 · 0 评论 -
springboot集成freemarker技术
首先添加freemark依赖<!--freemarker--><dependency><groupId>org.springframework.boot</groupId><artifactId>spring-boot-starter-freemarker</artifactId><...原创 2020-02-04 10:34:16 · 182 阅读 · 0 评论 -
自动装配原理
原创 2020-02-03 19:31:03 · 925 阅读 · 0 评论 -
集合事务
第一种方式:基于标签方式:1.在主配置类中贴上@EnableTransactionManagement表示开启事务注解驱动支持.等价XML配置的: <tx:annotaion-driven/>2.在需要事务的Service上贴上@Transactional注解,表示该类下面的所有方法都需要事务.PermissionControllerpackage com....原创 2020-02-03 17:47:17 · 229 阅读 · 0 评论 -
Spring-boot集成mybatis
首先添加依赖:<dependency> <groupId>org.mybatis.spring.boot</groupId> <artifactId>mybatis-spring-boot-starter</artifactId> <version>1....原创 2020-02-03 16:23:19 · 117 阅读 · 0 评论 -
SpringBoot集成DataSource
1.spring-boot-starter-xxxx:SpringBoot中自带的starter2.xxx-spring-boot-starter:第三方和SpringBoot集成提供的starterdruid-spring-boot-starter(包含:druid数据源的原始依赖+自配配置功能的依赖)druid数据源的原始依赖<bean id=...原创 2020-02-03 14:39:21 · 1238 阅读 · 0 评论 -
热部署
在pom.xml添加热部署的依赖<!--热部署--><dependency><groupId>org.springframework.boot</groupId><artifactId>spring-boot-devtools</artifactId><optional&...原创 2020-02-03 11:49:12 · 192 阅读 · 0 评论 -
@ConfigurationProperties参数绑定标签
分两种情况:第一种情况类是自己编写的,第二种是第三方组件的第一种情况:##修改端口号server.port=8082##应用上下文#server.servlet.context-path=/crm#spring.main.banner-mode=offdb.username=rootdb.password=123456db.url=jdbc:mysql///crmdb...原创 2020-02-03 10:53:36 · 470 阅读 · 0 评论 -
Banner设置
添加当前文件,放到resourses目录下,即可查看 _ooOoo_ o8888888o 88" . "88 ( | -_- | ) ...原创 2020-02-03 09:55:47 · 1303 阅读 · 0 评论 -
参数修改
(1)首先需要使用ApplicationArgumentspackage com.helloworld.helloworld;import org.springframework.beans.factory.annotation.Autowired;import org.springframework.boot.ApplicationArguments;impo...原创 2020-02-02 22:31:37 · 1301 阅读 · 0 评论 -
spring-boot启动方式
(1)使用@SpringBootApplication(启动main函数即可使用)@SpringBootApplicationpublic class HelloworldApplication {public static void main(String[] args) {SpringApplication.run(Helloworl...原创 2020-02-02 17:50:11 · 163 阅读 · 0 评论 -
springboot与ssm模块集成的原理
1创建parent项目定义为pom类型制作core项目(项目类型为jar形式)建立website项目,打包类型为war(以此类推。构建mgrsite项目)建立mgrsite,打包类型为warspringboot的parent原理跟上述相差不多...原创 2020-02-02 17:10:46 · 240 阅读 · 0 评论 -
spring-boot创建方式
什么是springboot?创建的方式:1) 通过IDEA或者Eclipse的Spring Initializer创建.接下来bug比较多,解决办法:spring-boot-starter-parent版本号向下降级2) 访问 http://start.spring.io/ 创建SpringBoot的骨架....原创 2020-02-01 11:24:17 · 89 阅读 · 0 评论