ICode9

精准搜索请尝试: 精确搜索
  • 设计模式之简单工厂的实现2022-04-02 12:35:02

    internal interface Chart { void Display(); } internal class LineChart : Chart { public LineChart() { Console.WriteLine("创建折线图"); } public void Display() { Console.WriteLine("显示折线图&qu

  • java.lang.Exception:No tests found matching的解决方案2022-04-01 23:00:30

    今天学习MBatis时使用Junit测试出现了这个错误: 1 java.lang.Exception: No tests found matching [{ExactMatcher:fDisplayName=add], {ExactMatcher:fDisplayName=add(com.test.UserTest)], {LeadingIdentifierMatcher:fClassName=com.test.UserTest,fLeadingIdentifier=add]] f

  • [ABP] PostgreSQL在.NET 6.0使用DateTime类型抛出异常:timestamp with time zone2022-03-28 00:33:22

    今晚操起久违的 ABP 框架搭了个新项目: .NET 运行时版本:6.0.3 ABP 版本:v5.2.0-rc.2 版本。 数据库:PostgreSQL v10.x 一顿操作猛如虎,直接用 dotnet run 命令执行 DbMigrator 项目,等了一会报错: 日志: 2022-03-27 23:16:12.804 +08:00 [INF] Creating initial migration... 2022-03-2

  • AKS (5) 使用AKS内网负载均衡器-自动创建内网IP地址2022-03-09 23:00:34

      《Windows Azure Platform 系列文章目录》     我们在使用Azure AKS的时候,还可以把服务暴露在内网负载均衡器上,这样公网的用户无法访问AKS集群上的服务。   只有和AKS在同一个内网,或者和AKS VNet打通了Peering点对点互联的其他虚拟网络,才可以访问该AKS上对内提供的服务。

  • mac - docker 创建镜像添加本地代理2022-03-08 12:02:40

    docker build 命令 docker-compose build \ --build-arg http_proxy=http://docker.for.mac.host.internal:[代理端口] \ --build-arg https_proxy=http://docker.for.mac.host.internal:[代理端口] docker compose build: context: . args: - http_proxy=http://do

  • QT ubuntu 运行内存不足2022-03-06 15:32:38

    一、报错: g++: internal compiler error: Killed (program cc1plus) Please submit a full bug report 二、解决方案 问题原因是因为内存不足 使用交换分区来解决:  

  • Mybatis查询mysql数据库遇到的一个关于字符编码的坑2022-03-06 13:05:29

    今天写Mybatis的时候遇到了一个大坑,真的不容易发现而且坑死人(数据库用的是mysql数据库) java.lang.ExceptionInInitializerError at dao.UserDaoTest.test(UserDaoTest.java:15) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMet

  • 一道平平无奇的算法题:Z字形变换2022-03-01 19:04:25

    将一个给定字符串 s 根据给定的行数 numRows ,以从上往下、从左到右进行 Z 字形排列。 比如输入字符串为 "PAYPALISHIRING" 行数为 3 时,排列如下: P A H NA P L S I I GY I R之后,你的输出需要从左往右逐行读取,产生出一个新的字符串,比如:"PAHNAPLSIIGYIR"。 请你实现这个将字符

  • “The selected directory is not a valid home for Go SDK” Goland报错处理2022-02-20 23:58:53

    使用g升级golang版本到1.17.*的时候goland无法配置sdk,报错如下 The selected directory is not a valid home for Go SDK 检查环境配置无误 解决办法 1.执行go version 找到自己安装的详细版本 2.编辑%G_HOME%/version/1.17.7/src/runtime/internal/sys/zversion.go文件(如果

  • Filter实现登录后自动跳转目标url2022-02-19 20:33:53

    5)Filter实现登录后自动跳转目标url 马 克-to-win:下面我们将利用Filter技术完成一个稍微实用一点的需求。需求的内容如下:一言以蔽之,我们就想保护internal目录下的所有 资源,(其他地方不保护)。具体有这么几点:如果用户非法访问internal目录下的资源,就将他导向internal目录下的login

  • Caused by: com.sun.org.apache.xerces.internal.impl.io.MalformedByteSequenceException: 2 字节的 UTF-8 序列2022-02-09 22:00:44

    问题具体描述 D:\tools\java\jdk9\bin\java.exe -ea -Didea.test.cyclic.buffer.size=1048576 "-javaagent:D:\tools\javaIDE\IntelliJ IDEA 2021.1\lib\idea_rt.jar=58987:D:\tools\javaIDE\IntelliJ IDEA 2021.1\bin" -Dfile.encoding=UTF-8 -classpath &

  • grafana数据选择长周期时显示不全Internal Server Error 500 错误2022-02-09 16:00:56

    grafana数据选择长周期时显示不全Internal Server Error 500 错误。数据源方式为zabbix api /var/log/httpd/error_log 显示 [Wed Feb 09 14:03:01.807784 2022] [proxy_fcgi:error] [pid 17251] [client 192.168.137.105:40088] AH01071: Got error 'PHP message: PHP Fatal err

  • 解决:Could not initialize class org.hibernate.validator.internal.engine.valueextraction.ValueExtractor2022-02-05 15:32:32

    这是由于spring包版本冲突导致的。 打开项目的maven包,移除下面截图的jar包,然后再更新项目,重新运行就可以了。  

  • C# 软件开发岗面试经验总结2022-02-05 13:02:54

      01 —   前言         之前面试C#软件工程师岗位,前前后后参加了几十场面试,也积累了不少经验,今天趁着放假,汇总整理一下,分享给年后有新打算的小伙伴们!   02 — 面试前准备       首先是简历,简历一定要认真对待,不能随随便便找个模板套一下就完事,它是你能不能得到面

  • C# 之 4个访问修饰符和8个声明修饰符详解2022-01-31 13:32:22

           [1] Public:公有的,是类型和类型成员的访问修饰符。对其访问没有限制。   [2] Internal:内部的,是类型和类型成员的访问修饰符。同一个程序集中的所有类都可以访问   [3] Private:私有的,是一个成员访问修饰符。只有在声明它们的类和结构中才可以访问。   [4] Protecte

  • Android 修改横屏角度为顺时针270度,37岁程序员被裁2022-01-31 12:32:18

    if (res.getBoolean(com.android.internal.R.bool.config_reverseDefaultRotation)) { mPortraitRotation = Surface.ROTATION_90; mUpsideDownRotation = Surface.ROTATION_270; } else { mPortraitRotation = Surface.ROTATION_270; mUpsideDownRotation = Surface.ROTATIO

  • const char*和char**参数怎么传?2022-01-18 15:03:28

    如: extern NLS_API void NLS_internal_to_external( const char* str_int, /**< (I) The input character data in Teamcenter internal encoding*/ char** str_ext /**< (OF) The converted character data in platform encoding */

  • nacos服务未启动2022-01-18 09:00:43

    feign.RetryableException: afs-job-admin executing POST http://afs-job-admin/api/registry at feign.FeignException.errorExecuting(FeignException.java:249) at feign.SynchronousMethodHandler.executeAndDecode(SynchronousMethodHandler.java:129) at feign.Synchro

  • maven VM options设置2022-01-12 11:01:01

    优先从本地仓库获取 -DarchetypeCatalog=internal 解决控制台输出乱码 -Dfile.encoding=GBK 设置多个参数时,中间用空格隔开

  • idea使用mapstruct报错,Internal error in the mapping processor2022-01-10 19:02:29

    错误信息如下: java: Internal error in the mapping processor: java.lang.NullPointerException at org.ma... 修改方式: 升级mapstruct到最新版本,排除swagger2中的依赖。大致如下: 我的环境:idea:2021.02 <mapstruct.version>1.4.2.Final</mapstruct.version> <dependency>

  • C语言标准-标识符的链接-linkages of identifiers2022-01-07 22:36:22

      linkages of identifiers 标识符的链接    An identifier declared in different scopes or in the same scope more than once can be made to refer to the same object or function by a process called linkage. 29) There are three kinds of linkage: external, intern

  • Android中嵌入Unity2022-01-04 10:34:36

    Android内嵌Unity 参考文章:Android/iOS内嵌Unity开发示例 - zhxmdefj - 博客园 (cnblogs.com)https://www.cnblogs.com/zhxmdefj/p/13273560.html 参考视频:Embedded unity within the android app Part II - YouTubehttps://www.youtube.com/watch?v=sf54tOAkmzU Android与unit

  • 使用Shiro安全框架出现的堆栈溢出异常:StackOverflowError2022-01-03 13:59:52

    错误描述: org.apache.shiro.authc.AuthenticationException: Authentication failed for token submission [org.apache.shiro.authc.UsernamePasswordToken - admin, rememberMe=false]. Possible unexpected error? (Typical or expected login exceptions should extend fro

  • Caused by: org.hibernate.hql.internal.ast.QuerySyntaxException: subnet is not mapped2021-12-30 13:05:23

    1.错误信息 Caused by: java.lang.IllegalArgumentException: org.hibernate.hql.internal.ast.QuerySyntaxException: subnet is not mapped [SELECT COUNT(1) FROM subnet at org.hibernate.internal.ExceptionConverterImpl.convert(ExceptionConverterImpl.java:138)

  • 利用Windbg分析高内存占用问题2021-12-29 10:02:32

    大家好,我是本期的微软 MVP 实验室研究员——冯辉。本篇文章主要介绍如何利用Windbg分析应用进程中的内存问题,从托管堆到非托管堆的探索以及到内存的分配,接下来我们一起来探索吧。 近期有几位朋友使用我们的Magicodes.IE反馈在导出过程中内存暴涨,接下来我们通过Windbg来看一下什

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

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

ICode9版权所有