自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(35)
  • 问答 (4)
  • 收藏
  • 关注

原创 HTTP 500 - Internal Server Error 服务器内部错误

HTTP 500 - Internal Server Error 服务器内部错误

2022-11-17 16:17:32 555

原创 Not allowed to load local resource: file:///D:/starimg/11.png

问题已解决做一个PHP小项目时,能够显示图片却加载不出来,记录一下,看网上别人的好像是说:参考链接: 成功显示。

2022-09-29 17:21:31 1307

原创 php使用小皮面板 无法找到ip地址或显示网站不存在

使用小皮面板时,无法创建自己的网站,一直显示找不到ip地址,连接不上网络,解决方法如下

2022-09-20 19:55:50 4062 1

原创 SpringBoot发送邮件

添加依赖<dependency> <groupId>org.apache.commons</groupId> <artifactId>commons-email</artifactId> <version>1.5</version></dependency>代码@RunWith(SpringRunner.class)@SpringBootTestpublic class t...

2022-01-07 10:48:44 318

原创 记录(以后可能会用到)

https://docs.oracle.com/javase/tutorial/uiswing/components/passwordfield.html

2022-01-05 11:09:38 35

原创 SpringBoot一个项目启动多个端口

当前端调用后台,后端这边进行调试会影响前端的展现,可以开多个端口idea打开Run--Edit Configurations设置如下Allow parallel run:允许并行运行program arguments:设置多开的那个端口号

2021-12-30 15:11:10 1301 2

原创 属性或方法“url”未在实例上定义,但在呈现期间被引用。

[Vue warn]: Property or method "url" is not defined on the instance but referenced during render. Make sure that this property is reactive, either in the data option, or for class-based components, by initializing the property. See: https://vuejs.org/v2...

2021-12-30 09:32:18 2382

原创 vue install时显示找不到‘python‘

原因:node-sass版本不对去package.json中找到node-sass改一下版本号

2021-12-29 11:14:08 638

原创 分页 es全局搜索并且分页

