码迷,mamicode.com
首页 >  
搜索关键字:SpringBoot    ( 9666个结果)
Intellij idea 配置热部署
1. 采用外部tomcat的配置 1)打开右上角Run的Edit Configuration进入Tomcat配置选项页面 2)将On frame deactivation选项更改为 Update classes and resources 2. 采用springboot自带tomcat 1)pom. ...
分类:其他好文   时间:2018-06-23 13:25:47    阅读次数:191
2、SpringBoot------数据转换
开发工具:STS 代码下载链接:https://github.com/theIndoorTrain/Springboot/tree/083bb312526653d27ca56abf4f586e097cc4a980 前言: 在web项目中,前端传入的时间通常为字符串格式,比如‘1999-01-02’、 ...
分类:编程语言   时间:2018-06-23 13:12:16    阅读次数:169
Springboot使用session容器存取短信验证码
Springboot使用session容器存取短信验证码,(手抖挖了坑在@WebListener类声明时候加了个abstract导致springboot扫描不到这个监听器) 需求:为了给app做接口,在session中存取短信验证码,接口速速撸好swagger测试从session中拿短信验证码信息6 ...
分类:编程语言   时间:2018-06-23 11:43:45    阅读次数:536
springboot接受表单400错误
主要原因是封装的类型与表单传入的字段类型无法匹配 controller接受post方法,将字段封装成user,因此表单传入的类型必须完全匹配User中的字段类型 ...
分类:编程语言   时间:2018-06-23 11:42:28    阅读次数:137
1、SpringBoot------表单校验
开发工具:STS 代码下载链接:https://github.com/theIndoorTrain/Springboot/tree/1ef5e597a6f866e73387c0238dbcdf46cfcf39b9 前言: 当我们提交表单时,如何对表单进行快速的过滤校验,Springboot给我们提供 ...
分类:编程语言   时间:2018-06-23 10:36:30    阅读次数:194
SpringBoot 2 HTTP转HTTPS
@Bean public TomcatServletWebServerFactory servletContainer() { TomcatServletWebServerFactory tomcat = new TomcatServletWebServerFactory() { @Override... ...
分类:编程语言   时间:2018-06-23 01:25:03    阅读次数:363
SpringBoot系列: 单元测试
SpringBoot 项目单元测试也很方便, Web项目中单元测试应该覆盖:1. Service 层2. Controller 层 本文前半部分讲解是一些测试基础配置. 对于Service和Controller测试的讲解,摘自一个博客(嘟嘟独立博客的博客, Spring Boot干货系列:(十二)S ...
分类:编程语言   时间:2018-06-22 23:54:35    阅读次数:278
记一次springboot访问linux的mysql数据库
今天使用springboot连接linux的mysql,期间一直报错,这里简单记录一下过程。 工具:idea-2017,linux-7.x,mysql-5.6.40。 首先说一下这几个注解的作用: (1)Spring Boot的@SpringBootApplication、@EnableAutoCo ...
分类:数据库   时间:2018-06-22 19:31:58    阅读次数:713
Cannot debug in IntellijIdea on Linux
OS: Deepin LinuxIDE: Intellij IdeaProject: SpringBoot based maven project Issue: cannot debug in Idea, but run is OKIdea 2017.2.4:java.lang.ClassNotFo ...
分类:系统相关   时间:2018-06-22 18:54:09    阅读次数:391
SpringBoot-03:SpringBoot+Idea热部署
吾亦无他,唯手熟尔,谦卑若愚,好学若饥 所谓热部署,就是在项目启动中,修改class类中做的修改操作,无需重新启动项目,就可以变更,在网页展示中有直接变更 首先idea需要三步骤: 热部署对于idea比较特殊,jar包+properties/yml的配置还不够,还需要改idea的设置 一,jar包依 ...
分类:编程语言   时间:2018-06-22 18:27:08    阅读次数:186
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!