ICode9

精准搜索请尝试: 精确搜索
  • Cannot autogenerate id of type java.lang.Integer for entity of type com.mongodb.pojo.User!2021-09-08 09:58:01

    第一次尝试使用MongoDB对实体进行插入操作,结果出现 Cannot autogenerate id of type java.lang.Integer for entity of type com.mongodb.pojo.User! 大概意思是不能将ID转换为Integer MongoDB默认的集合主键是“_id”,类型是ObjectId。 ObjectId是一个12字节的BSON类型字符

  • SpringDataJpa:JpaRepository增删改查2021-09-06 20:01:51

    Jpa查询 1. JpaRepository简单查询 基本查询也分为两种,一种是spring data默认已经实现,一种是根据查询的方法来自动解析成SQL。 预先生成方法 spring data jpa 默认预先生成了一些基本的CURD的方法,例如:增、删、改等等 继承JpaRepository

  • Entity framework2021-09-06 01:32:50

    Entity Framework Core Entity FrameWork Core 简称EF ,EF使用教程 1:创建EF //使用VS2019依次点击:“工具”>“NuGet 包管理器”>“包管理器控制台” 运行此命令安装EF: Install-Package Microsoft.EntityFrameworkCore.Sqlite           3        

  • Dapper是什么?2021-09-02 22:03:01

    Dapper是开源的、轻量级,高性能的ORM(对象关系映射)。 Dapper的特点: 一、轻量:Dapper的GitHub地址:https://github.com/StackExchange/Dapper/tree/main/Dapper,它的核心代码是SqlMapper.cs。代码量不多,编辑后所占空间也比较小。 二、高性能:它通过Emit反射IDataReader的序列队列,快速的映

  • Java遍历对象里的属性名称和对应值2021-09-02 17:34:59

    在实际开发中,使用mybatis时,如果指定parameterType为map时,如果数据库中字段STRING1的值为null,则map中不会返回当前这个字段,给前台的json数据中没有STRING1这个对象,这时创建一个vo,使用vo去接收mybatis查询的结果时,则没有这个问题,返回给前台的json数据中,存有"STRING1":null 对象 遍历

  • VBA制作jeecgboot代码生成器2021-08-26 06:00:06

    在jeecgboot中制作查询报表非常方便,可以在online报表配置中快速完成。 在数据库中可以看到对应的两张表存放这些配置,一张是onl_cgreport_head,存放查询表的头部信息。 另一张是明细表onl_cgreport_item,存放查询报表的字段信息。 在开发数据大屏时需要很多查询数据,可以先在online

  • WebApi中使用EF一些报错及解决2021-08-12 19:31:37

      System.InvalidOperationException:“No connection string named 'con' could be found in the application config file.” 翻译: System.InvalidOperationException:“在应用程序配置文件中找不到名为‘con’的连接字符串。” 在WebApi项目中加上数据库连接字符串   Syst

  • HTTP Method: GET,POST,HEAD,OPTIONS, PUT, DELETE, TRACE ,CONNECT2021-08-12 14:57:41

    HTTP1.0就定义了三种请求方式GET,POST,HEAD。HTTP1.1则新增了OPTIONS, PUT, DELETE, TRACE 和 CONNECT 方法。  https://www.w3.org/Protocols/rfc2616/rfc2616-sec9.html HEAD The HEAD method is identical to GET except that the server MUST NOT return a message-body in

  • 项目整合 ES (干货)2021-08-08 17:35:13

    详细请前往码云查看源码:https://gitee.com/chxlay/be-helpful     behelpful-search 模块  (依然存在很多 bug,算不上开源项目,仅仅适用于学习交流) 依赖:(以下正式使用的是 ES 7.6.2 版本) <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-b

  • FluentAPI详细用法2021-08-08 07:31:50

     什么是Fluent API? 官方答案:EF 中内嵌的约定将 POCO 类映射到表。但是,有时您无法或不想遵守这些约定,需要将实体映射到约定指示外的其他对象,所以Fluent API和注解都是一种方法,这两种方法是用来配置EF,在映射属性时绕开约定。详情参考(https://msdn.microsoft.com/zh-cn/data/j

  • Nest通过TypeORM操作MySQL (二)2021-08-07 20:35:21

    前一篇讲述了TypeORM的安装以及通过对象化的方式访问数据库。 然而很多场景下我们会需要更复杂的操作,如多表联合,然后映射为Entity。 本文在前一篇的基础上,用代码示例说明如何在TypeORM中实现SQL查询。 修改ormconfig.json, 增加新的配置项: Menu。与前一篇配置不同的是,此处有两个co

  • kafka在线修改topic配置2021-08-05 15:34:06

    修改 max.message.bytes:  bin/kafka-configs.sh --zookeeper localhost:2181  --alter --entity-type topics --entity-name asset-scan-machine-result  --add-config 'max.message.bytes=102400000' 查看topic配置: bin/kafka-configs.sh --zookeeper localhost:2181 -

  • SSM项目报错:NoSuchMethodException2021-08-03 12:32:15

    今天写SSM项目的时候报了这个错误,记录在此,希望能帮到你。 报错原因是我将entity类添加了构造方法而造成的,但是为什么会这样呢? 我去找了一下原因,发现是因为SSM项目在编译时会将所有entity类都生成一个无参构造方法,如果有向我这样自己有写构造参数的,只需要自己再写一个无参的构

  • IIS上传文件报 413 Request Entity Too Large2021-08-03 02:00:34

    IIS上传文件报 413 Request Entity Too Large_故事里的小五-博客专区-CSDN博客   IIS上传文件报413错误解决方案问题说明解决方案问题说明错误提示:(413) Request Entity Too Large意思是上传文件过大,被服务器拒绝 解决方案步骤1:编辑C:\Windows\System32\inetsrv\config下的applic

  • 【c#】JavaScriptSerializer 不序列化null值2021-07-28 21:32:16

    首先引用dll :System.Web.Extensions。 再自定义转换器代码如下: public class JavaScriptSerilizeConvert : JavaScriptConverter { //支持的需要转换的类型,是集合可以是多个 public override IEnumerable<Type> SupportedTypes => new List<Type>(new Type

  • 上传文件Request Entity Too Large解决办法2021-07-23 15:35:36

    根据经验判断应该是上传文件大小被限制了,检查了应用配置是10M,把它设置成100M,重启服务也不能解决问题。 原来我们的tomcat是通过nginx发现服务代理的,问题就出现nginx服务器上,原来nginx默认长传文件的大小是1M,可在nginx的配置中修改。 解决方法: 1、打开nginx服务的配置文件nginx.co

  • Form Component Control for related entity display on main form - powerapps2021-07-23 12:03:22

    Form Component Control in Dynamics 365 / Power Apps     Form Component Control can be used to update the parent record  Below is our custom entity/table named Sample Entity having contact’s lookup. Let us add one more contact field, specify the Form

  • EF Core 搭建单侧环境2021-07-23 09:32:17

    有时候想搭个环境做测试, 又记不住那些 command, 官方教程又啰嗦. git clone 模板又不太好管理, 索性记入在这里吧.   Install NuGet dotnet add package Microsoft.AspNetCore.Diagnostics.EntityFrameworkCore dotnet add package Microsoft.EntityFrameworkCore.Design dotn

  • ajax上传大附件报错:413 Request Entity Too Large2021-07-20 14:32:35

    Web.config添加如下代码: <system.web> <httpRuntime maxRequestLength="1048567" executionTimeout="3600" /> ... </system.web> <system.webServer> <security> <requestFiltering>

  • orm数据库2021-07-19 08:33:03

    build.gradle里添加 compileOptions{annotationEnabled true}daodao/dao public interface NodeDao { boolean insert(NodeEntity entity); boolean update(NodeEntity entity); boolean delete(int id); List<NodeEntity> query(); NodeEntity queryNodeBy

  • 实体类重名问题解决2021-07-17 21:30:48

    一、问题背景 在进行微服务开发时,有很大几率遇到系统间的实体类相同的情况,启动时会报如下错。 Caused by: org.apache.ibatis.type.TypeException: The alias 'OrderApply' is already mapped to the value 'org.springblade.transport.entity.OrderApply'. 二、错误原因 关键在

  • sql server 2008所有类型对应ef自动生成的约束和实体属性2021-07-15 16:32:51

    数据库: Id uniqueidentifier Uncheckeda1 bigint Checkeda2 binary(50) Checkeda3 bit Checkeda4 char(10) Checkeda5 date Checkeda6 datetime Checkeda7 datetime2(7) Checkeda8 datetimeoffset(7) Checkeda9 decimal(18, 0) Checkeda10 float Checkeda11 geography Checkeda1

  • How to Auto Number Entities in Dynamics CRM2021-07-13 15:02:32

          This will work for any entity – custom or out-of-the-box. All that is involved is 1) creating an auto number entity and record, 2) creating a relationship with the entity you would like to have an auto number in, and 3) making a real-time work

  • Lookup and Search Views in Model-Driven Apps2021-07-08 22:01:17

          Each entity in Dynamics 365 has a series of views associated with it that allow you to see the records in the CRM application. Whenever you create a new data entity, the application will automatically create a set of public and system views. A

  • 小妹妹要面试了却没有项目实践的经验,约到奶茶店指导一番,用SpringBoot、Redis、LUA教她做一个!2021-07-08 14:34:24

    前言 那些吧redis基本的东西学的差不多了,却没有做过什么具体的项目实践的,可以看看这篇文章做一个项目来巩固知识。 相关需求&说明 一般来说秒杀系统的功能不会很多,有: 制定秒杀计划。在某天几点开始,售卖什么商品,准备卖多少个,持续多久。 展示秒杀计划列表。一般都是显示当

专注分享技术,共同学习,共同进步。侵权联系[81616952@qq.com]

Copyright (C)ICode9.com, All Rights Reserved.

ICode9版权所有