ICode9

精准搜索请尝试: 精确搜索
  • JSR303数据校验2022-07-21 18:01:24

    使用步骤: 在需要校验的实体类字段上添加相应的注解 @Data @TableName("pms_brand") public class BrandEntity implements Serializable { private static final long serialVersionUID = 1L; /** * 品牌名 */ @NotBlank(message = "品牌名称不能为空") private Strin

  • someip322022-07-21 16:34:18

    Transporting Application Error Codes and Exceptions传输应用程序错误代码和异常   For the error handling two different mechanisms are supported. 对于错误处理,支持两种不同的机制. All messages have a return code field to carry the return code. However, only respo

  • someip332022-07-21 16:34:04

    Return Code返回代码   The Error Handling is based on an 8 Bit Std_returnType of AUTOSAR. The two most significant bits are reserved and shall be set to 0. The receiver of a return code shall ignore the values of the two most significant bits. 错误处理基于AUT

  • someip52022-07-21 16:05:23

    SOME/IP报文格式-Message Type      Message Type [8 Bit]   The Message Type field is used to differentiate different types of messages and shall contain the following values: Message Type用来区别不同类型的message,且应当包含如下的值:   NumberValueDescription 0x0

  • Java tcp通信2022-07-21 13:33:54

    1. TCP通信原理 TCP(Transmission Control Protocol)协议是面向链接的通信协议,即 数据传输之前,先在发送端和接收端建立逻辑链接,然后再传输数据,它提供 了两台计算机之间可靠无差错的数据传输。 TCP通信中必须明确客户端和服务器端,由客户端向服务端发送连接请求 每次连接的创建都

  • 全局异常2022-07-20 23:35:31

    package com.itheima.common;import org.springframework.web.bind.annotation.ExceptionHandler;import org.springframework.web.bind.annotation.RestControllerAdvice;import java.sql.SQLIntegrityConstraintViolationException;//全局异常处理返回数据@RestControllerAdvice

  • ROS创建自定义消息(1)普通消息2022-07-19 12:02:55

    message_generation功能包是用于生成C++或Python能使用的代码。 message_runtime则是提供运行时的支持。 消息类型与C++或者Python的数据类型对应关系如下表: 自定义消息 在功能包中新建一个文件夹,名字为msg,这很重要,若非特别想要,尽量不要修改这个文件夹的名字。 在msg文件夹

  • rabbitMQ--死信队列2022-07-19 11:06:01

      基于消费者 reject requeue设置为false 消息进入死信队列 # 应用名称 spring.application.name=rabbitmq # 应用服务 WEB 访问端口 server.port=8080 spring.rabbitmq.host=192.168.1.137 spring.rabbitmq.port=5672 spring.rabbitmq.username=guest spring.rabbitmq.pass

  • SpringBoot实现消息可靠传输2022-07-18 21:00:06

      /*普通发送消息*/ @Test void publishWithConfirm() throws IOException { rabbitTemplate.setConfirmCallback(new RabbitTemplate.ConfirmCallback() { @Override public void confirm(CorrelationData correlationData, boole

  • 03-SpringAMQP入门2022-07-18 20:00:30

    三、SpringAMQP SpringAMQP是基于RabbitMQ封装的一套模板,并且还利用SpringBoot对其实现了自动装配,使用起来非常方便 SpringAMQP的官方地址 https://spring.io/projects/spring-amqp AMQP Spring AMQP SpringAMQP提供了三个功能 自动声明队列、交换机及其绑定关系 基于注

  • Number - Math - String - Array - Date 方法2022-07-18 15:33:54

    A :Number   类的属性 :      Number.MAX_SAFE_INTEGER:JavaScript 中最大的安全整数 (2^53 -1)     Number.MIN_SAFE_INTEGER:JavaScript 中最小的安全整数 -(2^53 - 1)     Number.MAX_VALUE     Number.MIN_VALUE console.log(Number.MAX_VALUE) con

  • antdesign table中使用upload传行信息2022-07-18 14:06:28

    <a-table :columns="columns1" :data-source="data" class="components-table-demo-nested" > <span slot="action" slot-scope="record"> <a-upload

  • webapi + vue3 + axios使用2022-07-17 12:34:05

    一、安装 npm install axios --savenpm install qs --save二、新建文件utils/request.js utils/http.js request.js import axios from 'axios'import { ElMessage, ElLoading} from 'element-plus' const service = axios.create({ baseURL: import.meta.env.VITE

  • BootstrapValidator校验使用方法和校验规则总结2022-07-15 11:03:17

    一.首先引入BootstrapValidator插件 BootstrapValidator插件需要jQuery和Bootstrap 3 引入js和css文件 1 <link rel="stylesheet" href="/path/to/bootstrap/css/bootstrap.css"/> 2 <link rel="stylesheet" href="/path/to/dist/css/bootstrapVa

  • springboot输出json日志2022-07-14 16:03:59

    <dependency> <groupId>net.logstash.logback</groupId> <artifactId>logstash-logback-encoder</artifactId> <version>6.6</version> </dependency>   <appender name=&

  • 数据修改明细2022-07-13 15:02:09

    FUNCTION.  CALL FUNCTION 'CHANGEDOCUMENT_OPEN'    EXPORTING      OBJECTCLASS             = 'ZSTRU'      OBJECTID                = OBJECTID      PLANNED_CHANGE_NUMBER   = PLANNED_CHANGE_NUMBER   

  • 委托和事件2022-07-13 12:33:57

    1、委托 namespace ConsoleApp1 { class Program { public delegate void Del(string message); static void Main(string[] args) { Del hanld = new Del(DelegateMethod); MethodWithCallback(1, 2, hanld);

  • 【转载】.Net Core(.NET6)中接入Log4net和NLog进行日志记录2022-07-13 11:03:29

    一、接入Log4net 1.按日期和大小混合分割日志 nuget包安装 log4net Microsoft.Extensions.Logging.Log4Net.AspNetCore 配置文件      配置文件内容为 <?xml version="1.0" encoding="utf-8"?> <log4net> <!-- Define some output appenders --> <app

  • 关于Thymeleaf无法取值问题2022-07-12 18:33:37

    SpringBoot2.7以前的版本在获取model中数据的时候不需要注释,2.7以后的版本需要加注释,它无法直接取存在model中的数据,不加注释的时候会爆红但是可以正常使用,这个注释的含义就是指定数据类型(数据就是注释中的id),到这里我好像抓住了什么,所以我查看了一下2.7和2.6两个版本,在2.6版本中,获

  • c# HttpClient 给webapi post传递并传参2022-07-12 15:31:46

      public  IHttpActionResult SinkingCommunityData([FromBody]CommunityModel Entitys){ //自己的业务逻辑代码 //并调用其他接口 string url = "http://localhost:54150/api/_data"; //创建HttpClient using (var http = new H

  • vuecli3.0搭建vue项目全过程2022-07-11 20:02:56

    最近新写一个项目,记录下新建项目过程及坑处理。供新人查看~ 1 搭建脚手架 cnpm install @vue/cli -g vue create test 2 加入eslint 在package.json中加入rules,具体的rules配置从这里找(https://www.cnblogs.com/webhmy/p/14776124.html)适合自己项目的配置项 在vue.config.js

  • 【微服务专题之】.Net6下集成消息队列-RabbitMQ交换机模式代码演示(全)2022-07-11 09:34:33

    微信公众号:趣编程ACE关注可了解更多的.NET日常实战开发技巧,如需源码 请公众号后台留言 源码;[如果觉得本公众号对您有帮助,欢迎关注] .Net中RabbitMQ中交换机模式的使用 前文回顾 关注上文公众号即可       TopicExchange 交换机模式 如果我们需要将一条信息发送到多个队列上

  • springboot~@valid返回第一个错误消息2022-07-11 09:32:20

    @valid注解将字段上的验证信息进行处理,并统一返回到前端,而有时我们不希望将所有错误一起返回,如下 通过BindingResult接口实例,来返回第一个校验失败的消息 public CommonResult update-password(@RequestBody UserPasswordDTO user) { if (bindingResult.hasErrors()) { r

  • SpringBoot接口 - 如何优雅的对接口返回内容统一封装?2022-07-11 07:31:06

    在以SpringBoot开发Restful接口时,统一返回方便前端进行开发和封装,以及出现时给出响应编码和信息。@pdai SpringBoot接口 - 如何优雅的对接口返回内容统一封装? RESTful API接口? 为什么要统一封装接口 实现案例 状态码封装 返回内容封装 接口返回时调用 示例源码 更多内容

  • Signar即时通讯的简单应用2022-07-10 23:35:44

    实时 Web 功能使服务器端代码能够将内容推送到客户端。  实现简单聊天功能 1、创建Razor模板应用    2、创建Signar客户端 3、创建signar中心:用作客户端和服务端通信的高级管道 1 using Microsoft.AspNetCore.SignalR; 2 3 namespace SignalRChat.Hubs 4 { 5 public

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

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

ICode9版权所有