springboot
阳光女孩666
这个作者很懒,什么都没留下…
展开
-
Springboot ClassNotFoundException异常
Springboot ClassNotFoundException异常: https://www.cnblogs.com/hetangyuese/p/11700033.htmltmp目录自动清除和tmpwatch命令:http://www.ttlsa.com/linux/the-tmp-directory-is-automatically-cleared-and-the-tmpwatch-command/转载 2021-01-14 11:25:22 · 577 阅读 · 0 评论 -
Springboot定时任务
序言使用SpringBoot创建定时任务非常简单,目前主要有以下三种创建方式:一、基于注解(@Scheduled)二、基于接口(SchedulingConfigurer) 前者相信大家都很熟悉,但是实际使用中我们往往想从数据库中读取指定时间来动态执行定时任务,这时候基于接口的定时任务就派上用场了。三、基于注解设定多线程定时任务一、静态:基于注解基于注解@Scheduled默认为单线程,...转载 2019-10-12 14:52:11 · 311 阅读 · 0 评论 -
springboot异常处理,及自定义异常
1.自定义系统业务异常package com.abc.common.exception;/** * @Description:异常类 * @create:2019年9月19日 下午2:04:28 */public class BizException extends RuntimeException{ private static final long serialVer...原创 2019-09-19 17:32:16 · 1029 阅读 · 0 评论 -
springboot maven项目svn上传目录
svn服务器工程目录:从svn下载工程时,选择“作为工作空间中的项目检出”,代码下载下来之后, 工程右键->configure->convert to maven projectok啦。原创 2019-08-13 08:48:31 · 1515 阅读 · 0 评论 -
springboot之后都会在SilentExitExceptionHandler类中的throw new SilentExitException()处断开
每次以debug方式启动springboot之后都会在SilentExitExceptionHandler类中的throw new SilentExitException()处断开,但是我明明没有下断点啊。如图:解决办法 :window->preferences ->java->debug 取消“suspend execution on uncaught exceptions...转载 2019-07-16 14:53:21 · 2107 阅读 · 0 评论 -
springboot官网在线搭建地址:https://start.spring.io/
官网在线搭建地址:https://start.spring.io/原创 2019-04-09 16:20:18 · 4173 阅读 · 1 评论 -
springboot runner服务启动时初始化资源
package com.abc.runner;import java.util.HashSet;import java.util.List;import java.util.Set;import org.springframework.beans.factory.annotation.Autowired;import org.springframework.boot.CommandL...原创 2019-04-09 15:06:25 · 188 阅读 · 0 评论 -
springboot log4j2整合
添加jar包依赖<dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter</artifactId> <exclusions> <!-- 去除logback依赖 --> <e...原创 2019-04-08 17:00:12 · 264 阅读 · 0 评论 -
springboot shiro session过期时间配置
第一种方式:使用内置tomcat容器配置:在application.properties配置:#session过期时间(单位秒) 默认1800s(30min)#设置小于60秒,则会默认取1分钟#实际过期时间为秒数对分钟取整,比如设置2000,则 2000s/60=33min,33min*60=1980s,实际过期时间为1980sserver.session.timeout=3600...原创 2019-03-25 17:27:52 · 17655 阅读 · 1 评论 -
SpringBoot打成war包,部署到Tomcat服务器(转载)
SpringBoot默认达成jar包,使用SpringBoot构想web应用,默认使用内置的Tomcat。但考虑到项目需要集群部署或者进行优化时,就需要打成war包部署到外部的Tomcat服务器中。一、修改pom.xml文件将默认的jar方式改为war <packaging>war</packaging>二、修改pom.xml文件修改war包项目名 <bui...转载 2019-03-21 11:22:22 · 178 阅读 · 0 评论