Use MediaExtractor + MediaCodec + AudioTrack to play audio files First look at a picture: If you want to play a video, you have to deprotocol and decapsulate the video file. Then you can get the audio data and video data (separately), decode them separately again, and finally play them synchronously (because the devices that […]
Tag: actor
JMeterJSON extractor of post-processor
Test environment JMeter 5.4.1 Plug-in introduction The JSON PostProcessor allows you to extract data from JSON-formatted responses using the JSON Path syntax. Similar to the regular expression extractor, it must be located under the HTTP sampler or other sampler that can return JSON data as a child node. Plug-in parameters Name The name that appears […]
Spring Cloud Gateway Series: Routing Assertion Factory
Article directory 1. After routing assertion factory configuration API style 2. Before routing assertion factory configuration API style 3. Between routing assertion factory configuration API style 4. Cookie routing assertion factory configuration API style 5. Header routing assertion factory configuration API style 6. Host routing assertion factory configuration API style 7. Method routing assertion factory […]
If the new Feign interface is started according to the microservice, an error will be reported: org.springframework.beans.factory.UnsatisfiedDependencyException:
Startup error: org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name ‘jgEntInfoController’: Unsatisfied dependency expressed through field ‘remoteJgEntInfoService’; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name ‘ com.supervise.system.api.RemoteJgEntInfoService’: Unexpected exception during bean creation; nested exception is java.lang.IllegalStateException: No fallbackFactory instance of type class com.supervise.system.api.factory.RemoteJgEntInfoFallbackFactory found for feign client remoteJgEntInfoService question: rg.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean named ‘jgEntInfoController’: Dependency […]
jdbc data source (DruidDataSourceFactory) connection pool – druid
<dependencies> <dependency> <groupId>mysql</groupId> <artifactId>mysql-connector-java</artifactId> <version>8.0.28</version> <scope>compile</scope> </dependency> <dependency> <groupId>com.alibaba</groupId> <artifactId>druid</artifactId> <version>1.2.16</version> </dependency> </dependencies> 1. Druid data source connection pool technology package com.csdn.jdbc; import com.alibaba.druid.pool.DruidDataSource; import com.alibaba.druid.pool.DruidPooledConnection; import java.sql.SQLException; // Demonstrate data source connection pool druid Druid data source connection pool technology public class DataSourceConnectPool { public static void main(String[] args) throws SQLException { DruidDataSource dataSource […]
[Source code analysis] Spring source code interpretation-beanFactory and Bean’s post-processor process
In the previous article, we introduced in detail how spring successfully created beanfactory by loading the xml configuration file. Following the core process, we continue to talk about the post-processing process of beanFactory and Bean. //Template method left to subclasses, allowing subclasses to continue to perform some processing on the factory; Allows post-processing of the […]
2023NOIP A layer joint test 18 new factorial
The main idea of the title we define f ( x ) = x 1 × ( x ? 1 ) 2 × ( x ? 2 ) 3 × ? × 2 x ? 1 × 1 x f(x)=x^1\times (x-1)^2\times (x-2)^3\times \cdots\times 2^{x-1}\times 1^x f(x)=x1×(x?1)2×(x?2)3×?×2x?1×1x. given n n n, find f ( n ) […]
org.springframework.beans.factory.UnsatisfiedDependencyException Error creating bean with name class
Someone said they wanted to see: org.springframework.beans.factory.UnsatisfiedDependencyException exception solution, so today, he is here! ! ! ! When you first started working on SpringBoot, you were high-spirited and unmotivated. With the great goal of abandoning the cumbersome configuration of traditional MVC, you eagerly embraced the SpringBoot framework model because you know the core of springboot: […]
Spring – BeanFactoryAware extension interface
Article directory Pre org.springframework.beans.factory.BeanFactoryAware Extension point description Aware interface Execution timing and order of Spring’s built-in Aware interface Source code analysis (direct call) Source code analysis (BeanPostProcessor call execution sequence) Extension point example Pre Spring Boot – List of extension interfaces org.springframework.beans.factory.BeanFactoryAware package org.springframework.beans.factory; import org.springframework.beans.BeansException; /** * Interface to be implemented by beans that […]
The ultimate solution to buried logs–Golang+Gin+Sarama VS Java+SpringWebFlux+ReactorKafka
The ultimate solution to buried logs–Golang + Gin + Sarama VS Java + SpringWebFlux + ReactorKafka I have written several articles before about OpenResty + lua-kafka-client writing buried data to Kafka, as follows: Lua writes Nginx request data to Kafka – buried log solution Python scheduled task executes shell script to cut Nginx logs – […]