logo
publist
写文章

简介

该用户还未填写简介

擅长的技术栈

可提供的服务

暂无可提供的服务

springboot中service层单元测试

1.生成测试类按住alt+insert弹出自动生成的选项,点击TEST会在Test里面自动生成测试类然后添加上@RunWith(SpringRunner.class)@SpringBootTest这两个注解。import com.example.demo.car.service.CarService;import org.junit.jupiter.api.Test;import org.juni

#单元测试#java
PR安装出现错误代码:195

安装PR2020的时候出现了错误代码195,网上搜索之后发现说是windows的版本需要更新,于是windows更新到了1903版本,但是还是安装不成功,也改成了用兼容性模式安装但是还是不管用又找了pr2019和pr2018两个版本来安装,结果均报195的错误,后,来没有办法,换了一个安装包,结果就正常安装上去了,放上连接链接:https://pan.baidu.com/s/11cQfBRmzjH

文章图片
在阿里云linux上安装docker

参考文档:https://help.aliyun.com/document_detail/60742.html?spm=a2c4g.11174283.6.548.24c14541ssYFIZ第一步:安装必要的一些系统工具yum install -y yum-utils device-mapper-persistent-data lvm2第二步:添加软件源信息yum-config-manager -

自动生成数据库表结构文档

github项目地址:https://github.com/pingfangushi/screw不需要下载github项目有两种方法,一种写代码,一种用maven插件的方法,那我们当然选择maven插件啦!步骤一在pom.xml文件中添加如下代码:可以根据需求自己修改<build><plugins><plugin><groupId>cn.smallb

(二)springboot中使用mybatis-plus,CRUD,主键自增,逻辑删除

一、insert1、插入操作@RunWith(SpringRunner.class)@SpringBootTestpublic class CRUDTests {@Autowiredprivate UserMapper userMapper;@Testpublic void testInsert(){User user = new User();user.setName("Helen");user

(三)sringboot中使用mybatis-plus,条件构造器wrapper

一、wapper介绍Wrapper : 条件构造抽象类,最顶端父类AbstractWrapper : 用于查询条件封装,生成 sql 的 where 条件QueryWrapper : Entity 对象封装操作类,不是用lambda语法UpdateWrapper : Update 条件封装,用于Entity对象更新操作AbstractLambdaWrapper : Lambda 语法使用 Wrap

#java#spring boot
application.properties文件没有叶子图标,springboot项目启动的时候也报错

错误日志:Error starting ApplicationContext. To display the conditions report re-run your application with 'debug' enabled.2019-07-13 16:04:26.339 ERROR 21144 --- [main] o.s.b.d.LoggingFailureAnalysisRepor

SpringBoot - 获取POST请求参数详解(附样例:表单数据、json、数组、对象)

一、接收 Form 表单数据1,基本的接收方法(1)编写hello.html<!DOCTYPE html><html lang="en"><head><meta charset="UTF-8"><title>Title</title></head><body><form action="/hell

vue中...变量名前加三个点代表什么意思

这是es6的语法,看下面的你就懂了var a = {name: '张三',age: 25}var b = {job: 'web前端',...a}// 相当于var b = {job: 'web前端',name: '张三',age: 25原文:https://segmentfault.com/q/1010000020240597...

Unknown custom element: <el-image> - did you register the component correctl

报错:Unknown custom element: <el-image> - did you register the component correctlel-image 是elementui2.8.0才添加的控件,需要先升级elementuivue项目升级element-ui

    共 11 条
  • 1
  • 2
  • 请选择