ICode9

精准搜索请尝试: 精确搜索
  • Java运行时生成类元数据,初始化注解信息的方式2022-08-03 18:35:00

    问题前因 在一次技术升级中, 把分布式配置中心组件由百度的Disconf 改成 Nacos , 在对项目进行改造时, 首先将所有Disconf客户端依赖全部移除后, 依赖的封装的jar包中, 所有依赖DIsconf 注解的配置类, 在项目启动时, 本该理所当然的报找不到类信息 , 如下: 但是, 项目却顺利启动

  • 【Java】java: 无法访问org.testng.annotations.Test2022-07-07 13:37:22

    一、报错 java: 无法访问org.testng.annotations.Test 错误的类文件: /D:/Java/config/repository/org/testng/testng/7.6.0/testng-7.6.0.jar!/org/testng/annotations/Test.class 类文件具有错误的版本 55.0, 应为 52.0 请删除该文件或确保该文件位于正确的类路径子

  • android开发如何判断一个类是java类还是kotlin类2022-05-15 19:00:38

    随着kotlin越来越流行,项目引入kotlin混编可能性越来越大,有时可能需要业务判断是java编写的还是是kotlin编写,今天折腾了一下,终于搞定编码过程如何判断一个类是java类还是kotlin类了 static boolean isKtClass(Object object) { Annotation[] annotations = object.getClass

  • prometheus operator 监控mysql-exporter2022-03-29 12:04:09

    创建 mysql-exporter 应用    apiVersion: apps/v1 kind: Deployment metadata: labels: app: mysql-exporter k8s.kuboard.cn/name: mysql-exporter managedFields: - apiVersion: apps/v1 name: mysql-exporter namespace: monitoring spec: progressDe

  • mmdetection在wider face数据集上训练人脸检测网络2022-01-05 21:06:50

    下载WIDER_FACE数据集 如有过期,我会不定时更新下载数据集标签文件,https://github.com/sovrasov/wider-face-pascal-voc-annotations将WIDER_train_annotations 和 WIDER_val_annotations文件名更改为Annotations,并分别放置在WIDER_train 和 WIDER_val两个文件下,并将改名前WID

  • alertmanager 告警时间不同步问题2021-12-27 19:04:50

    如图:     告警时间与实际时间不吻合,通常情况下晚8小时左右,只需更改alertmanager template下的模板配置 之前的配置 =========start==========<br> 告警程序: prometheus_alert <br> 告警级别: {{ .Labels.severity }} 级 <br> 告警类型: {{ .Labels.alertname }} <br> 故障主

  • 自定义注解2021-11-19 11:31:58

    @Target:注解的作用目标@Target(ElementType.TYPE)——接口、类、枚举、注解@Target(ElementType.FIELD)——字段、枚举的常量@Target(ElementType.METHOD)——方法@Target(ElementType.PARAMETER)——方法参数@Target(ElementType.CONSTRUCTOR) ——构造函数@Target(ElementType.

  • alertmanage 邮件告警&自定义告警模板2021-11-13 15:35:19

    准备工作 1. 准备163邮箱 2. 登录163邮箱 设置中开启 SMTP功能    3. 新增授权码,需要保存后面配置文件需要用到   alertmanage 配置 配置文件 global: #resolve_timeout: 5m smtp_smarthost: 'smtp.163.com:25' # 163 smtp 服务器地址 smtp_from: 'super@163.

  • java8的新特性尝试2021-11-05 00:01:17

    Java Repeating Annotations In Java 8 release, Java allows you to repeating annotations in your source code. It is helpful when you want to reuse annotation for the same class. You can repeat an annotation anywhere that you would use a standard annotation

  • Java 在运行时修改注解参数值2021-10-10 13:31:28

    转自 https://blog.csdn.net/neweastsun/article/details/109276023 Java 在运行时修改注解参数值 注解是在java代码中增加一种元数据,这些元数据可以嵌入在class文件中在编译时处理,也可以保留至运行时通过Reflection进行访问。本文讨论如何在运行时修改注解值,我们示例使

  • 【脚本转换】VisDrone2coco2021-09-25 15:33:01

    import os import cv2 from tqdm import tqdm import json def convert_to_cocodetection(dir, output_dir): train_dir = os.path.join(dir, "VisDrone2019-DET-train") val_dir = os.path.join(dir, "VisDrone2019-DET-val") train_ann

  • Python中def函数右侧有个->的含义2021-09-13 19:02:07

    看看def函数右侧有->和没有的区别 def f(agent:str) -> str: print("Annotations:", f.__annotations__) return agent print(f('weixin')) print(f(1)) # 结果: # Annotations: {'agent': <class 'str'>, 'return'

  • @Target:注解的作用目标2021-09-10 17:03:57

    @Target:注解的作用目标 @Target(ElementType.TYPE)——接口、类、枚举、注解@Target(ElementType.FIELD)——字段、枚举的常量@Target(ElementType.METHOD)——方法@Target(ElementType.PARAMETER)——方法参数@Target(ElementType.CONSTRUCTOR) ——构造函数@Target(ElementType

  • Android Studio解决support-annotations版本冲突2021-09-02 06:31:06

    在app目录中的build.gradle中的andorid节点里添加如下配置: //解决support-annotations版本冲突 configurations.all { resolutionStrategy.force 'com.android.support:support-annotations:26.0.0' } 如图所示:

  • Android——GT使用教程(二十三) Annotations 教程2021-08-05 14:03:16

    让你在开发中爱不释手的 GT 包。关注GSLS官网,查看更多源码 ヾ(✿゚▽゚)ノ工具包。 所有文章 小编尽量让读者可以 直接 读懂 与 完全 复制粘贴,其中复杂或较多 的源码 会有 源码 并 贴上 github 网址。 GT 类 里面的源码完全开源,较多的中文注释,让更多的人直接读懂。 点个关注点个赞呗

  • 在 OpenVINO 精度检查器工具中添加 DIoU-NMS 指标,以获取 YOLO v4 的正确 mAP2021-07-13 17:02:18

    目录 1.0 简介 5 2.0 设置环境 6 3.0 添加 Diou-nms 的步骤 7 3.1.安装精度检查器工具 7 3.2.编辑 “/opt/intel/openvino_2021/deployment_tools/open_model_zoo/tools/accuracy_checker/ac curacy_checker/postproces sor/nms.py” 7 4.0 用 DIoU-NMS 检查 yolo-v4-tf 模

  • mybatis-plus @Select注解的坑 The method's class, org.apache.ibatis.annotations.Select, is available2021-06-28 09:03:17

    运行时报错信息如下: *************************** APPLICATION FAILED TO START *************************** Description: An attempt was made to call a method that does not exist. The attempt was made from the following location: com.baomidou.mybatisplus.co

  • json使用2021-05-28 11:02:36

    # 加载数据成字典(读) with open(annotations_file, "r") as fa: annotations = json.load(fa) # 上载数据成序列(写) with open("annotation/train_annotation.json", 'w') as fp: json.dump(annotations, fp, indent=4, separators=(',',

  • 基于Docker下载文本标注工具(doccano) 并安装使用2021-05-14 10:33:35

    基于Docker下载文本标注工具(doccano) 并安装使用。 环境:Mac OS 准备工作:Docker安装 1.拉取镜像doccano: 运行命令 sudo docker pull chakkiworks/doccano 2.启动镜像 运行命令 sudo docker run -d --rm --name doccano \ -e "ADMIN_USERNAME=admin" \ -e "ADMIN_EMAIL=a

  • SpringMVC通过Ajax处理数据,出现406问题2021-05-08 20:02:00

    Ajax请求SpringMVC,并且JSON格式的数据 1.首先导包 jackson-annotations.jarjackson-core.jarjackson-databin.jar 2.因为我设置的对应请求的后缀是.html的。     如果是以html为后缀的,返回的默认类型是text/html,而请求的是application/json的类型,浏览器无法解析,就会报错。  

  • 目标检测数据集2021-05-05 21:32:55

    各类目标检测图像数据集下载地址 COCO image 官网 https://cocodataset.org/#home 2014 Train images [83K/13GB]: http://images.cocodataset.org/zips/train2014.zip 2014 Val images [41K/6GB]: http://images.cocodataset.org/zips/val2014.zip 2014 Test images [41

  • springboot整合swagger32021-05-03 13:35:55

    1、添加依赖 <dependency> <groupId>io.springfox</groupId> <artifactId>springfox-boot-starter</artifactId> <version>3.0.0</version> </dependency> 2、添加配置文件 package com.

  • 【Solve】InnerClass annotations are missing corresponding EnclosingMember annotations. Such InnerClass2021-04-29 02:03:35

    问题:   今天Android项目在build时出现了下面的警告: InnerClass annotations are missing corresponding EnclosingMember annotations. Such InnerClass annotations are ignored 内部类批注缺少相应的封闭成员批注。这样的内部类注释将被忽略 解决方法: 在build.gradle中找到

  • Go to the documentation to learn how to Fix dependency resolution errors. 错误2021-04-28 11:34:54

    问题描述: 在集成百度地图时jar包、so库已同步到本地 在编译项目的时候报以下错误: 1 Duplicate class org.intellij.lang.annotations.Flow found in modules jetified-annotations-15.0.jar (org.jetbrains:annotations:15.0) and jetified-intellij_annotations.jar (intellij_

  • Swagger 好用的接口文档工具2021-04-25 09:58:42

    Swagger是一款好用的Java接口文档工具,引入Maven坐标之后就可以在项目启动之后,通过访问相应的地址可以看到生成好的接口文档。 官网:https://swagger.io/官方接口文档:http://docs.swagger.io/swagger-core/apidocs/index.htmlGithub:https://github.com/swagger-api 一、页面

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

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

ICode9版权所有