- 博客(35)
- 问答 (4)
- 收藏
- 关注
原创 HTTP 500 - Internal Server Error 服务器内部错误
HTTP 500 - Internal Server Error 服务器内部错误
2022-11-17 16:17:32
635
原创 Not allowed to load local resource: file:///D:/starimg/11.png
问题已解决做一个PHP小项目时,能够显示图片却加载不出来,记录一下,看网上别人的好像是说:参考链接: 成功显示。
2022-09-29 17:21:31
1755
原创 php使用小皮面板 无法找到ip地址或显示网站不存在
使用小皮面板时,无法创建自己的网站,一直显示找不到ip地址,连接不上网络,解决方法如下
2022-09-20 19:55:50
4967
2
原创 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
370
原创 记录(以后可能会用到)
https://docs.oracle.com/javase/tutorial/uiswing/components/passwordfield.html
2022-01-05 11:09:38
65
原创 SpringBoot一个项目启动多个端口
当前端调用后台,后端这边进行调试会影响前端的展现,可以开多个端口idea打开Run--Edit Configurations设置如下Allow parallel run:允许并行运行program arguments:设置多开的那个端口号
2021-12-30 15:11:10
1573
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
2614
原创 vue install时显示找不到‘python‘
原因:node-sass版本不对去package.json中找到node-sass改一下版本号
2021-12-29 11:14:08
733
原创 分页 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
353
原创 Missing space before function parentheses
vue报错报错问题原因:函数前空格paren函数括号前缺少空格箭头标记的地方应该有空格
2021-12-22 09:31:09
308
1
原创 es默认返回十条数据解决方法
sourceBuilder.size(10000);指定size,不指定只返回十条es好像最大返回结果数量只能是1000条
2021-12-15 10:40:32
4213
原创 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
2116
1
转载 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
396
原创 @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
440
原创 SpringBoot返回一个页面(前后端不分离)
在controller页面上不能使用@RestController只能用!@Controller
2021-11-30 16:38:26
819
原创 Spring Boot返回Json数据及数据封装
在项目开发中,接口与接口之间,前后端之间数据的传输都使用 Json 格式,在 Spring Boot 中,接口 返回 Json 格式的数据很简单,在 Controller 中使用 @RestController 注解即可返回 Json 格式的数据.@ResponseBody 注解是将返回 的数据结构转换为 Json 格式。所以在默认情况下,使用了 @RestController 注解即可将返回的数据 结构转换成 Json 格式....
2021-11-30 16:37:11
497
原创 Springboot 反射 通过路径调用方法
首先要注入ApplicationContext @Autowired private ApplicationContext applicationContext; Class<?> cls = Class.forName(classPath); // 获取spring中的bean对象 Object bean = applicationContext.getBean(cls); //...
2021-11-26 16:04:06
1063
原创 mysql 一个值匹配多个字段
select * from 表concat(字段1,字段2,...) like CONCAT('%',#{值}, '%')
2021-11-23 15:48:42
2099
3
原创 Caused by: java.lang.IllegalStateException: Ambiguous mapping. Cannot map ‘Controller‘
@RequestMapping("\test")中的路径和controller中其它方法的路径重复了
2021-11-23 09:16:34
610
原创 syntax error: syntax error, error in :‘name like ‘%‘?‘%‘‘
错误:解决:使用 (CONCAT('%',#{字段}), '%')或者:'%${字段}%'
2021-11-12 10:00:43
1952
原创 解决端口占用问题
WIN+R 打开命令窗口,输入CMDnetstat -ano |findstr xxx查找端口号对应的PID(进程号)结束进程taskkill /t /f /im PID
2021-11-11 15:19:23
203
原创 java.lang.IllegalArgumentException: [multi_match] requires query value
原因是controller层传递的参数名和测试的不一样,导致接收不到参数
2021-11-09 10:20:27
3594
原创 org.springframework.web.bind.MissingServletRequestParameterException: Required String parameter ‘xxx
controller的@RequestParam true 改成false@RequestParam(value = "user", required = true)
2021-11-08 10:13:46
379
原创 Unknown column ‘XXX‘ in ‘where clause‘
原因是QueryWrapper.like里面的column字段和数据库字段不匹配修改之后正常查询
2021-11-03 10:38:33
400
原创 animate.css引用后不起效果
animate.css引用后不起效果本来想在文章中间部分设置一个动画效果,animate__pulse结果不起效果,最后发现是要先在样式中加animate__animated
2021-10-22 10:55:58
492
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
1106
原创 可选int参数“id”存在,但由于被声明为基元类型,因此无法转换为null值。考虑将其声明为对应的基元类型的对象包装器。
原因是忘了在id前面加上@PathVariable如果路径后面有参数就要加@PathVariable
2021-07-28 09:35:53
1938
原创 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
227
空空如也
毕设怎么选题啊 想的内容都和别人重复率太高
2023-11-30
关于#python#的问题,如何解决?
2022-12-02
vue上传文件时 如何接收file文件 form-data类型的
2021-12-30
属性或方法“url”未在实例上定义,但在呈现期间被引用。不知道什么意思
2021-12-30
vue导入excel时报错
2021-12-29
vue安装依赖出错,提示找不到python
2021-12-28
TA创建的收藏夹 TA关注的收藏夹
TA关注的人