• 2024-06-30gradle 中切换国内源
    settings.gradlepluginManagement{repositories{maven{url'https://maven.aliyun.com/repository/gradle-plugin'}//gradle-pluginmaven{url'https://maven.aliyun.com/repository/google'}//googlemaven{
  • 2024-06-12git clone 私有仓库, 提示 "remote: Repository not found."
    现象私有仓库,已经在github里面关联了sshpubkey但是尝试使用gitclone将仓库克隆至本地时,提示"remote:Repositorynotfound.",如图解决方法改用AccessToken获取Github去到Setting->DeveloperSettings->personalaccesstokens->generatenewtoken
  • 2024-06-07【源码】Spring Data JPA原理解析之事务注册原理
     SpringDataJPA系列1、SpringBoot集成JPA及基本使用2、SpringDataJPACriteria查询、部分字段查询3、SpringDataJPA数据批量插入、批量更新真的用对了吗4、SpringDataJPA的一对一、LazyInitializationException异常、一对多、多对多操作5、SpringDataJPA自定义
  • 2024-06-05restemplate访问对端,解析异常
    restemplate访问,解析异常的情况try{response=execute(CREATE_PROJECT,HttpMethod.POST,request);}catch(HttpClientErrorExceptione){//处理4xx服务端错误log.error("创建repository异常,repository={},groupId={}"
  • 2024-06-04IDEA maven 项目 如何获取项目离线运行所需的全部依赖( .m2格式)
    背景:maven项目要将整个项目的依赖移植到某无法联网服务器进行测试,需要项目离线运行所需的全部依赖步骤:1. 首先需要有项目源码,解压后,使用IDEA Open Project 2. 在Settings中,配置settings.xml文件的完整路径,以及依赖文件夹的完整路径 setting.xml如果没有,可以复用下面的
  • 2024-06-03git 命令报错:Another git process seems to be running in this repository, e.g. an editor opened by '
    执行git命令时,报错:Anothergitprocessseemstoberunninginthisrepository,e.g.aneditoropenedby'gitcommit'.Pleasemakesureallprocessesareterminatedthentryagain.Ifitstillfails,agitprocessmayhavecrashedinthisrepository
  • 2024-06-02如何在Spring中使用@Query注解?
    在Spring中,@Query注解是一种非常强大的工具,它允许你在Repository接口中直接定义查询语句。使用@Query注解,你可以执行JPQL(JavaPersistenceQueryLanguage)查询或者原生SQL查询,从而实现复杂的数据库查询而无需编写自定义的数据访问代码。使用@Query注解的基
  • 2024-05-30Maven 的下载、IDEA操作、依赖、继承、聚合、常用构建命令说明
    Maven下载https://maven.apache.org/下载之后解压到非中文无空格目录maven自身的配置在你的解压目录下的conf->setting.xml指定本地仓库Maven会把它替我们下载的jar包保存到本地仓库。默认这个本地仓库是在C盘,如果不介意的话,可以不用改。|Thepathtothelo
  • 2024-05-28git detected dubious ownership in repository(idea gitlab不能使用账户密码登录)
    1.情景展示如上图所示,当我在idea当中commit时,报错信息如下:Errorupdatingchanges:detecteddubiousownershipinrepositoryat'D:/workspace-idea2024/dc''D:/workspace-idea2024/dc'isownedby:(inconvertible)(S-1-5-21-269100500-990079634-2360623121-1000
  • 2024-05-28STM32CubeMX导入新版本的固件包
    检查用的芯片的固件版本2.在STM32Cube\Repository目录下检查有没有对应的库文件,我这里是更新之后在ST官网下载对应版本的固件包,注意下载的固件包不能放在STM32Cube\Repository目录下在CubeMx到导入下载好的固件包导入之后等待解压之后,就导入完成。不可简单的把固
  • 2024-05-27Android gradle 配置阿里镜像
    1.打开项目中的build.gradle文件。2.在build.gradle文件中添加阿里镜像的地址,如下所示:buildscript{repositories{maven{url'https://maven.aliyun.com/repository/public'}maven{url'https://maven.aliyun.com/repository/central'}
  • 2024-05-26Nexus Repository Manager 3 未授权目录穿越漏洞(CVE-2024-4956)
    https://github.com/vulhub/vulhub/blob/master/nexus/CVE-2024-4956/README.zh-cn.mdhttps://ares-x.com/2020/04/20/IDEA远程调试Docker中程序的方法/https://t.zsxq.com/MDrfR漏洞类型:未授权任意文件读取(路径穿越)POCGET/%2F%2F%2F%2F%2F%2F%2F..%2F..%2F..%2F..%2F..%2F.
  • 2024-05-26Blog的图床搭建
    本图床搭建基于GitHub+PicGo+jsDelivr本文仅为个人操作方法文章中如有谬误,请多指教1.下载PicGo在PicGO官网下载PicGo2.在GitHub中获取tokens如果你的GitHub中没有repositories或者你想为你的图床创立一个新的repository,请先创建一个新repository并在里面上传图片
  • 2024-05-26Blog的图床搭建
    本图床搭建基于GitHub+PicGo+jsDelivr本文仅为个人操作方法文章中如有谬误,请多指教1.下载PicGo在PicGO官网下载PicGo2.在GitHub中获取tokens如果你的GitHub中没有repositories或者你想为你的图床创立一个新的repository,请先创建一个新repository并在里面上传图片在右侧
  • 2024-05-26Git push时报错:fatal: Could not read from remote repository. Please make sure you have the correct acce
    这个问题困扰了我好久,在网上试了各种方法都不管用,最后重新设置了代理才解决,现在记录一下整个流程:先使用[email protected]看ssh的返回信息,如果出现:You'vesuccessfullyauthenticated,butGitHubdoesnotprovideshellaccess.,则说明你的ssh连接没有问题,否则重新生成密钥
  • 2024-05-25反模式 DI anti-patterns
    反模式DIanti-patterns反模式DIanti-patterns一、一、反模式DIanti-patterns1.控制狂Controlfreak在程序设计中,"Controlfreak"(控制狂)通常指的是一种反模式,即过度控制和过度管理代码的设计和执行流程。这种情况下,程序员试图通过过度的控制和指令来达到对代码的绝
  • 2024-05-24git_learning
    Git常用的是以下6个命令:gitclone、gitpush、gitadd 、gitcommit、gitcheckout、gitpull.workspace:工作区stagingarea:暂存区/缓存区localrepository:版本库或本地仓库remoterepository:远程仓库
  • 2024-05-17【ubuntu】安装Maven
    1、官方下载https://maven.apache.org/download.cgi2、安装方法sudoaptinstallmaven 3、配置本地仓库默认~/.m2/repository, 可以自己修改全局配置:${maven.home}/conf/settings.xml用户级别:${user.home}/.m2/settings.xml <settings>...<localReposi
  • 2024-05-16Maven安装与配置,Idea配置Maven
    maven安装之前要先安装jdk,请确保你的系统已经安装了jdk环境。一、下载Maven选择你需要的maven版本下载:官网下载传送门我使用的是3.6.1版本:maven-3.6.1-bin.zip二、安装把下载好的maven压缩包解压到一个没有中文,空格或其他特殊字符的文件夹,如:三、配置环境变量1.右键此电脑
  • 2024-05-16阿里P3C-PMD配合Gitlab做编码规范检查
    1.Linux安装的Gitlab参考这篇博文:Gitlab+P3C-PMD1.1P3C-PMD插件下载并打jar包下载地址本地文件:p3c-master.zip本地jar包:p3c-pmd-2.1.1-jar-with-dependencies.jar直接下载zip包,然后解压,进入p3c-pmd目录,cmd命令,执行如下mvn命令,编译Kotlin代码mvncleankotlin:compilep
  • 2024-05-15gradle 阿里镜像源
    文件路径:C:\Users\laremehpe\.gradle\init.gradleallprojects{repositories{defREPOSITORY_URL='https://maven.aliyun.com/repository/gradle-plugin'all{ArtifactRepositoryrepo->if(repoinstanceofMavenA
  • 2024-05-12maven 国内源配置
    <?xmlversion="1.0"encoding="UTF-8"?><settingsxmlns="http://maven.apache.org/SETTINGS/1.2.0"xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"xsi:schemaLocation="http://ma
  • 2024-04-27解决Android studio中gradle依赖下载太慢的问题
    在project中找到settings.gradle  原先是这样的代码 在pluginManagement中加入 maven(url="https://maven.aliyun.com/repository/google")maven(url="https://maven.aliyun.com/repository/central")maven(url="https://maven.aliyun.com/repository/g
  • 2024-04-24本地已经有项目需要的所有依赖,但是maven总是会去网上下载
    情况说明本地已经有项目需要的所有依赖,但是maven总是会去网上下载,因为网络不好等原因,一直下载失败,但是本地明明就已经有依赖了。maven的settings配置maven已经配置成自己下载的,至于仓库,没有改变路径,但是仓库的settings也改了。maven的settings已经配置成本地仓库:本地仓库的setti
  • 2024-04-24source 1.5 中不支持 lambda 表达式, Deployment failed repository element
    1、java:[400,90]错误:-source1.5中不支持lambda表达式Failedtoexecutegoalorg.apache.maven.plugins:maven-compiler-plugin:2.3.2:compile(default-compile)onproject原因是未指定版本,默认用jdk1.5在编译<plugins><!--指定maven编译的jdk版本,如果不指