codecrucible

Android 11 Set landscape display on the default system. _android fixed landscape display

There are two solutions to implement the default horizontal screen: First method: Directory device/rockchip/rk356x/BoardConfig.mk SF_PRIMARY_DISPLAY_ORIENTATION := 90 Second way: The Android system displays vertical screen by default. If you want to complete horizontal screen display, follow the following steps to configure the function: Modify in the directory frameworks/base/cmds/bootanimation/BootAnimation.cpp // create the native surface sp control…

Read More

ota_update

Foreword: Three upgrade methods First, classify Android upgrades into categories, namely Non-A/B system updates A/B (seamless) system updates Virtual A/B upgrade (Virtual A/B overview) Non-A/B System Updates The official website documents are as follows: https://source.android.com/docs/core/ota/nonab?hl=zh-cn Non-A/B upgrade is the traditional Android system update method. The system updates the system image file during operation, and after…

Read More

Solve the error The injection point has the following annotations_@org.springframework.beans.factory.annotation~

The error description is as follows: Reason for the error: The bean of type com.reggie.service.EmployeeService was not automatically assembled. The reason for my error was that I forgot to add the annotation @Service to the implementation class of EmployeeService, which means that automatic assembly was not implemented. Then I only need to add annotations to…

Read More

Solve the springboot project startup error Error creating bean with name 'dataSourceScriptDatabaseInitializer'

Error message: org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name ‘dataSourceScriptDatabaseInitializer’ defined in class path resource [org/springframework/boot/autoconfigure/sql/init/DataSourceInitializationConfiguration.class]: Unsatisfied dependency expressed through method ‘dataSourceScriptDatabaseInitializer’ parameter 0; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name ‘dataSource’ defined in class path resource [org/springframework/boot/autoconfigure/jdbc/DataSourceConfigurationHikari.class]: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [com.zaxxer.hikari.HikariDataSource]: Factory method…

Read More

Summary springboot starts jar and specifies configuration file

First: coverage -- Overwrite the application-dev.yml file in the file in the system, both specification methods are available By default, springboot reads application.properties>application.yml>specified file (application-dev.yml) first. Public configuration can be in application.yml, and other configurations in application-dev.yml 1)java -jar mssda.jar  -Dconfig.file\=application-dev.yml  2)java -jar mssda.jar   -Dspring.config.location=application-dev.yml Second: Directly quote all Use the following file to…

Read More

Youth apartment service platform source code database based on springboot

Most of the traditional information management relies on manual registration and management by managers. However, with the rapid development of information technology in recent years, many old-fashioned information management models have been updated and iterated. Because of the complicated management content of housing information, , the large number of managements means that manual processing cannot…

Read More

[SpringBoot3] Spring Security detailed usage examples (simple usage, JWT mode)

Note: This article is based on Spring Boot 3.2.1 and Spring Security 6.2.1 Spring Security is very simple to use. Just introduce the relevant dependency packages and then add the annotation @EnableWebSecurity. It also provides a wealth of extension points, allowing you to customize permission verification strategies. Common usage scenarios are divided into two categories:…

Read More