ICode9

精准搜索请尝试: 精确搜索
  • mybatis: Property 'configuration' and 'configLocation' can not specified with to2021-10-07 15:03:26

    org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'studentService': Unsatisfied dependency expressed through field 'studentMapper'; nested exception is org.springframework.beans.factory.Un

  • springboot项目下 mybatis开启驼峰命名方式2021-10-04 23:31:53

    mybatis的驼峰命名方式,本来是配置在mybatis核心配置文件的setting属性中,现在springboot项目下,有三种配置方式   1 在mybatis核心配置文件中指定,springboot加载mybatis核心配置文件 springboot项目的一个特点就是0配置,本来就省掉了mybatis的核心配置文件,现在又加回去算什么事,总之

  • spring以及spring boot参数配置2021-10-03 16:03:40

    1.@PropertySource注解 Annotation providing a convenient and declarative mechanism for adding a org.springframework.core.env.PropertySource  to Spring's org.springframework.core.env.Environment . To be used in conjunction with  Configuration classes. 该注

  • Unable to overwrite the existing configuration file.2021-10-02 09:00:35

       安装 zabbix遇到的问题     自己创建也创建不了。然后下载放进去也不行。 我的问题是 配置文件权限问题,需要授权,给html下的文件授权,可读可写可执行,然后就可以了

  • Aps.net Core3.1 服务层获取IHttpContextAccessor和IConfiguration2021-10-01 16:03:15

    第一步 定义一个 ServiceProviderInstance对象 public class ServiceProviderInstance { public static IServiceProvider Instance { get; set; } }     第二步 Startup.cs  的 Configure方法中加入 ServiceProviderInstance.Instance = app.ApplicationS

  • C# 读写App.config配置文件的方法2021-10-01 09:32:29

    C# 读写App.config配置文件的方法 一、配置文件概述: 应用程序配置文件是标准的 XML 文件,XML 标记和属性是区分大小写的。它是可以按需要更改的,开发人员可以使用配置文件来更改设置,而不必重编译应用程序。配置文件的根节点是configuration。我们经常访问的是appSettings,它是由.Ne

  • Spring的常用注解2021-09-30 13:03:16

    @Configurtion作用在类上,也就是一个Xml的配置文件 @Bean作用在方法上,相当于xml配置中的<bean>标签的作用 @import 在创建文件之后可以引入其他的配置文件 @ComponentScan 配置扫描 @SpringBootApplication  这个注解在那个类上说明这个类时SpringBoot的主配置类 @SpringBootCon

  • 华为服务器如何配置管理IP2021-09-24 17:04:19

    1.华为服务器开机后,首先会进入自检界面,等待一切都正常后,按”Delete“  2.有些服务器按”Delete“后会输入密码,保证其安全性   3.如果没有输入密码,则直接进入BIOS,然后选择”Advanced——IPMI IBHC Configuration“ 4.选择之后就会出现以下界面,并选择"IBHC Configuration" 5

  • IOT Gateway 配置2021-09-23 22:04:18

    目录结构 /etc/thingsboard-gateway/config - Configuration folder. tb_gateway.yaml - Main configuration file for Gateway. logs.conf - Configuration file for logging.

  • [已解决] Ubuntu 显卡风扇调节问题 Unable to locate/open X configuration file. No package ‘xorg-server‘ found2021-09-18 18:01:21

    问题 显卡发烫风扇蜗速旋转,NVIDIA控制面板没有风扇信息,上网查解决方案输入sudo nvidia-xconfig --cool-bits=4之后报警告: WARNING: Unable to locate/open X configuration file. Package xorg-server was not found in the pkg-config search path. Perhaps you should add

  • SpringBoot注解之@Configuration、@Bean、@Component2021-09-18 10:00:07

    SpringBoot注解之@Configuration、@Bean、@Component 首先:我们先简单描述一下这三个的作用 @Component注解表明一个类会作为组件类,并告知Spring要为这个类创建bean。 @Bean注解告诉Spring这个方法将会返回一个对象,这个对象要注册为Spring应用上下文中的bean。通常方法体中包

  • jmeter压测2021-09-17 21:04:47

    1.连接到本地数据库   2 、添加一个 JDBC Connection Configuration ,连接池配置文件。右键线程组【添加】 -- 【配置元件】 - - 【 JDBC Connection Configuration 】  3、右键线程组【添加】-【Sampler】-【JDBC Request】  4.再添加一个分步添加线程组 5.将之前

  • Segger SES软件配置CMSIS Configuration wizard的操作步骤(Nordic)2021-09-17 00:02:52

    1,安装Segger SES 确保已经安装正常 2,安装java环境 (1) 下载地址https://java.com/en/download/manual.jsp 选择 (2) 配置jre环境 (a) 在系统变量中新建环境变量JAVA_HOME,配置值为Java的JDK安装目录,本文作者安装的的路径为C:\Program Files\Java\jre1.8.0_251 (b) 新建CLA

  • k8s ingress配置wss编排模板2021-09-13 15:34:51

    前段时间遇到了一个k8s配置websocket的问题,需要配置一下,由于wss比较安全,结合tls证书才能配置成功,如果是ws则无法在https的网站上面直接使用,wss才行。下面给出配置文件,希望帮助到需要的伙伴。 配置一个新的单独为所有websocket服务服务的ingress 参考文档: https://kubernetes

  • springboot注解之容器功能2021-09-13 10:02:58

    添加组件 @Configuration、@Bean //以swagger为例 @Configuration(proxyBeanMethods = false) @EnableSwagger2 //使用swagger注解 public class SwaggerConfig { @Bean public Docket webApiConfig(){ return new Docket(DocumentationType.SWAGGER_2)

  • spring中的@bean和@component2021-09-08 16:04:12

    首先两者都是用于向ioc容器中注入对象 但是@component系列(@service,@controller等)的注解是用在类上面的,例如在Teacher类上使用该注解,那么通过ioc容器的getBean方法获取时,的名字就是首字母小写,如果是MTeacher这样的,那么默认的名字就是类名MTeacher @Configuration标注

  • spring配置yml提示2021-09-08 11:03:11

    导入依赖 spring-boot-configuration-processor <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-configuration-processor</artifactId> <optional>true</opt

  • net core 代码实践2021-09-08 11:00:24

    Microsoft.extensions.configuration.IniMicrosoft.extensions.configuration.JsonMicrosoft.extensions.configuration.NewtonsoftJsonMicrosoft.extensions.configuration.XmlMicrosoft.extensions.configuration.UserSecretsIConfigurationBuilder builder = new Configura

  • Hadoop配置信息处理(源码解析)2021-09-05 21:02:41

    一、配置文件简介 配置文件是一个系统灵活不可缺少的一部分 1.1windows配置文件 1 windows系统广泛使用一种特殊化ASCII文件(以“ini”为文件扩展命)作为它的主要配置文件标准。以下为INI文件片段。 应用程序可以拥有自己的配置文件,来存储应用的设置信息。INI文件将配置

  • PCIe扫盲——TLP Header详解(二)2021-09-04 11:05:29

    转:http://blog.chinaaet.com/justlxy/p/5100053353 下面用几个具体的例子来讲解TLP Header的格式与作用。因为内容较多,所以分为多篇文章分别进行介绍。第一篇(即本文)介绍IO Request、Memory Request和Configuration Request。第二篇文章(即TLP Header详解三)介绍Completion ,第

  • jmeter连接oracle配置2021-09-02 19:03:18

    1、在测试计划里需要加载对应的jar包     2、JDBC Connection Configuration配置 线程组-->>配置元件-->>JDBC Connection Configuration     线程组-->>取样器-->>JDBC Request Query Type  Select Statement  --查询 Update Statement -- 更新  

  • mybaits源码分析(一)2021-08-29 22:35:25

    一、源码下载 1、手动编译源码  为了方便在看源码的过程中能够方便的添加注释,可以从官网下载源码编译生成对应的Jar包,然后上传到本地maven仓库,再引用这个Jar。             首先需要编译打包parent项目,我是用idea进行打包编译的      然后用同样方法将mybaits项目也打

  • 华为-命令更新202108242021-08-24 19:02:42

    华为命令更新20210824: 1基础命令更新 华为命令更新20210824: dis lldp neighbor brief ----#neighbor 邻居 brief 简要描述# 请进入命令行 采集相关信息 Display diagnostic-information (此命令时间很长) dis int brief (看端口) reset counters interface g0/0/26(重置端口的统

  • 自定义MyBatis2021-08-22 22:35:54

    一. 原生 JDBC 1. 原生JDBC使用 public static void main(String[] args) { Connection conn = null; PreparedStatement preparedStatement = null; ResultSet resultSet = null; User user = new User(); List<User> userList = new ArrayList<User&g

  • jmeter_正则提取器_JDBC_Connection_Configuration2021-08-22 18:01:13

    ______27__________正则提取器 https://www.cnblogs.com/poloyy/p/13179150.html   _____28__SOAP协议  https://www.cnblogs.com/poloyy/p/13183120.html   _____29_____  JDBC_Connection_Configuration 发起 jdbc 请求前,需要有 JDBC 连接配置,即先连上数据库,才能查询数据库

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

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

ICode9版权所有