public PageUtils globalSearch(Map<String, Object> params) throws IOException { MapGet mapGet = MapGet.init(params); String[] indexName = {"test"}; try{ //创建搜索请求 SearchRequest searchRequest = new Searc..

2021-12-29 09:38:09 310

原创 Missing space before function parentheses

vue报错报错问题原因:函数前空格paren函数括号前缺少空格箭头标记的地方应该有空格

2021-12-22 09:31:09 250 1

转载 SpringBoot导入导出excel

SpringBoot之导入导出Excel - Ruthless - 博客园

2021-12-21 13:46:42 61

原创 es默认返回十条数据解决方法

sourceBuilder.size(10000);指定size,不指定只返回十条es好像最大返回结果数量只能是1000条

2021-12-15 10:40:32 4086

原创 向es导入数据如何带“_class“路径

不用客户端的方法添加,客户端方法添加不带路径

2021-12-13 09:06:07 1221

原创 Index [CruisingCompany] not found.; nested exception is [CruisingCompany]

Index [CruisingCompany] not found.; nested exception is [CruisingCompany] ElasticsearchStatusException[Elasticsearch exception [type=invalid_index_name_exception, reason=Invalid index name [CruisingCompany], must be lowercase]]org.springframework.data.e.

2021-12-13 08:58:55 1999 1

原创 利用renren-fast搭建学生管理系统1.数据库设计

2021-12-08 10:37:51 152

转载 es迁移数据

因为性能测试需要,需要快速迁移已有的测试数据,其中包括mysql和es的。本地试验/windows环境1. 安装并配置java8环境安装安装地址 配置环境 自行百度2. 安装并启动ES下载并配置 链接:https://pan.baidu.com/s/1izwOpmlcSqJwTC9qd0w_vg 提取码:7hdn 解压 配置:config/elasticsearch.yml,修改network.host: 0.0.0.0 运行:双击bin/elasticsearch.bat

2021-12-02 17:18:29 332

原创 @ExceptionHandler使用理解

@ExceptionHandler(HttpRequestMethodNotSupportedException.class) public R httpRequestMethodNotSupportedException(Exception e) { logger.error(e.getMessage(), e); return R.error(405, "请求方式不支持!"); }此时的参数是HttpRequestMethodNotSupportedException.class.

2021-12-01 09:30:51 382

原创 SpringBoot返回一个页面(前后端不分离)

在controller页面上不能使用@RestController只能用!@Controller

2021-11-30 16:38:26 729

原创 Spring Boot返回Json数据及数据封装

在项目开发中,接口与接口之间,前后端之间数据的传输都使用 Json 格式,在 Spring Boot 中,接口 返回 Json 格式的数据很简单,在 Controller 中使用 @RestController 注解即可返回 Json 格式的数据.@ResponseBody 注解是将返回 的数据结构转换为 Json 格式。所以在默认情况下,使用了 @RestController 注解即可将返回的数据 结构转换成 Json 格式....

2021-11-30 16:37:11 453

原创 es全局搜索

2021-11-29 09:18:05 2107

原创 Springboot 反射 通过路径调用方法

首先要注入ApplicationContext @Autowired private ApplicationContext applicationContext; Class<?> cls = Class.forName(classPath); // 获取spring中的bean对象 Object bean = applicationContext.getBean(cls); //...

2021-11-26 16:04:06 945

原创 springboot 规定某些字段不展示

@JsonIgnoreProperties(value = {"字段1","字段2",...})

2021-11-24 09:18:57 1227

原创 mysql 一个值匹配多个字段

select * from 表​​​​​​​concat(字段1,字段2,...) like CONCAT('%',#{值}, '%')

2021-11-23 15:48:42 1894 3

原创 Caused by: java.lang.IllegalStateException: Ambiguous mapping. Cannot map ‘Controller‘

@RequestMapping("\test")中的路径和controller中其它方法的路径重复了

2021-11-23 09:16:34 534

原创 gitbash不能粘贴

点击鼠标滚轮或者shift+ins

2021-11-19 09:50:08 284

原创 syntax error: syntax error, error in :‘name like ‘%‘?‘%‘‘

错误:解决:使用 (CONCAT('%',#{字段}), '%')或者:'%${字段}%'

2021-11-12 10:00:43 1843

原创 解决端口占用问题

WIN+R 打开命令窗口,输入CMDnetstat -ano |findstr xxx查找端口号对应的PID(进程号)结束进程taskkill /t /f /im PID

2021-11-11 15:19:23 173

原创 @Qualifier注解

@Qualifier注解的用处:当一个接口有多个实现的时候,为了指名具体调用哪个类的实现。

2021-11-10 09:55:15 61

原创 java.lang.IllegalArgumentException: [multi_match] requires query value

原因是controller层传递的参数名和测试的不一样,导致接收不到参数

2021-11-09 10:20:27 3353

原创 org.springframework.web.bind.MissingServletRequestParameterException: Required String parameter ‘xxx

controller的@RequestParam true 改成false@RequestParam(value = "user", required = true)

2021-11-08 10:13:46 323

原创 Unknown column ‘XXX‘ in ‘where clause‘

原因是QueryWrapper.like里面的column字段和数据库字段不匹配修改之后正常查询

2021-11-03 10:38:33 287

原创 animate.css引用后不起效果

animate.css引用后不起效果本来想在文章中间部分设置一个动画效果,animate__pulse结果不起效果,最后发现是要先在样式中加animate__animated

2021-10-22 10:55:58 426 1

原创 BaseMapper分页

@Test@DisplayName("分页查询")public void testSelectPage(){ QueryWrapper<Product> wrapper = new QueryWrapper<>(); IPage<Product> productIPage=new Page<>(0, 3); productIPage=productMapper.selectPage(productIPage,wrapper); .

2021-09-13 10:25:15 1060

原创 可选int参数“id”存在,但由于被声明为基元类型,因此无法转换为null值。考虑将其声明为对应的基元类型的对象包装器。

原因是忘了在id前面加上@PathVariable如果路径后面有参数就要加@PathVariable

2021-07-28 09:35:53 1791

原创 2021-04-28python名片管理系统

def display_menu(): print("-" * 30) print("名片管理系统 v8.8") print("1.添加名片") print("2.删除名片") print("3.修改名片") print("4.查询名片") print("5.获取所有名片信息") print("6.退出系统") print("-" * 30)name_list=[]##新增名片def add_info(): new_n.

2021-04-28 23:53:41 182

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除