当前位置:网站首页>延长经济保险(jeecgboot)
延长经济保险(jeecgboot)
2022-08-11 04:31:00 【月屯】
目录标题
- 问题
- vue
- 数据库
- vue jeecgboot
- vue修改值后界面没刷新出来
- jeecgboot 后端
- [Java 异常解决之java.lang.IllegalArgumentException: Comparison method violates its general contract!](https://blog.csdn.net/nickyzhi/article/details/37761827)
- 后端打包错误
- [No valid Maven installation found. Either set the home directory in the configuration dialog 解决](https://blog.csdn.net/Julycaka/article/details/83185621)
- [项目打包出现:Failed to execute goal org.springframework.boot:spring-boot-maven-plugin:2.3.2.RELEASE:repack](https://blog.csdn.net/qq_37844454/article/details/115459733)
- [org.yaml.snakeyaml.scanner.ScannerException: while scanning for the next token found character ‘@‘ t](https://blog.csdn.net/sinat_40770656/article/details/109668978)
- [online 报表配置里面配置了字典code,在popup弹框出来后没生效](https://toscode.gitee.com/jeecg/jeecg-boot/issues/I4X33U)
- 知识
问题
vue
a-select不能绑定boolean值
<a-select placeholder="合同是否签订" v-model="model.issigned">
<a-select-option value='true'>是</a-select-option>
<a-select-option value='false'>否</a-select-option>
</a-select>
错误提示
方案
<a-radio-group v-model:value="model.issigned" name="radioGroup">
<a-radio :value='true'>是</a-radio>
<a-radio :value='false'>否</a-radio>
</a-radio-group>
vue中引入echarts组件时报错:Cannot read property ‘init’ of undefined
vue导入echarts报错Uncaught (in promise) Error: Initialize failed: invalid dom.
数据库
新建数据库出错
navicat连接远程数据库出错

原因:远程的服务器不允许访问,cmd ping数据库超时失败
解决方法:关闭防火墙
sqlserverl附加出错
sqlserver登录名远程看不见表
vue jeecgboot
jeecg-boot框架默认create_time Desc去掉
参考文章
本人没有找到相应的getQueryParams()方法,解决方法是
vue修改值后界面没刷新出来
jeecgboot 后端
Java 异常解决之java.lang.IllegalArgumentException: Comparison method violates its general contract!
后端打包错误
No valid Maven installation found. Either set the home directory in the configuration dialog 解决
项目打包出现:Failed to execute goal org.springframework.boot:spring-boot-maven-plugin:2.3.2.RELEASE:repack
org.yaml.snakeyaml.scanner.ScannerException: while scanning for the next token found character ‘@‘ t
online 报表配置里面配置了字典code,在popup弹框出来后没生效
知识
vue jeecgboot
a-input只读
<a-form-model-item :labelCol="labelCol" :wrapperCol="wrapperCol" prop="confirmval" label="确认金额">
<a-input v-model="model.confirmval" readOnly />
a-input输入后访问后端检查信息输入是否有误
<a-input placeholder="请输入上一级公司" v-model="model.parentid" @blur="hasFather(model.parentid)"/>
//hasFather是检查方法
对话组件
<a-popconfirm title="确定删除吗?" @confirm="() => handleDelete(record.id)">
<a>删除</a>
</a-popconfirm>
路由跳转
参考
参考
如果不想jeecgboot前端导航栏中显示该页面,需要以下操作

下载public中的文件
jeecgboot后端
@execl特定字段值输出
文件上传
前端
<a-upload
name="file"
:multiple="true"
:action="url.upload"
:headers="headers"
@change="info=>handleChange(info,record)"
>
<a>上传公司资料</a>
</a-upload>
…………
//上传请求头部
url: {
upload: window._CONFIG['domianURL'] + '/companyinformation/companyProfile/upload',
},
headers: {
authorization: 'authorization-text'
}
…………
//文件上传
handleChange(info,record) {
if (info.file.status !== 'uploading') {
console.log(info.file, info.fileList)
}
console.log("1111111",info)
if (info.file.status === 'done') {
// this.$message.success(`${info.file.name} file uploaded successfully`);
record.uploaddate=format(new Date());
let filename=info.file.name;
record.savefile=filename;
putAction(this.url.edit,record).then(res=>{
if(res.success){
this.$message.success(filename+'上传成功,数据更新成功')
}else{
this.$message.error("数据更新失败")
}
})
} else if (info.file.status === 'error') {
this.$message.error(`${
info.file.name}上传失败`)
// this.$message.error(`${info.file.name} file upload failed.`);
}
}
后端
配置文件
接口
@Value(value = "${jeecg.path.upload}")
private String filePath;
………………
/** * 文件上传 * * @param request * @param response * @return */
@PostMapping(value = "/upload")
public Result<?> upload(HttpServletRequest request, HttpServletResponse response) {
try {
// String bizPath = request.getParameter("biz");
MultipartHttpServletRequest multipartRequest = (MultipartHttpServletRequest) request;
MultipartFile file = multipartRequest.getFile("file");// 获取上传文件对象
System.out.println("filename:"+file.getOriginalFilename()+",filepath:"+this.filePath);
File filepath = new File(this.filePath,file.getOriginalFilename());
if (!filepath.getParentFile().exists()) {
filepath.getParentFile().mkdirs();
}
file.transferTo(filepath);
return Result.OK("文件上传成功");
} catch (Exception e) {
return Result.error("文件上传失败");
}
}

文件下载
后端
jeecgboot后端有写好的接口,如下(其实该文件也有文件上传的接口):
访问例子:
http://192.168.1.106:8095/jeecg-boot/sys/common/static/q.txt
前端访问
<a @click="download(record)" :href="url.downloadurl">下载公司资料</a>
………………
url: {
downloadurl:''
},
………………
//文件下载
download(record){
if(record.savefile==null){
this.url.downloadurl=undefined
this.$message.error("资料不存在");
}else{
this.url.downloadurl=window._CONFIG['domianURL']+'/sys/common/static/'+record.savefile
}
}
数据授权
EOS
heollworld
数据库
1.SQL server分页
select top 5 * //此处用在mybatis中 参数5要用${}不用#{}
from (select row_number()
over(order by ID asc) as rownumber,*
from dbo.newvehicleinsurance) temp_row
where rownumber>10
2.sqlserver设置id自增
3.前端访问后端地址修改


边栏推荐
- 快速使用UE4制作”大场景游戏“
- 0基础转行软件测试,自学3个月,浅拿12k*13薪offer
- 使用jackson解析json数据详讲
- redis按照正则批量删除key
- Interchangeability and Measurement Techniques - Tolerance Principles and Selection Methods
- Callable实现多线程
- Day20 FPGA 】 【 - block the I2C read and write EEPROM
- Object Creation and Display Transformation
- I wrote some code in my resume, but I still can't pass the interview
- JwsManager service interface implementation class - the jni implementation
猜你喜欢

快速使用UE4制作”大场景游戏“

Day20 FPGA 】 【 - block the I2C read and write EEPROM

"98 BST and Its Verification" of the 13th day of leetcode brushing series of binary tree series

"104 Maximum Depth of Binary Trees" in LeetCode's Day 12 Binary Tree Series

The custom of the C language types -- -- -- -- -- - structure

【深度学习】基于卷积神经网络的天气识别训练

"110 Balanced Binary Tree Judgment" in leetCode's 14-day binary tree series

【FPGA】abbreviation

Object Creation and Display Transformation
![[C Language] Getting Started](/img/5e/484e3d426a6f1cc0d792a9ba330695.png)
[C Language] Getting Started
随机推荐
如何将360全景图导出高清短视频分享到视频平台上?
洛谷P1196 银河英雄传说
堆排序 和冒泡排序
Bubble sort and heap sort
洛谷P2245 星际导航
rub the heat - do not open
LeetCode刷题第12天二叉树系列之《104 二叉树的最大深度》
"104 Maximum Depth of Binary Trees" in LeetCode's Day 12 Binary Tree Series
【yolov7系列三】实战从0构建训练自己的数据集
Map中的getOrDefualt方法
Jetson Orin平台4-16路 GMSL2/GSML1相机采集套件推荐
Harvesting of radio frequency energy
Solve the problem of multi-thread calling sql stored procedure
[FPGA] Design Ideas - I2C Protocol
Callable实现多线程
【小记】BatchSize的数值是设置的越大越好吗
1815. Get the maximum number of groups of fresh donuts state compression
Licking - frog jumping steps
Overview of the JVM garbage collection and mechanism
Switch---Spanning Tree---Three-layer Architecture Summary
