ICode9

精准搜索请尝试: 精确搜索
  • java 相关的注解2021-09-29 14:02:40

    1:关于@Mapper和@Repository的一点小理解 如果在接口上@Mapper,然后再在 xml中的namespace指向mapper,那么spring就能动态生成一个Mapper的bean,然后你在serviceImpl中的 @Autowired pravate XXXMapper xxmapper; 就会被这个bean注进去。 如果在DaoImpl中加了@Repository,那么在spr

  • How to fix yum after CentOS 6 went EOL2021-09-29 13:02:32

      We have by far the largest RPM repository with NGINX module packages and VMODs for Varnish. If you want to install NGINX, Varnish, and lots of useful performance/security software with smooth yum upgrades for production use, this is the reposito

  • Cannot retrieve repository metadata (repomd.xml) for repository: base.错误2021-09-26 21:04:10

    错误: Linux上,我输入 wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-7.repo 命令后,使用yum makecache命令时,提示以下错误。 http://mirrors.cloud.aliyuncs.com/centos/6/os/x86_64/repodata/repomd.xml: [Errno 14] PYCURL ERROR 6 - "

  • springboot整合mongodb MongoTemplate和MongoRepository的用法2021-09-26 11:00:12

    Springboot是最简单的使用Spring的方式,而MongoDB是最流行的NoSQL数据库。两者在分布式、微服务架构中使用率极高,本文将用实例介绍如何在Springboot中整合MongoDB的两种方法:MongoRepository和MongoTemplate。 1.MongoRepository 以Spring Date为中心的方法,基于所有Spring数据

  • hj_maven多模块项目war,jar运行踩坑2021-09-24 18:00:28

    一个项目,分成多个maven模块,jar,war包的相互调用依赖,需注意不要形成一个死循环, Tomcat拉入war包运行,一个启动器只能放一个war包,注意切换,idea可以多配置几个启动器. 可能存在缓存问题,需要mvn clean 然后 mvn package 重新编译打包下,可能就解决了很多莫名的错误. 代码逻辑调

  • Permission denied (publickey). fatal: Could not read from remote repository.2021-09-24 16:34:48

    问题: 新的账户没有添加公钥。 解决方法: 步骤一:账户下生成公钥和私钥 ssh-keygen -t rsa -C "yourmail@xxx.com" 该命令会在.ssh下生成如下两个文件: id_rsa是私钥,不能泄露出去。 id_ras.pub是公钥。 步骤二: 进入github个人账户setting中中找到这个。 点击右上角这个 将id_

  • AutoFac实现程序集级别的依赖注入2021-09-16 23:34:50

    转载:https://www.cnblogs.com/Insist-Y/p/15272345.html   1.在“工具”->“NuGet包管理器”->"程序包管理器控制台"执行一下代码,安装autofac。 Install-Package Autofac 当使用 autoFac 开发ASP .net 遇到 ContainerBuilder() 不包含RegisterControllers 方法解决方案(MVC环境下,

  • 在 CentOS 7上安装Sonatype Nexus Repository OSS2021-09-14 14:35:00

    【转自FossLinux的Darshana《Installing Sonatype Nexus Repository OSS on CentOS 7》翻译】 Sonatype Nexus是一个流行的存储库管理器,在全球范围内用于大多数组件、二进制文件和构建工件。它支持 Java 虚拟机 (JVM) 生态系统,包括 Gradle、Ant、Maven 和 Ivy。 兼容的标准工

  • macOS 执行git命令时出现fatal: protocol ‘git@https‘ is not supported2021-09-14 13:03:12

       出现fatal: protocol 'git@https' is not supported 解决方案:打开当前文件夹 shift+command+. 显示隐藏文件 打开.git文件夹下的config   将git@删去    然后重新设置远程仓库 这样就成功啦 如果出现 fatal: 'origin' does not appear to be a git repository fatal:

  • Android 编译卡在Download maven-metadata.xml2021-09-13 15:01:13

    不用怀疑,访问了谷歌 添加国内源删除国外源 在项目的gradle.properties添加 repositories{ ... maven { url 'https://maven.aliyun.com/repository/releases' } maven { url 'https://maven.aliyun.com/repository/jcenter' } maven { url 'https://ma

  • Jenkins中构建时提示:Couldn't find any revision to build. Verify the repository and branch config2021-09-13 14:34:26

    场景 Jenkins中安装Credentials Binding插件实现凭证管理与安装Git插件和拉取代码构建项目: https://blog.csdn.net/BADAO_LIUMANG_QIZHI/article/details/116746646 在按照上面的流程构建项目时流程没有问题。 但是在使用新版的Gitlab时提示: Couldn't find any revision to build

  • Jenkins中构建时提示:Couldn‘t find any revision to build. Verify the repository and branch config2021-09-13 14:30:32

    场景 Jenkins中安装Credentials Binding插件实现凭证管理与安装Git插件和拉取代码构建项目: Jenkins中安装Credentials Binding插件实现凭证管理与安装Git插件和拉取代码构建项目_BADAO_LIUMANG_QIZHI的博客-CSDN博客 在按照上面的流程构建项目时流程没有问题。 但是在使用新版的

  • linux系统异常解决:Reading package lists... Done Building dependency tree Reading state information... Done2021-09-12 10:30:52

    场景: win10子系统linux 文章目录 场景:异常参考解决 异常 Reading package lists... Done Building dependency tree Reading state information... Done E: Unable to locate package lrzsz 参考 Google之,发现了下面这个链接,提供了很全的解决办法: https://askubuntu.co

  • maven中 Could not create local repository问题原因及解决方法2021-09-08 11:04:33

    报错提示     碰到: Could not create local repository的问题,在网上查找良久后没有找到解决方案。于是乎仔细观察了下此问题的提示 发现LocalRepositoryNotAccessibleException异常,继续搜索,终于发现一篇有用的英文资料 出现的原因如下: 1.setting.xml 中的localRepository标签中

  • OCI中的LInux 8 安装repository2021-09-06 16:00:40

    OCI Marketplace中的一些image已经更新到Oracle Linux 8了。 $ cat /etc/redhat-release Red Hat Enterprise Linux release 8.3 (Ootpa) 每一个Region都有自己的Oracle Linux yum server,参考这里,配置方法如下: # OCIREGION=$(curl -sfm 3 http://169.254.169.254/opc/v1/ins

  • Maven的下载和使用2021-09-04 19:34:59

    一:进入官网https://maven.apache.org/download.cgi                    二:打开一下载好的Maven在目录新建repository用于存放jar文件            三:1,在目录中打开conf下的settings.xml 找到localRepository 并在中添加之前要存放jar文件          的reposi

  • maven settings.xml cloudwise hosts2021-09-04 11:02:42

    <?xml version="1.0" encoding="UTF-8"?> <settings xmlns="http://maven.apache.org/SETTINGS/1.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/SETTING

  • 删除maven更新失败的lastUpdated等相关文件的脚本2021-09-01 08:00:18

    新建一个cleanupUpdated.bat文件,里面的内容为: rem 这里写你的仓库路径 set REPOSITORY_PATH=C:\Users\Administrator\.m2\repository rem 正在搜索... for /f "delims=" %%i in ('dir /b /s "%REPOSITORY_PATH%\*lastUpdated*"') do ( del /s /q %%i

  • oracle设置awr采集间隔和保留时间2021-08-30 09:32:01

    环境: OS:Centos 6 DB:11.2.0.4 1.查看当前awr采集时间间隔和保留时间SQL> col SNAP_INTERVAL for a20SQL> col RETENTION for a20SQL> select * from dba_hist_wr_control; DBID SNAP_INTERVAL RETENTION TOPNSQL-------------------

  • Maven的安装和配置2021-08-29 02:34:16

    1. 下载Maven 前往官网(https://maven.apache.org/download.cgi)下载安装包 此处下载的版本为: 这里给出该版本的百度网盘下载地址 链接:https://pan.baidu.com/s/1bh1oE6otMJF2QWT27ZwxWQ 提取码:3wyv 2. 安装Maven 无需进行安装,解压缩到指定路径后即可使用(【repository】文件夹是

  • maven2021-08-29 02:03:17

      Maven中mirrors和repository的关系  1. pom.xml里的repositories元素,里面可以包含多少repository(至少默认包含了中央仓库,仓库id为central,可以写个id为central的mirror或者repository覆盖默认的中央仓库,该仓库总是在effective-pom里repositories元素的最后一 个子元素),每个re

  • android studio: 子模块 Could not find aar 的问题2021-08-27 11:01:28

    简单说下遇到的问题: 主模块app 依赖子模块 lib_ffmpeg, 子模块lib_ffmpeg 依赖一个aar: baidu-sdk.aar. 但是在编译时 gradle 始终提示:cound not find baidu-sdk.aar. 可我在lib_ffmepg的build.gradle文件里已添加: implementation(name: 'baidu-sdk', ext: 'aar')   解决

  • APT仓库目录和repository目录结构2021-08-22 22:02:10

    一、APT仓库目录结构 1.1 版本代号 sid,still in development,该版本和unstable版本是一样的。 版本可以从多个侧面来进行命名。 第一,从release的角度进行命名。比如,buster、jessie、stretch 第二,使用数字编码,比如7、8、9,然后还有小版本,7.11、8.9 第三,对于当前最新的开发版本,又可以

  • CVE-2020-10204 Nexus Repository Manager 3远程命令执行漏洞复现2021-08-22 14:04:31

    0x01 漏洞概述   Nexus Repository Manager 3 是一款软件仓库,可以用来存储和分发 Maven、NuGET 等软件源仓库。其 3.21.1 及之前版本中,存在一处任意 EL 表达式注入漏洞,这个漏洞是 CVE-2018-16621 的绕过     0x02 影响版本   所有以前的 Nexus Repository Manager 3.x OSS/Pr

  • TortoiseGit使用2021-08-19 10:00:36

      2.2. Create Repository:创建板块仓库,单击右键菜单,选择"Git Create Repository here "即可 2.3. Clone Repository:从某个地方快速克隆复制代码,在空文件夹单击右键菜单,选择"git clone"即可 2.5. Committing Your Changes To The Repository 提交对仓库的更改 2.10. Da

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

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

ICode9版权所有