ICode9

精准搜索请尝试: 精确搜索
  • Could not find resource mybatis-config.xml问题解决2022-05-12 19:32:06

    在Mybatis学习过程中,最后测试出现了Could not find resource mybatis-config.xml错误,但是我的mybatis-config.xml配置文件路径是没得问题的 ,代码本身也没有逻辑问题,最后将UserMapper.xml跟UserMapper.xml都放在resources目录下面,如下图所示     同时也一个要在核心配置文件中

  • FTP主动模式上传文件时返回"ftp: accept: Resource temporarily unavailable"2022-05-09 16:35:17

    FTP主动模式上传文件时返回 Passive mode off ftp: accept: Resource temporarily unavailable 这个问题要从ftp的2种模式说起 PORT & PASV FTP协议有两种工作方式:PORT方式和PASV方式,中文意思为主动式和被动式。 PORT(主动)方式的连接过程是:客户端向服务器的FTP端口(默认是21)

  • Spring源码分析之Resource2022-05-05 20:03:19

    前言 Spring使用Resource接口来抽象所有使用的底层资源,对不同的来源有不同的实现,如Classpath资源(ClassPathResource),文件资源(FileSystemResource)等。 class文件、properties文件、yml文件都可以看做Resource。 Resurce 相关类图如下 简单使用 import java.io.IOException; imp

  • Resource 资源:assetModuleFilename自定义输出文件名与generator2022-05-04 16:02:39

    自定义输出文件名 默认情况下, asset/resource 模块以 [contenthash][ext][query] 文件名 发送到输出目录。 可以通过在 webpack 配置中设置 output.assetModuleFilename 来修改此模 板字符串:output: { assetModuleFilename: 'images/[contenthash][ext][query]' } //... module

  • 更改exe文件图标2022-04-29 23:01:34

    前言 指定exe文件图标,一般在钓鱼的时候可通过此方式对木马进行伪装。 软件链接 http://angusj.com/resourcehacker/ 使用方式 1.准备一个生成好的exe 2.点击File -> Open,选择并打开刚刚装备好的文件,点击Add Binary Resource 3.选择一个图标文件(ico格式),点击Add Resource 4.点击S

  • IdentityServer4之Resource Owner Password Credentials(资源拥有者密码凭据许可)2022-04-22 23:04:42

    IdentityServer4之Resource Owner Password Credentials(资源拥有者密码凭据许可) 前言 IdentityServer4简称IDS4,是为ASP.NET Core系列量身打造的一款基于 OpenID Connect 和 OAuth 2.0 认证框架。 允许一个客户端发送用户名和密码到令牌服务并获得一个表示该用户的访问令牌,就是

  • java VelocityEngine 属性key值得组成说明2022-04-21 12:34:05

    今天看了下模板类VelocityEngine得使用,代码如下: public static String testVelocityEngine() throws IOException { //初始化 VelocityEngine ve = new VelocityEngine(); ve.setProperty(RuntimeConstants.RESOURCE_LOADER, "classpath"); /

  • @Resource和@Autowired的区别2022-04-19 00:33:24

    使用spring注解要导入context约束 配置注解的支持:<context:annotation-config/>      @Autowired直接在属性上使用即可,也可以在set方法上使用,  @Autowired有这个,我们也可以不用写set方法,前提是你这个自动装配的属性在IOC(Spring)容器中存在,且符合名字 @Autowired:自动装配通过先

  • 属性文件加载2022-04-14 17:31:34

    一 文件加载 基于ClassLoader,有两种方式 // resource/default.properties // 方式一 InputStream in = UserService.class.getResourceAsStream("/resource/default.properties"); // 方式二 InputStream in = UserService.class.getClassLoader().getResourceAsStream("resour

  • (十一)React Ant Design Pro + .Net5 WebApi:后端环境搭建-IdentityServer4(三)持久化2022-04-14 15:00:08

    一、前言 IdentityServer配合EFCore持久化,框架已经为我们准备了两个上下文: ConfigurationDbContext:配置数据(资源、客户端、身份等) PersistedGrantDbContext:操作数据(授权码、访问令牌、刷新令牌等) 用户持久化可以自定义一套逻辑,But,我们直接用微软的Identity,再新建一个用户上下文:

  • spring源码篇之demo12022-04-06 01:03:11

    public class SpringApplicaitonDemo1 { public static void main(String[] args) { AnnotationConfigApplicationContext context = new AnnotationConfigApplicationContext(ScanConfig.class); } } 这里会来加载非懒加载的单例bean到容器中来,那么如何来做到的

  • Spring注解中@Resource和@Authwired的区别2022-04-03 15:35:42

    Spring注解中@Resource和@Authwired的区别 @Resource的作用相当于@Autowired,只不过@Autowired按byType自动注入,而@Resource默认按 byName自动注入罢了。 @Resource有两个属性是比较重要的,分是name和type,Spring将@Resource注解的name属性解析为bean的名字,而type属性则解析为bean的

  • springboot源码(七)2022-04-02 18:35:29

    springboot源码之属性文件加载原理剖析 还是先看run方法 public ConfigurableApplicationContext run(String... args) { StopWatch stopWatch = new StopWatch(); stopWatch.start(); ConfigurableApplicationContext context = null; Collecti

  • 2022-03-31 Error: EBUSY: resource busy or locked, lstat 'F:\pagefile.sys'2022-03-31 17:01:35

    前言:react+antd项目,更新依赖报错。上网找答案,意思是样式文件配置问题,给出的配置方案有:方案一:把 lang = 'less’去掉方案二:安装一下这个包 npm install -save less尝试解决:然并卵!!接着我有看到网友建议把360关了,把一些放火墙统统关掉,然后我把依赖全删了重新安装,结果芜湖!成功了。我后

  • Vue 之vue-resource拦截器使用2022-03-30 15:02:25

    一、代码 import VueResource from 'vue-resource' Vue.use(VueResource) //网络请求拦截器 Vue.http.interceptors.push(function(request, next){ //设置请求地址 request.url = this.base + request.url //设置Token,这里没有给出代码 request.headers.

  • Error Rule can only have one resource source (provided resource and test + include + exclude) in {2022-03-11 12:34:12

    vue-cli项目运行npm run dev / npm run serve后报错: Error: Rule can only have one resource source (provided resource and test + include + exclude) in { "exclude": [ null ], "use": [ { "loader": "G:\CustomerDa

  • Springboot 读取 resource 目录下的Excel文件并下载2022-03-10 16:00:17

    如果 inputStream 为null ,或者提示 文件路径不存在,执行 mvn clean 并 重启项目,查看target 目录下是否存在该文件 @GetMapping("/download") public void download(HttpServletResponse response) { try { String filename = "测试.xls";

  • 解决Android Studio报错问题:AAPT: error: resource string/app_name (aka com.example.twohundred:string/app_na2022-03-08 15:02:03

    一、报错问题 在修改res/values/strings.xml文件后出现以下错误 AAPT: error: resource string/app_name (aka com.example.twohundred:string/app_name) not found. 二、解决方法 在resources中添加"app_name" 三、解决结果 问题解决  

  • WinRAR去广告:只需六步,教你去除WinRAR的广告2022-03-08 08:31:33

    最简单的WinRAR去广告步骤1. 下载 Resource Hacker地址:Resource Hacker 下载地址 2. 用软件打开WinRAR.exe3. 打开String Table 4. 打开80:20525. 删除1277所在整行,点击运行,然后另存为 6. 将另存为的WinRAR替换掉原来的将新生成的 exe 文件仍然命名为 WinRAR.exe (我把原来的 winrar

  • Spring中@autowire、@resource、@service、@repository的使用2022-03-05 06:00:07

    //@autowire与@resource是用于依赖的自动注入。@autowire是spring提供的,@resource是j2EE提供的。 //@service与@repository是用于声明一个类是一个bean的,@service用于service层,@repository用于持久(dao)层。 总的来说就是不必在spring配置文件中配置标签,提高编程效率,使用注解方便

  • 前端页面报Failed to load resource the server responded with a status of 404 ()解决方法2022-03-02 13:02:59

    解决方法: 第一种: 1.在https://www.bitbug.net/中做个favicon.ico文件放在根目录下 2.在head标签引入favicon.ico文件即可 <link th:href="${'/favicon.ico'}" rel="shortcut icon"> 第二种:不愿意做图标或者还没想好图标做成什么样,可以直接在head标签插入以下代码也OK <link

  • python报错: OSError: cannot open resource2022-03-01 15:34:16

    问题: File "D:\Windows_DL_Environment\anaconda3\envs\py37\lib\site-packages\PIL\ImageFont.py", line 852, in freetype return FreeTypeFont(font, size, index, encoding, layout_engine) File "D:\Windows_DL_Environment\anaconda3\

  • 《Spring源码深度解析 郝佳 第2版》容器的基本实现与XML文件的加载2022-02-28 22:32:52

    目录 Spring的整体架构容器的基本实现与XML文件的加载 一、Spring的整体架构 Spring是一个分层架构,主要包含以下部分 Core ContainerData AccessWebAopTest 1、Core Container 核心容器,包含Core、Beans、Context和Expression Language(EL表达式)模块。Core和Beans是基础部分,提

  • Error creating bean with name ‘requestMappingHandlerAdapter‘ defined in class path resource……2022-02-28 15:02:00

    Error creating bean with name 'requestMappingHandlerAdapter' defined in class path resource…… 最近在本地使用springboot集成redis时(参考率一些文章的教程),启动项目时报错。最终是pom的依赖有问题。报错如下: org.springframework.beans.factory.BeanCreationExce

  • tensorflow安装无法导入2022-02-24 10:00:08

      1.查看本地安装版本 pip list 记住自己的版本,方便第二步进行卸载 2.卸载本地版本 pip uninstall tensorflow==2.1.0     #我的版本是2.1.0  3.查看是否卸载 pip list  4.安装1.12.0版本 pip install tensorflow==1.12.0  -i http://pypi.douban.com/simple --trusted-

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

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

ICode9版权所有