Skip to content
欢迎扫码关注公众号

Spring Boot:自定义模块的自动装配

添加组件扫描的配置类:

java
package me.liujiajia.spring.boot.auto.configuration.sample.config;

import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;

/**
 * @author 佳佳
 */
@Configuration
@ComponentScan(basePackages = {"me.liujiajia.spring.boot.auto.configuration.sample"})
public class MyAutoConfiguration {

}

resources 下添加 /META-INF/spring.factories 文件,内容如下:

ini
org.springframework.boot.autoconfigure.EnableAutoConfiguration=\
me.liujiajia.spring.boot.auto.configuration.sample.config.MyAutoConfiguration

Page Layout Max Width

Adjust the exact value of the page width of VitePress layout to adapt to different reading needs and screens.

Adjust the maximum width of the page layout
A ranged slider for user to choose and customize their desired width of the maximum width of the page layout can go.

Content Layout Max Width

Adjust the exact value of the document content width of VitePress layout to adapt to different reading needs and screens.

Adjust the maximum width of the content layout
A ranged slider for user to choose and customize their desired width of the maximum width of the content layout can go.