实现excel 导出 一、需求 实现 excel 的导出 二、技术 选用 easypoi 官网: https://gitee.com/lemur/easypoi#http://doc.wupaas.com/docs/easypoi/easypoi-1c0u4mo8p4ro8 三、实现 1、前端 <e ...
分类:
编程语言 时间:
2021-02-08 12:42:34
阅读次数:
0
回到顶部 一、全局配置文件 1、分类:(文件名固定) (1)application.properties(2)application.yml(3)以上两种文件作用类似,但是内部写法有些区别。 2、作用: 修改 SpringBoot 自动配置的默认值。 3、什么是yml YML文件格式是YAML (Y ...
分类:
编程语言 时间:
2021-02-08 11:44:58
阅读次数:
0
1.vue配置 /** * * 相对于该配置的nginx服务器请参考nginx配置文件 * */ module.exports = { // 基本路径 publicPath: '/', // 输出文件目录 outputDir: 'dist', // webpack-dev-server 相关配置 d ...
分类:
编程语言 时间:
2021-02-08 11:40:26
阅读次数:
0
Service层单元测试 步骤一:添加 jar 包 <!--mybatis-plus--> <dependency> <groupId>com.baomidou</groupId> <artifactId>mybatis-plus-boot-starter</artifactId> <version ...
分类:
编程语言 时间:
2021-02-06 12:17:35
阅读次数:
0
简单的方法是 直接在Controller内的接口参数前加上校验注解(@NotBlank...等),此时需在类上加注解 @Validated即可.当校验参数过多,这种方法使接口参数看起来过于臃肿,代替的选择是在实体类上使用 @Validated 注解来进行一些参数的验证. 一、实体类加注解 @Null ...
分类:
编程语言 时间:
2021-02-06 12:13:11
阅读次数:
0
Spring常用注解 本文枚举一些常用的SpringBoot开发注解,希望能帮助读者在SpringBoot开发中正确地使用注解。 @Spring Application 主程序注解,spring框架的main函数自带注解。一般不需要开发人员操作,Spring Initializer会写好。 @Con ...
分类:
编程语言 时间:
2021-02-06 12:01:01
阅读次数:
0
SpringBoot actuator(自定义端点类) 1、编写自动端点类很简单,只需要在类前面使用@Endpoint注解 EndPoint中id 来表示url路径 2、使用@ReadOperation //显示监控指标 3、使用@WriteOperation //动态修改指标,以post方式修改 ...
分类:
编程语言 时间:
2021-02-05 10:47:22
阅读次数:
0
RestController和Controller的区别 @RestController = @ResponseBody + @Controller 如果只是使用@RestController注解Controller,则Controller中的方法无法返回jsp页面,或者html,配置的视图解析器 ...
分类:
编程语言 时间:
2021-02-04 12:13:15
阅读次数:
0
方法一: 使用maven方式创建。 1.1创建Maven项目 1.选择file->new->project,创建maven项目 2. 选择默认的工作空间 3.选择项目的类型,这里以web项目为主,选择quickstart类型的: 4.填写项目组和名称,点击finish 5.此时一个maven项目就创 ...
分类:
编程语言 时间:
2021-02-04 11:54:58
阅读次数:
0
单点登录中目前比较流行的一种使用方式,就是springsecurity+jwt实现无状态下用户登录;下面是对于Spring-Security进行单点登录使用token来进行交互的一种方式。第一次写博客请多多指教如果有更好的方式或者是错误的点麻烦请指教。 Spring-Security的主要几个实现类 ...
分类:
编程语言 时间:
2021-02-04 11:52:26
阅读次数:
0