自定义博客皮肤VIP专享

*博客头图:

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

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

博客底图:

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

栏目图:

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

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(9)
  • 收藏
  • 关注

原创 关于Postman发送post请求可以访问后端而浏览器无法访问的情况

原因:springboot项目需要解决跨域问题解决:把下面的代码复制到和启动类平级就好了import org.springframework.context.annotation.Bean;import org.springframework.context.annotation.Configuration;import org.springframework.web.cors.CorsConfiguration;import org.springframework.web.cors.UrlBa

2021-01-21 17:37:56 4991 1

原创 关于读取mysql数据部分数据为null的问题

1、mysql实际数据:2、mybatis读取mysql后读到的数据:3、部分实体类:4、读取语句:4、产生原因:存在如下mybatis配置导致mybatis从数据库读取到的user_name字段的数据会被映射成为驼峰模式即userName的形式返回;这样java代码里面的user_name就匹配不到userName的数据,所以出现空值5、解决方法:删除这段配置即可...

2020-12-30 14:42:54 936

原创 springboot+mybatis的动态数据库

转载https://www.cnblogs.com/xifengxiaoma/p/11040336.html

2020-11-06 21:19:33 106

原创 2020-11-06

记录一个错误:当用springboot去配置多个数据源时:数据源路径需要用:spring.datasource.one.jdbc-url(one是数据源名字)

2020-11-06 20:58:48 82

原创 centos打包项目时出现的问题及解决方法

使用 npm run build:prod报错npm ERR! code ELIFECYCLEnpm ERR! errno 1npm ERR! ruoyi@2.3.0 build:prod: `vue-cli-service build`npm ERR! Exit status 1npm ERR! npm ERR! Failed at the ruoyi@2.3.0 build:prod script.npm ERR! This is probably not a problem wit

2020-06-12 11:10:51 2636

原创 List的问题

List陷阱的解决方法List l = new ArrayList();//删除List的所有元素1,//迭代器删除Iterator it=l.iterator();while(it.hasNext()){it.next();it.remove();}2,//逆序删除for(int i = l.size()-1; i >= 0; i–){int a = 0;l.re...

2020-04-02 13:03:27 77

转载 java 堆实现

java 堆实现代码public static void buildheap(int[] a , int heaplength) {for(int i = a.length/2-1; i >= 0; i–){heapify(a, i, heaplength);}}//小顶堆public static void heapify(int a[], int i, int hea...

2020-04-01 15:28:14 191

原创 关于在调用fopen函数出现’段错误 (核心已转储)‘问题

#include<stdio.h>#include<string.h>#include<unistd.h>int main(int argc, char *argv[]){FILE *fp=NULL;if(fp = fopen(argv[1],“wb+”) == NULL){printf(“Fail to open file!\n”);// ...

2019-10-17 21:41:34 1629

原创 关于从php读取json数据时发生的错误 android studio开发

org.json.JSONException: Value <!DOCTYPE of type java.lang.String cannot be converted to JSONObjeandroid studio开发暂未解决

2019-09-26 19:58:47 162

空空如也

空空如也

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

TA关注的人

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