zysnba
- 浏览: 122611 次
- 性别:
- 来自: 北京
-
社区版块
- ( 0)
- ( 0)
- ( 0)
最新评论
文章列表
- 博客分类:
list joincountlist = totaltlist.stream()
.filter(item -> testlist.stream().map(e -> e.getstudentid()).collect(collectors.tolist())
.contains(item.getstudentid())).collect(collectors.tolist());
- 前天
- 浏览 10
- 分类:编程语言
1,'org.hibernate.validator:hibernate-validator:6.0.17.final'导入检验包
2,
@notblank(message = "图片url不能为空")
private string picurl;
3,public result saveobject(@requestbody @valid demodto dto) {
4,建立全局捕获异常类
package com.exception;
import com.ka.common.api.resultjson;
import com.ka.common.er ...
- 2022-10-28 10:13
- 浏览 41
- 分类:编程语言
- 博客分类:
1,引入
// https://mvnrepository.com/artifact/org.aspectj/aspectjweaver
implementation group: 'org.aspectj', name: 'aspectjweaver', version: '1.9.6'
2
package com.etonkids.wonderhouse.interceptor;
import java.lang.annotation.*;
/**
* 系统日志注解
*
* @author zys
* @email xxx
* @date 2019年1月14日 ...
- 2022-10-21 13:05
- 浏览 20
- 分类:编程语言
- 博客分类:
/**
* 导出
*
* @param response
*/
@requestmapping("/doexport")
public void doexport(httpservletrequest request, httpservletresponse response) throws ioexception { //对应数据库操作
list list = xxusersservice.list();
//在内存操作,写到浏览器
...
- 2022-09-22 11:45
- 浏览 14
- 分类:编程语言
- 博客分类:
1,定义controller
@postmapping("/uploadexcel")
@apioperation(value = "导入上传")
public result upload(@requestparam("studentlist") multipartfile reqxls,httpservletrequest request) {
return service.readrequestxls(excelutil.getreader(reqxls.getinputstrea ...
- 2022-09-22 11:20
- 浏览 19
- 分类:编程语言
- 博客分类:
服务端=====1
@getmapping("getdate")
@apioperation(value = "获取数据")
public resultjson getdate(long userid,string studentnumber) {
try {
log.info("userid:::===" userid);
log.info("studentnumber:::===" studentnumber);
...
- 2022-07-14 11:53
- 浏览 37
- 分类:编程语言
- 博客分类:
public static void main(string[] args) {
arraylist lista = collectionutil.tolist("a", "b", "c", "d", "e");
arraylist listb = collectionutil.tolist( "b", "c", "d", "e" ...
- 2022-06-23 14:54
- 浏览 374
- 分类:编程语言
- 博客分类:
public static void main(string[] args) {
system.out.println(new date() "当前时间");
system.out.println(dateutil.beginofmonth(new date()) "当月开始时间");
system.out.println(dateutil.endofmonth(new date()) "当月结束时间");
datetime datetime = dateutil.offs ...
- 2022-06-13 15:59
- 浏览 88
- 分类:编程语言
- 博客分类:
public static list finddaysstr(string cntdatebeg, string cntdateend) {
list list = new arraylist<>();
//拆分成数组
string[] datebegs = cntdatebeg.split("-");
string[] dateends = cntdateend.split("-");
//开始时间转换成时间戳
calendar start = calendar. ...
- 2022-06-07 11:45
- 浏览 235
- 分类:编程语言
- 博客分类:
1,定义异步config
package com.text.config;
import org.springframework.context.annotation.bean;
import org.springframework.context.annotation.configuration;
import org.springframework.scheduling.annotation.asyncconfigurer;
import org.springframework.scheduling.annotation.enableasync;
import org.springfra ...
- 2022-04-02 10:46
- 浏览 74
- 分类:编程语言
- 博客分类:
1.首先,新建一个word文档,内容如下,另存为pdf格式,我的命名:test.pdf
2.用adobe acrobat pro 打开刚刚制作的pdf文件。
3.点击创建-->pdf表单-->使用当前文档-->使用当前文档,一直点下一步完成。(有的版本adobe acrobat pro软件右边有准备表单,直接点击准备表单是同样的效果
4.上面好多给框,双击黑框可以修改名称,还可以设置字体大小。
5.图片的地方没有黑框,我们可以在空白处点击右键,选择文本域,给图片的域起名为img
6.如下图是制作好的pdf模板,直接保存即可。注意:黑框里面的名称,是后面程序要用到 ...
- 2022-04-01 15:49
- 浏览 106
- 分类:编程语言
- 博客分类:
和表没关系做映射
@apimodelproperty(value = "测试")
@tablefield(exist = false)
// private list lists;
前段忽律字段显示
@apimodelproperty(value = "创建时间",hidden = (true))
private localdatetime createtime;
- 2022-04-01 14:29
- 浏览 73
- 分类:编程语言
- 博客分类:
文件路径 =====resource/file/test.txt
代码直接使用即可
classpathresource classpathresource = new classpathresource("file/test.txt");
- 2022-03-31 11:03
- 浏览 274
- 分类:编程语言
- 博客分类:
1,通过code获取sesionkey和openid
封装实体类
public class wxmajscode2sessionresult {
private string session_key;
private string openid;
private string unionid;
private integer errcode;
private string errmsg;
}
2,通过jscode获取相关信息
map param = maps.newhashmap();
...
- 2022-03-25 13:07
- 浏览 83
- 分类:行业应用
« 上一页 1 …