springboot
文章平均质量分 70
God__is__a__girl
这个作者很懒,什么都没留下…
展开
-
vue修改 el-input 输入框默认背景色
vue修改 el-input 输入框默认背景色原创 2022-09-08 17:46:14 · 7501 阅读 · 0 评论 -
JAVA按行处理大文件
JAVA按行处理大文件原创 2022-07-24 21:01:51 · 152 阅读 · 0 评论 -
前后端分离spring security中loadUserByUsername参数name为空
检查前端传回的参数名称是否是username和password,spring security默认的参数名称是username和password,如果不是,可能更改前端的形参,也可以在WebSecurityConfigurerAdapter的configure实现接口里面添加你的参数名称在后端设置前端传回的参数名称http. ...//省略 .formLogin() .usernameParameter("username") .passwordParameter("passwor.原创 2021-10-06 09:11:13 · 2183 阅读 · 0 评论 -
Maven报错:Downloading from central: https://repo.maven.apache.org/maven2/
今天用Maven跑项目时,遇到这样的问题:Downloading from central: https://repo.maven.apache.org/maven2/…原因:所有自定义pom.xml都是继承自super pom,spuper pom中有如下内容:<repositories> <repository> <id>central</id> <name>Central Repository<转载 2021-09-05 11:22:42 · 1727 阅读 · 0 评论 -
SpringBoot 启动 banner.txt 生成
SpringBoot 启动 banner.txt 生成在 resource 下新建 banner.txt 图标在 图标生成网站 输入你喜欢的文字或者字母重新启动程序就ok原创 2020-11-16 09:00:56 · 614 阅读 · 0 评论 -
java.sql.SQLException: The server time zone value解决办法
报错:java.sql.SQLException: The server time zone value '�й���ʱ��' is unrecognized or represents more than one time zone. You must configure either the server or JDBC driver (via the 'serverTimezone' c...原创 2020-03-03 22:30:46 · 1816 阅读 · 2 评论 -
Spring Boot 定时任务参数说明
Spring Boot 定时任务参数说明@Scheduled 注解@Scheduled 注解可以接受两种定时的设置,一种是我们常用的cron="*/5 * * * * ?" ,一种是 fixedRate=5000,两种都表示每隔五秒打印一下内容。cron 参数一个cron表达式有至少6个(也可能7个)有空格分隔的时间元素。按顺序依次为秒(0~59)分钟(0~59)小时(0~23)...转载 2018-11-12 13:40:30 · 304 阅读 · 0 评论 -
spring热部署
1.在maven中添加如下配置 <dependency> <groupId>org.springframework</groupId> <artifactId>springloaded</artifactId> </dependency> ...原创 2018-12-18 10:43:59 · 233 阅读 · 0 评论 -
springboot 定时任务实现的三种方法
springboot 动态配置定时任务时间 需要实现 SchedulingConfigurer 接口 类上添加启动定时任务注解 @EnableScheduling 添加 @Component 注册为 bean例子如下import org.apache.commons.lang3.StringUtils;import org.slf4j.LoggerFactory;import o...原创 2019-01-13 13:46:22 · 352 阅读 · 0 评论