orm多条操作 删除和修改 修改 在一对一和一对多关系时,和单表操作是一样的 一对一 一个作者对应一个信息 ad_obj = models.AuthorDetail.objects.get(id=1) models.Author.objects.filter(id=1).update(name='x ...
分类:
其他好文 时间:
2020-07-21 22:31:31
阅读次数:
72
{"msg":"Could not marshal [ResultVo [code=100, result=null, message=ok, exception=null, data=null]]: null; nested exception is javax.xml.bind.MarshalException\n - with linked exception:\n[com.sun.istack.SAXException2: unable to marshal type \"com.domain.ResultVo\" as an element because it is missing an @XmlRootElement annotation]","errorcode":2}
分类:
其他好文 时间:
2020-07-20 11:05:43
阅读次数:
87
需要序列化的类需实现接口: public class ResponseModel implements Serializable { 序列化和反序列化代码例子: import com.fasterxml.jackson.annotation.JsonInclude; import com.faste ...
分类:
Web程序 时间:
2020-07-19 16:07:17
阅读次数:
101
首先要安装flask包: pip install flask 开发一个简单的API接口 # 1. 导入包 from flask import Flask, request # 2. 实例化一个 app = Flask(__name__) # 3. 编写一个接口处理方法 @app.route("/ad ...
分类:
Web程序 时间:
2020-07-19 15:50:08
阅读次数:
65
官网:https://docs.spring.io/spring/docs/5.2.7.RELEASE/spring-framework-reference/core.html#beans-annotation-config 1、导入约束 2、配置注解支持 <?xml version="1.0" e ...
分类:
编程语言 时间:
2020-07-19 00:44:39
阅读次数:
89
前后端项目分离,跨域请求时,后端的两种配置方式: 1.配置类: package com.helq3.config; import org.springframework.context.annotation.Bean; import org.springframework.context.annot ...
分类:
编程语言 时间:
2020-07-18 21:52:43
阅读次数:
86
反射操作注解获得注解信息 练习:ORM 代码练习 import java.lang.annotation.*; import java.lang.reflect.Field; //练习反射操作注解 public class Test12 { public static void main(Strin ...
分类:
其他好文 时间:
2020-07-18 00:40:31
阅读次数:
78
好记性不如烂笔头 1、先输出Gerber File 2、进入Gerber Setup 进行设置(注意单位,精度选择2:4即可,不用选择2:5高精度) 先点Used On 将有用的层自动勾选上,然后再仔细核对,将不需要的层取消gerber输出 钻孔光绘文件 在高级选项中,基本上保持默认,注意0缺省和坐 ...
分类:
其他好文 时间:
2020-07-18 00:28:43
阅读次数:
76
How to Create Multiple lists from CSV File? We can use the combination of CSV and PowerShell to create multiple lists in bulk in SharePoint Online. He ...
分类:
系统相关 时间:
2020-07-17 14:13:50
阅读次数:
83
转载网址:https://blog.yupaits.com/blog/record/linux-confluence.html#%E5%AE%89%E8%A3%85%E6%AD%A5%E9%AA%A4 Confluence简介 Confluence是一个专业的企业知识管理与协同软件,也可以用于构建企 ...
分类:
系统相关 时间:
2020-07-16 18:31:50
阅读次数:
91