Solving errors in web projects, java.io.FileNotFoundException: druid.properties (the system cannot find the specified file); [spring factory decoupling development]

When using Tomcat9.0, spring5.0 framework original factory class decoupling, druid-1.0.9jar version, JDK9, MSQL8 version database to simulate web page login case, an error message that the druid.properties file cannot be found appears, the details are as follows [Case code posted at the end]; Normally speaking, the configuration file is placed under the src directory, and […]

10 Index optimization and query optimization

Article directory Index failure case Related query optimization For left outer join For inner join JOIN statement principle Simple nested loop connection SNLJ Indexed nested loop join INLJ Block nested loop join BNLJ Hash Join subquery optimization Sorting optimization filesort algorithm: two-way sorting and single-way sorting Group optimization Pagination optimization Prioritize covering indexes Index push […]

8 Index 2 in mysql

1. Types of indexes 1. B + tree index 1.**Each index is a B + tree**, the secondary index does not contain all the data of the row records 2. In addition to the key value, the leaf node also contains a bookmark in the index row of each leaf node. 3.B+ balanced tree is […]

Building a multi-agent RAG using Llama index

Source: DeepHub IMBA This article is about 3,000 words, and it is recommended to read it for 6 minutes. This article introduces you to using Llama index to build a multi-agent RAG. Retrieval-augmented generation (RAG) has become a powerful technique to enhance the capabilities of large language models (LLM). By retrieving relevant information from knowledge […]

PG creates index and reports out of memory error

qs=> show shared_buffers; shared_buffers —————- 12GB (1 line record) qs=> show work_mem; work_mem ———- 4MB (1 line record) qs=> show maintenance_work_mem; maintenance_work_mem ———————– 8GB (1 line record) qs=> CREATE INDEX ACT_IDX_BYTEARRAY_NAME ON qs.ACT_GE_BYTEARRAY USING btree (NAME_); Error: Out of memory Description: Failed when requesting size 9 in memory context “TupleSort main”. Background: Parallel Worker Processes […]

Mybatis integrates pagehelper and reports an error ClassNotFoundException: org.mybatis.logging.LoggerFactory

Table of Contents Report an error reason Solution Error report In order to introduce pagehelper, the following code is added to the pom.xml file <dependency> <groupId>com.github.pagehelper</groupId> <artifactId>pagehelper-spring-boot-starter</artifactId> <version>1.1.3</version> </dependency> As a result, the error when starting the soringboot project is as follows: org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name ‘testMybatisController’: Unsatisfied dependency expressed through field ‘salePickGoodsInfoMapper’; […]

How to obtain the detection index APs of small targets? ——Dataset Yolo format generates json file

It’s such a simple thing, but I worked on it for several days for no reason. I was very depressed, so I just started without saying much. First, you must have a data set in YoLo format. Starting from the simplest, you need image data and corresponding txt tag data of the yolo type. (The […]