在SpringBoot中针对MyBatis中的配置如下

# mybatis配置
mybatis.mapper-locations=classpath*:sqlMapper/**/*.xml
mybatis.type-aliases-package=com.example.durid.demo.entity

那么在对应类org.mybatis.spring.boot.autoconfigure.MybatisProperties中获取配置参数的地方打上断点,不如如下位置:

  public String[] getMapperLocations() {return this.mapperLocations;}public void setMapperLocations(String[] mapperLocations) {this.mapperLocations = mapperLocations;}

以debug模式启动Spring Boot程序:
image-20200309122557592.png
拷贝出来的调用栈信息如下:

setMapperLocations:118, MybatisProperties (org.mybatis.spring.boot.autoconfigure)
invoke0:-1, NativeMethodAccessorImpl (sun.reflect)
invoke:62, NativeMethodAccessorImpl (sun.reflect)
invoke:43, DelegatingMethodAccessorImpl (sun.reflect)
invoke:498, Method (java.lang.reflect)
setValue:346, JavaBeanBinder$BeanProperty (org.springframework.boot.context.properties.bind)
bind:96, JavaBeanBinder (org.springframework.boot.context.properties.bind)
bind:79, JavaBeanBinder (org.springframework.boot.context.properties.bind)
bind:56, JavaBeanBinder (org.springframework.boot.context.properties.bind)
lambda$bindDataObject$5:452, Binder (org.springframework.boot.context.properties.bind)
get:-1, 1371495133 (org.springframework.boot.context.properties.bind.Binder$$Lambda$100)
withIncreasedDepth:572, Binder$Context (org.springframework.boot.context.properties.bind)
withDataObject:558, Binder$Context (org.springframework.boot.context.properties.bind)
access$400:513, Binder$Context (org.springframework.boot.context.properties.bind)
bindDataObject:450, Binder (org.springframework.boot.context.properties.bind)
bindObject:391, Binder (org.springframework.boot.context.properties.bind)
bind:320, Binder (org.springframework.boot.context.properties.bind)
bind:308, Binder (org.springframework.boot.context.properties.bind)
bind:238, Binder (org.springframework.boot.context.properties.bind)
bind:225, Binder (org.springframework.boot.context.properties.bind)
bind:89, ConfigurationPropertiesBinder (org.springframework.boot.context.properties)
bind:107, ConfigurationPropertiesBindingPostProcessor (org.springframework.boot.context.properties)
postProcessBeforeInitialization:96, ConfigurationPropertiesBindingPostProcessor (org.springframework.boot.context.properties)
applyBeanPostProcessorsBeforeInitialization:416, AbstractAutowireCapableBeanFactory (org.springframework.beans.factory.support)
initializeBean:1788, AbstractAutowireCapableBeanFactory (org.springframework.beans.factory.support)
doCreateBean:595, AbstractAutowireCapableBeanFactory (org.springframework.beans.factory.support)
createBean:517, AbstractAutowireCapableBeanFactory (org.springframework.beans.factory.support)
lambda$doGetBean$0:323, AbstractBeanFactory (org.springframework.beans.factory.support)
getObject:-1, 697508322 (org.springframework.beans.factory.support.AbstractBeanFactory$$Lambda$154)
getSingleton:222, DefaultSingletonBeanRegistry (org.springframework.beans.factory.support)
doGetBean:321, AbstractBeanFactory (org.springframework.beans.factory.support)
getBean:202, AbstractBeanFactory (org.springframework.beans.factory.support)
resolveCandidate:276, DependencyDescriptor (org.springframework.beans.factory.config)
doResolveDependency:1287, DefaultListableBeanFactory (org.springframework.beans.factory.support)
resolveDependency:1207, DefaultListableBeanFactory (org.springframework.beans.factory.support)
resolveAutowiredArgument:885, ConstructorResolver (org.springframework.beans.factory.support)
createArgumentArray:789, ConstructorResolver (org.springframework.beans.factory.support)
autowireConstructor:228, ConstructorResolver (org.springframework.beans.factory.support)
autowireConstructor:1358, AbstractAutowireCapableBeanFactory (org.springframework.beans.factory.support)
createBeanInstance:1204, AbstractAutowireCapableBeanFactory (org.springframework.beans.factory.support)
doCreateBean:557, AbstractAutowireCapableBeanFactory (org.springframework.beans.factory.support)
createBean:517, AbstractAutowireCapableBeanFactory (org.springframework.beans.factory.support)
lambda$doGetBean$0:323, AbstractBeanFactory (org.springframework.beans.factory.support)
getObject:-1, 697508322 (org.springframework.beans.factory.support.AbstractBeanFactory$$Lambda$154)
getSingleton:222, DefaultSingletonBeanRegistry (org.springframework.beans.factory.support)
doGetBean:321, AbstractBeanFactory (org.springframework.beans.factory.support)
getBean:202, AbstractBeanFactory (org.springframework.beans.factory.support)
instantiateUsingFactoryMethod:409, ConstructorResolver (org.springframework.beans.factory.support)
instantiateUsingFactoryMethod:1338, AbstractAutowireCapableBeanFactory (org.springframework.beans.factory.support)
createBeanInstance:1177, AbstractAutowireCapableBeanFactory (org.springframework.beans.factory.support)
doCreateBean:557, AbstractAutowireCapableBeanFactory (org.springframework.beans.factory.support)
createBean:517, AbstractAutowireCapableBeanFactory (org.springframework.beans.factory.support)
lambda$doGetBean$0:323, AbstractBeanFactory (org.springframework.beans.factory.support)
getObject:-1, 697508322 (org.springframework.beans.factory.support.AbstractBeanFactory$$Lambda$154)
getSingleton:222, DefaultSingletonBeanRegistry (org.springframework.beans.factory.support)
doGetBean:321, AbstractBeanFactory (org.springframework.beans.factory.support)
getBean:202, AbstractBeanFactory (org.springframework.beans.factory.support)
resolveCandidate:276, DependencyDescriptor (org.springframework.beans.factory.config)
doResolveDependency:1287, DefaultListableBeanFactory (org.springframework.beans.factory.support)
resolveDependency:1207, DefaultListableBeanFactory (org.springframework.beans.factory.support)
autowireByType:1511, AbstractAutowireCapableBeanFactory (org.springframework.beans.factory.support)
populateBean:1406, AbstractAutowireCapableBeanFactory (org.springframework.beans.factory.support)
doCreateBean:594, AbstractAutowireCapableBeanFactory (org.springframework.beans.factory.support)
createBean:517, AbstractAutowireCapableBeanFactory (org.springframework.beans.factory.support)
lambda$doGetBean$0:323, AbstractBeanFactory (org.springframework.beans.factory.support)
getObject:-1, 697508322 (org.springframework.beans.factory.support.AbstractBeanFactory$$Lambda$154)
getSingleton:222, DefaultSingletonBeanRegistry (org.springframework.beans.factory.support)
doGetBean:321, AbstractBeanFactory (org.springframework.beans.factory.support)
getBean:202, AbstractBeanFactory (org.springframework.beans.factory.support)
resolveCandidate:276, DependencyDescriptor (org.springframework.beans.factory.config)
doResolveDependency:1287, DefaultListableBeanFactory (org.springframework.beans.factory.support)
resolveDependency:1207, DefaultListableBeanFactory (org.springframework.beans.factory.support)
inject:640, AutowiredAnnotationBeanPostProcessor$AutowiredFieldElement (org.springframework.beans.factory.annotation)
inject:130, InjectionMetadata (org.springframework.beans.factory.annotation)
postProcessProperties:399, AutowiredAnnotationBeanPostProcessor (org.springframework.beans.factory.annotation)
populateBean:1422, AbstractAutowireCapableBeanFactory (org.springframework.beans.factory.support)
doCreateBean:594, AbstractAutowireCapableBeanFactory (org.springframework.beans.factory.support)
createBean:517, AbstractAutowireCapableBeanFactory (org.springframework.beans.factory.support)
lambda$doGetBean$0:323, AbstractBeanFactory (org.springframework.beans.factory.support)
getObject:-1, 697508322 (org.springframework.beans.factory.support.AbstractBeanFactory$$Lambda$154)
getSingleton:222, DefaultSingletonBeanRegistry (org.springframework.beans.factory.support)
doGetBean:321, AbstractBeanFactory (org.springframework.beans.factory.support)
getBean:202, AbstractBeanFactory (org.springframework.beans.factory.support)
resolveCandidate:276, DependencyDescriptor (org.springframework.beans.factory.config)
doResolveDependency:1287, DefaultListableBeanFactory (org.springframework.beans.factory.support)
resolveDependency:1207, DefaultListableBeanFactory (org.springframework.beans.factory.support)
inject:640, AutowiredAnnotationBeanPostProcessor$AutowiredFieldElement (org.springframework.beans.factory.annotation)
inject:130, InjectionMetadata (org.springframework.beans.factory.annotation)
postProcessProperties:399, AutowiredAnnotationBeanPostProcessor (org.springframework.beans.factory.annotation)
populateBean:1422, AbstractAutowireCapableBeanFactory (org.springframework.beans.factory.support)
doCreateBean:594, AbstractAutowireCapableBeanFactory (org.springframework.beans.factory.support)
createBean:517, AbstractAutowireCapableBeanFactory (org.springframework.beans.factory.support)
lambda$doGetBean$0:323, AbstractBeanFactory (org.springframework.beans.factory.support)
getObject:-1, 697508322 (org.springframework.beans.factory.support.AbstractBeanFactory$$Lambda$154)
getSingleton:222, DefaultSingletonBeanRegistry (org.springframework.beans.factory.support)
doGetBean:321, AbstractBeanFactory (org.springframework.beans.factory.support)
getBean:202, AbstractBeanFactory (org.springframework.beans.factory.support)
preInstantiateSingletons:879, DefaultListableBeanFactory (org.springframework.beans.factory.support)
finishBeanFactoryInitialization:878, AbstractApplicationContext (org.springframework.context.support)
refresh:550, AbstractApplicationContext (org.springframework.context.support)
refresh:141, ServletWebServerApplicationContext (org.springframework.boot.web.servlet.context)
refresh:747, SpringApplication (org.springframework.boot)
refreshContext:397, SpringApplication (org.springframework.boot)
run:315, SpringApplication (org.springframework.boot)
run:1226, SpringApplication (org.springframework.boot)
run:1215, SpringApplication (org.springframework.boot)
main:10, DemoApplication (com.example.durid.demo)

从调用栈底部开始分析 会发现这个配置真正开始读取是在完成Bean工厂实例化的时候
image-20200309123307297.png
获取一个名称为userController的bean
image-20200309123520156.png
查看一下UserController的定义

package com.example.durid.demo.controller;import com.example.durid.demo.entity.User;
import com.example.durid.demo.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;import java.util.List;@RestController
@RequestMapping("/user")
public class UserController {@Autowiredprivate UserService userService;// http://localhost:8083/user/list@RequestMapping("/list")public List<User> list() {return userService.list();}// http://localhost:8083/user/get/2@RequestMapping("/get/{id}")public User get(@PathVariable("id") Integer id) {return userService.findById(id);}// http://localhost:8083/user/delete/2@PostMapping("/delete/{id}")public boolean delete(@PathVariable("id") Integer id) {return userService.deleteById(id);}// http://localhost:8083/user/add@PostMapping("/add")public boolean add(@RequestBody User user) {return userService.add(user);}
}

UserController依赖UserService类型的Bean,猜测后面应该会引起UserService类型Bean的初始化
image-20200309124119599.png
image-20200309124241171.png
再分析一下UserService类

package com.example.durid.demo.service.impl;import com.example.durid.demo.entity.User;
import com.example.durid.demo.mapper.UserMapper;
import com.example.durid.demo.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;import java.util.List;@Service
public class UserServiceImpl implements UserService {@Autowiredprivate UserMapper userMapper;@Overridepublic boolean add(User user) {return userMapper.insert(user) == 1;}@Overridepublic List<User> list() {return userMapper.selectAll();}@Overridepublic boolean deleteById(Integer id) {return userMapper.deleteByPrimaryKey(id) == 1;}@Overridepublic User findById(Integer id) {return userMapper.selectByPrimaryKey(id);}
}

UserService依赖于UserMapper类型的Bean,因此后面会导致UserMapper类型Bean的初始化
image-20200309125445958.png
在这里插入图片描述
而UserMapper是一个接口,通过动态代理生成一个MapperFactoryBean类型的实现,这个逻辑属于MyBatis的范畴,此处略去不表。
image-20200309125827194.png

分析一下MapperFactoryBean类的定义

/*** Copyright 2010-2019 the original author or authors.** Licensed under the Apache License, Version 2.0 (the "License");* you may not use this file except in compliance with the License.* You may obtain a copy of the License at**    http://www.apache.org/licenses/LICENSE-2.0** Unless required by applicable law or agreed to in writing, software* distributed under the License is distributed on an "AS IS" BASIS,* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.* See the License for the specific language governing permissions and* limitations under the License.*/
package org.mybatis.spring.mapper;import static org.springframework.util.Assert.notNull;import org.apache.ibatis.executor.ErrorContext;
import org.apache.ibatis.session.Configuration;
import org.mybatis.spring.SqlSessionTemplate;
import org.mybatis.spring.support.SqlSessionDaoSupport;
import org.springframework.beans.factory.FactoryBean;/*** BeanFactory that enables injection of MyBatis mapper interfaces. It can be set up with a SqlSessionFactory or a* pre-configured SqlSessionTemplate.* <p>* Sample configuration:** <pre class="code">* {@code*   <bean id="baseMapper" class="org.mybatis.spring.mapper.MapperFactoryBean" abstract="true" lazy-init="true">*     <property name="sqlSessionFactory" ref="sqlSessionFactory" />*   </bean>**   <bean id="oneMapper" parent="baseMapper">*     <property name="mapperInterface" value="my.package.MyMapperInterface" />*   </bean>**   <bean id="anotherMapper" parent="baseMapper">*     <property name="mapperInterface" value="my.package.MyAnotherMapperInterface" />*   </bean>* }* </pre>* <p>* Note that this factory can only inject <em>interfaces</em>, not concrete classes.** @author Eduardo Macarron** @see SqlSessionTemplate*/
public class MapperFactoryBean<T> extends SqlSessionDaoSupport implements FactoryBean<T> {private Class<T> mapperInterface;private boolean addToConfig = true;public MapperFactoryBean() {// intentionally empty}public MapperFactoryBean(Class<T> mapperInterface) {this.mapperInterface = mapperInterface;}/*** {@inheritDoc}*/@Overrideprotected void checkDaoConfig() {super.checkDaoConfig();notNull(this.mapperInterface, "Property 'mapperInterface' is required");Configuration configuration = getSqlSession().getConfiguration();if (this.addToConfig && !configuration.hasMapper(this.mapperInterface)) {try {configuration.addMapper(this.mapperInterface);} catch (Exception e) {logger.error("Error while adding the mapper '" + this.mapperInterface + "' to configuration.", e);throw new IllegalArgumentException(e);} finally {ErrorContext.instance().reset();}}}/*** {@inheritDoc}*/@Overridepublic T getObject() throws Exception {return getSqlSession().getMapper(this.mapperInterface);}/*** {@inheritDoc}*/@Overridepublic Class<T> getObjectType() {return this.mapperInterface;}/*** {@inheritDoc}*/@Overridepublic boolean isSingleton() {return true;}// ------------- mutators --------------/*** Sets the mapper interface of the MyBatis mapper** @param mapperInterface*          class of the interface*/public void setMapperInterface(Class<T> mapperInterface) {this.mapperInterface = mapperInterface;}/*** Return the mapper interface of the MyBatis mapper** @return class of the interface*/public Class<T> getMapperInterface() {return mapperInterface;}/*** If addToConfig is false the mapper will not be added to MyBatis. This means it must have been included in* mybatis-config.xml.* <p>* If it is true, the mapper will be added to MyBatis in the case it is not already registered.* <p>* By default addToConfig is true.** @param addToConfig*          a flag that whether add mapper to MyBatis or not*/public void setAddToConfig(boolean addToConfig) {this.addToConfig = addToConfig;}/*** Return the flag for addition into MyBatis config.** @return true if the mapper will be added to MyBatis in the case it is not already registered.*/public boolean isAddToConfig() {return addToConfig;}
}

该类又继承了SqlSessionDaoSupport

/*** Copyright 2010-2019 the original author or authors.** Licensed under the Apache License, Version 2.0 (the "License");* you may not use this file except in compliance with the License.* You may obtain a copy of the License at**    http://www.apache.org/licenses/LICENSE-2.0** Unless required by applicable law or agreed to in writing, software* distributed under the License is distributed on an "AS IS" BASIS,* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.* See the License for the specific language governing permissions and* limitations under the License.*/
package org.mybatis.spring.support;import static org.springframework.util.Assert.notNull;import org.apache.ibatis.session.SqlSession;
import org.apache.ibatis.session.SqlSessionFactory;
import org.mybatis.spring.SqlSessionTemplate;
import org.springframework.dao.support.DaoSupport;/*** Convenient super class for MyBatis SqlSession data access objects. It gives you access to the template which can then* be used to execute SQL methods.* <p>* This class needs a SqlSessionTemplate or a SqlSessionFactory. If both are set the SqlSessionFactory will be ignored.* <p>* * @author Putthiphong Boonphong* @author Eduardo Macarron** @see #setSqlSessionFactory* @see #setSqlSessionTemplate* @see SqlSessionTemplate*/
public abstract class SqlSessionDaoSupport extends DaoSupport {private SqlSessionTemplate sqlSessionTemplate;/*** Set MyBatis SqlSessionFactory to be used by this DAO. Will automatically create SqlSessionTemplate for the given* SqlSessionFactory.** @param sqlSessionFactory*          a factory of SqlSession*/public void setSqlSessionFactory(SqlSessionFactory sqlSessionFactory) {if (this.sqlSessionTemplate == null || sqlSessionFactory != this.sqlSessionTemplate.getSqlSessionFactory()) {this.sqlSessionTemplate = createSqlSessionTemplate(sqlSessionFactory);}}/*** Create a SqlSessionTemplate for the given SqlSessionFactory. Only invoked if populating the DAO with a* SqlSessionFactory reference!* <p>* Can be overridden in subclasses to provide a SqlSessionTemplate instance with different configuration, or a custom* SqlSessionTemplate subclass.* * @param sqlSessionFactory*          the MyBatis SqlSessionFactory to create a SqlSessionTemplate for* @return the new SqlSessionTemplate instance* @see #setSqlSessionFactory*/@SuppressWarnings("WeakerAccess")protected SqlSessionTemplate createSqlSessionTemplate(SqlSessionFactory sqlSessionFactory) {return new SqlSessionTemplate(sqlSessionFactory);}/*** Return the MyBatis SqlSessionFactory used by this DAO.** @return a factory of SqlSession*/public final SqlSessionFactory getSqlSessionFactory() {return (this.sqlSessionTemplate != null ? this.sqlSessionTemplate.getSqlSessionFactory() : null);}/*** Set the SqlSessionTemplate for this DAO explicitly, as an alternative to specifying a SqlSessionFactory.** @param sqlSessionTemplate*          a template of SqlSession* @see #setSqlSessionFactory*/public void setSqlSessionTemplate(SqlSessionTemplate sqlSessionTemplate) {this.sqlSessionTemplate = sqlSessionTemplate;}/*** Users should use this method to get a SqlSession to call its statement methods This is SqlSession is managed by* spring. Users should not commit/rollback/close it because it will be automatically done.** @return Spring managed thread safe SqlSession*/public SqlSession getSqlSession() {return this.sqlSessionTemplate;}/*** Return the SqlSessionTemplate for this DAO, pre-initialized with the SessionFactory or set explicitly.* <p>* <b>Note: The returned SqlSessionTemplate is a shared instance.</b> You may introspect its configuration, but not* modify the configuration (other than from within an {@link #initDao} implementation). Consider creating a custom* SqlSessionTemplate instance via {@code new SqlSessionTemplate(getSqlSessionFactory())}, in which case you're* allowed to customize the settings on the resulting instance.** @return a template of SqlSession*/public SqlSessionTemplate getSqlSessionTemplate() {return this.sqlSessionTemplate;}/*** {@inheritDoc}*/@Overrideprotected void checkDaoConfig() {notNull(this.sqlSessionTemplate, "Property 'sqlSessionFactory' or 'sqlSessionTemplate' are required");}}

该类有setSqlSessionFactory和setSqlSessionTemplate,会触发SqlSessionFactory类型Bean的注入
image-20200309131200940.png
然后开始SqlSessionFactory类型Bean的解析
image-20200309131439450.png

-- 查看sqlSessionFactory的mbd定义信息:
Root bean: class [null]; scope=singleton; abstract=false; lazyInit=null; autowireMode=3; dependencyCheck=0; autowireCandidate=true; primary=false; factoryBeanName=org.mybatis.spring.boot.autoconfigure.MybatisAutoConfiguration; factoryMethodName=sqlSessionFactory; initMethodName=null; destroyMethodName=(inferred); defined in class path resource [org/mybatis/spring/boot/autoconfigure/MybatisAutoConfiguration.class]

从mbd信息可知:该类的定义在MybatisAutoConfiguration类中的sqlSessionFactory方法中:

  @Bean@ConditionalOnMissingBeanpublic SqlSessionFactory sqlSessionFactory(DataSource dataSource) throws Exception {SqlSessionFactoryBean factory = new SqlSessionFactoryBean();factory.setDataSource(dataSource);factory.setVfs(SpringBootVFS.class);if (StringUtils.hasText(this.properties.getConfigLocation())) {factory.setConfigLocation(this.resourceLoader.getResource(this.properties.getConfigLocation()));}applyConfiguration(factory);if (this.properties.getConfigurationProperties() != null) {factory.setConfigurationProperties(this.properties.getConfigurationProperties());}if (!ObjectUtils.isEmpty(this.interceptors)) {factory.setPlugins(this.interceptors);}if (this.databaseIdProvider != null) {factory.setDatabaseIdProvider(this.databaseIdProvider);}if (StringUtils.hasLength(this.properties.getTypeAliasesPackage())) {factory.setTypeAliasesPackage(this.properties.getTypeAliasesPackage());}if (this.properties.getTypeAliasesSuperType() != null) {factory.setTypeAliasesSuperType(this.properties.getTypeAliasesSuperType());}if (StringUtils.hasLength(this.properties.getTypeHandlersPackage())) {factory.setTypeHandlersPackage(this.properties.getTypeHandlersPackage());}if (!ObjectUtils.isEmpty(this.typeHandlers)) {factory.setTypeHandlers(this.typeHandlers);}if (!ObjectUtils.isEmpty(this.properties.resolveMapperLocations())) {factory.setMapperLocations(this.properties.resolveMapperLocations());}Set<String> factoryPropertyNames = Stream.of(new BeanWrapperImpl(SqlSessionFactoryBean.class).getPropertyDescriptors()).map(PropertyDescriptor::getName).collect(Collectors.toSet());Class<? extends LanguageDriver> defaultLanguageDriver = this.properties.getDefaultScriptingLanguageDriver();if (factoryPropertyNames.contains("scriptingLanguageDrivers") && !ObjectUtils.isEmpty(this.languageDrivers)) {// Need to mybatis-spring 2.0.2+factory.setScriptingLanguageDrivers(this.languageDrivers);if (defaultLanguageDriver == null && this.languageDrivers.length == 1) {defaultLanguageDriver = this.languageDrivers[0].getClass();}}if (factoryPropertyNames.contains("defaultScriptingLanguageDriver")) {// Need to mybatis-spring 2.0.2+factory.setDefaultScriptingLanguageDriver(defaultLanguageDriver);}return factory.getObject();}

image-20200309132238838.png

@org.springframework.context.annotation.Configuration
@ConditionalOnClass({ SqlSessionFactory.class, SqlSessionFactoryBean.class })
@ConditionalOnSingleCandidate(DataSource.class)
@EnableConfigurationProperties(MybatisProperties.class)
@AutoConfigureAfter({ DataSourceAutoConfiguration.class, MybatisLanguageDriverAutoConfiguration.class })
public class MybatisAutoConfiguration implements InitializingBean

查看该类的构造方法

  public MybatisAutoConfiguration(MybatisProperties properties, ObjectProvider<Interceptor[]> interceptorsProvider,ObjectProvider<TypeHandler[]> typeHandlersProvider, ObjectProvider<LanguageDriver[]> languageDriversProvider,ResourceLoader resourceLoader, ObjectProvider<DatabaseIdProvider> databaseIdProvider,ObjectProvider<List<ConfigurationCustomizer>> configurationCustomizersProvider) {this.properties = properties;this.interceptors = interceptorsProvider.getIfAvailable();this.typeHandlers = typeHandlersProvider.getIfAvailable();this.languageDrivers = languageDriversProvider.getIfAvailable();this.resourceLoader = resourceLoader;this.databaseIdProvider = databaseIdProvider.getIfAvailable();this.configurationCustomizers = configurationCustomizersProvider.getIfAvailable();}

image-20200309132725756.png
image-20200309133051941.png
image-20200309133218038.png

此时会触发MybatisProperties类型Bean的初始化化操作
image-20200309133541550.png
MybatisProperties类有默认构造函数,而且不依赖其他类型的Bean,但此处在初始化这种类型Bean的时候是需要注入配置参数到Bean属性中的,而这个操作是由ConfigurationPropertiesBindingPostProcessor来进行的。

ConfigurationPropertiesBindingPostProcessor进行参数的注入操作
image-20200309133815752.png
image-20200309133848063.png
查看该类的方法

	@Overridepublic Object postProcessBeforeInitialization(Object bean, String beanName) throws BeansException {bind(ConfigurationPropertiesBean.get(this.applicationContext, bean, beanName));return bean;}

image-20200309142924604.png
添加一个条件断点,再次debug

在进行配置类后置处理之前会通过ConfigurationPropertiesBean包装一下

查看该类的注释:

Provides access to @ConfigurationProperties bean details, regardless of if the annotation was used directly or on a @Bean factory method. This class can be used to access all configuration properties beans in an ApplicationContext, or individual beans on a case-by-case basis (for example, in a BeanPostProcessor).

提供对@ConfigurationProperties Bean详细信息的访问,无论注释是直接使用还是在@Bean工厂方法上使用。 可以使用此类访问ApplicationContext中的所有配置属性Bean,也可以视情况访问单个Bean(例如,在BeanPostProcessor中)。

其中提供了获取所有配置属性Bean的方法如下:

	public static Map<String, ConfigurationPropertiesBean> getAll(ApplicationContext applicationContext) {Assert.notNull(applicationContext, "ApplicationContext must not be null");if (applicationContext instanceof ConfigurableApplicationContext) {return getAll((ConfigurableApplicationContext) applicationContext);}Map<String, ConfigurationPropertiesBean> propertiesBeans = new LinkedHashMap<>();applicationContext.getBeansWithAnnotation(ConfigurationProperties.class).forEach((beanName, bean) -> propertiesBeans.put(beanName, get(applicationContext, bean, beanName)));return propertiesBeans;}

获取单个Bean

	public static ConfigurationPropertiesBean get(ApplicationContext applicationContext, Object bean, String beanName) {Method factoryMethod = findFactoryMethod(applicationContext, beanName);return create(beanName, bean, bean.getClass(), factoryMethod);}

此处是通过第二个方法获取,该方法注解为:

Return a @ConfigurationPropertiesBean instance for the given bean details or null if the bean is not a @ConfigurationProperties object. Annotations are considered both on the bean itself, as well as any factory method (for example a @Bean method).

返回给定bean详细信息的@ConfigurationPropertiesBean实例;如果该bean不是@ConfigurationProperties对象,则返回null。 注释在bean本身以及任何工厂方法(例如@Bean方法)上均被考虑。

此处也会考虑加在工厂方法上的@ConfigurationPropertie注解
image-20200309145827802.png
但是当前类中不存在工厂方法
image-20200309150002868.png
image-20200309150110687.png
通过传入的参数创建对象

	private static ConfigurationPropertiesBean create(String name, Object instance, Class<?> type, Method factory) {// 查找实例或工厂方法上是否存在ConfigurationProperties注解ConfigurationProperties annotation = findAnnotation(instance, type, factory, ConfigurationProperties.class);if (annotation == null) {return null;}// 查找Validated注解 此处会返回nullValidated validated = findAnnotation(instance, type, factory, Validated.class);Annotation[] annotations = (validated != null) ? new Annotation[] { annotation, validated }: new Annotation[] { annotation };// 解析ResolvableType信息ResolvableType bindType = (factory != null) ? ResolvableType.forMethodReturnType(factory): ResolvableType.forClass(type);// 解析bindTarget信息Bindable<Object> bindTarget = Bindable.of(bindType).withAnnotations(annotations);if (instance != null) {bindTarget = bindTarget.withExistingValue(instance);}// 构造一个ConfigurationPropertiesBean对象return new ConfigurationPropertiesBean(name, instance, annotation, bindTarget);}

在这里插入图片描述
image-20200309150428803.png
image-20200309150603311.png
image-20200309151121195.png
返回ConfigurationPropertiesBindingPostProcessor类中进行bind操作

	private void bind(ConfigurationPropertiesBean bean) {if (bean == null || hasBoundValueObject(bean.getName())) {return;}Assert.state(bean.getBindMethod() == BindMethod.JAVA_BEAN, "Cannot bind @ConfigurationProperties for bean '"+ bean.getName() + "'. Ensure that @ConstructorBinding has not been applied to regular bean");try {this.binder.bind(bean);}catch (Exception ex) {throw new ConfigurationPropertiesBindException(bean, ex);}}

然后通过ConfigurationPropertiesBinder进行值的绑定

	private void bind(ConfigurationPropertiesBean bean) {if (bean == null || hasBoundValueObject(bean.getName())) {return;}Assert.state(bean.getBindMethod() == BindMethod.JAVA_BEAN, "Cannot bind @ConfigurationProperties for bean '"+ bean.getName() + "'. Ensure that @ConstructorBinding has not been applied to regular bean");try {this.binder.bind(bean);}catch (Exception ex) {throw new ConfigurationPropertiesBindException(bean, ex);}}

在这里插入图片描述
image-20200309135757308.png
ConfigurationPropertiesBinder类注释如下:

Internal class used by the ConfigurationPropertiesBindingPostProcessor to handle the actual @ConfigurationProperties binding.

ConfigurationPropertiesBindingPostProcessor使用的内部类来处理实际的@ConfigurationProperties绑定。

BindResult<?> bind(ConfigurationPropertiesBean propertiesBean) {// 获取bindTarget对象Bindable<?> target = propertiesBean.asBindTarget();// 获取注解ConfigurationProperties annotation = propertiesBean.getAnnotation();// 根据目标类型和注解获取一个BindHandler处理器  Callback interface that can be used to    // handle additional logic during element binding. BindHandler bindHandler = getBindHandler(target, annotation);return getBinder().bind(annotation.prefix(), target, bindHandler);
}
target=[Bindable@1e4c6583 type = org.mybatis.spring.boot.autoconfigure.MybatisProperties, value = 'provided', annotations = array<Annotation>[@org.springframework.boot.context.properties.ConfigurationProperties(ignoreInvalidFields=false, ignoreUnknownFields=true, prefix=mybatis, value=mybatis)]]annotation=@org.springframework.boot.context.properties.ConfigurationProperties(ignoreInvalidFields=false, ignoreUnknownFields=true, prefix=mybatis, value=mybatis)bindHandler=

image-20200309152723770.png

	private <T> BindHandler getBindHandler(Bindable<T> target, ConfigurationProperties annotation) {List<Validator> validators = getValidators(target);BindHandler handler = new IgnoreTopLevelConverterNotFoundBindHandler();if (annotation.ignoreInvalidFields()) {handler = new IgnoreErrorsBindHandler(handler);}if (!annotation.ignoreUnknownFields()) {UnboundElementsSourceFilter filter = new UnboundElementsSourceFilter();handler = new NoUnboundElementsBindHandler(handler, filter);}if (!validators.isEmpty()) {handler = new ValidationBindHandler(handler, validators.toArray(new Validator[0]));}// 此处没有配置ConfigurationPropertiesBindHandlerAdvisor 此处不会进行处理for (ConfigurationPropertiesBindHandlerAdvisor advisor : getBindHandlerAdvisors()) {handler = advisor.apply(handler);}return handler;}
private List<ConfigurationPropertiesBindHandlerAdvisor> getBindHandlerAdvisors() {return this.applicationContext.getBeanProvider(ConfigurationPropertiesBindHandlerAdvisor.class).orderedStream().collect(Collectors.toList());
}

image-20200309153130655.png
image-20200309153238895.png
image-20200309161058576.png
在这里插入图片描述
在这里插入图片描述
在这里插入图片描述
在这里插入图片描述
在这里插入图片描述

查看全文
如若内容造成侵权/违法违规/事实不符,请联系编程学习网邮箱:809451989@qq.com进行投诉反馈,一经查实,立即删除!

相关文章

  1. 有了这碗长沙肉丝粉,我的厨艺终于在朋友圈火了!

    原标题:有了这碗长沙肉丝粉,我的厨艺终于在朋友圈火了!西瓜传媒原创出品 责任编辑:...

    2024/4/28 20:57:38
  2. FVM in CFD 学习笔记_第6章_有限体积网格

    学习自F. Moukalled, L. Mangani, M. Darwish所著The Finite Volume Method in Computational Fluid Dynamics - An Advanced Introduction with OpenFOAM and Matlab Chapter 6 The Finite Volume Mesh 划分网格是有限体积法的首要工作,即,把原本连续的计算域划分成一系列不…...

    2024/4/28 20:57:34
  3. 民鑫粉末冶金:崛起的中国精密制造力量

    原标题:民鑫粉末冶金:崛起的中国精密制造力量粉末冶金,近些年发展迅猛的金属加工制造产业,其绿色、高效、低碳、可持续性等技术优势为世界公认,受到各国制造业和政府的高度重视,在经济发展中占有非常重要的地位。据权威机构测算,我国粉末冶金市场到2020年可达137.29亿元…...

    2024/4/28 20:57:32
  4. go语言写可重复数组的全排列

    package mainimport ("fmt""reflect" )var allNum [][]int var isTrue []bool//可重复数组的全排列 func main() {a := []int{1, 2, 3, 3, 5}p := []int{}isTrue = make([]bool, len(a))for k := range isTrue {isTrue[k] = false}dfs(a, p, 0)for _, valu…...

    2024/4/28 20:57:28
  5. android之Activity的生命周期

    整理出的图1.onCreate()方法在Activity创建时调用,通常做初始化设置;2.onStart()方法在Activity即将可见时调用;3.onResume()方法在Activity获取焦点开始与用户交互时调用;4.onPause()方法在当前Activity被其他Activity覆盖时或者手机锁屏时调用;5.onStop()方法在Activity…...

    2024/4/28 20:57:22
  6. 2018年成人高考、函授、成教招生中 不用参加面授

    原标题:2018年成人高考、函授、成教招生中 不用参加面授什么是成人高考? 成人高考是全称是成人高等学校招生全国统一考试,,属于国民教育系列教育,已经列入国家招生计划。成人高考的毕业证属于国家正规学历,在国家学信网上终身可查,毕业证可以用来找工作,考职业资格证,…...

    2024/4/28 20:57:20
  7. 前端学习(492):script之标签得位置

    ...

    2024/4/28 20:57:15
  8. 0增长≠疫情结束!湖南人再忍忍吧!

    原标题:0增长≠疫情结束!湖南人再忍忍吧!相信最近大家的朋友圈都被—— “截止2月25日,湖南新增确诊病例连续3天0增长”的好消息刷屏了! 截止2月23号,湖南无确诊病例或近14天无新增确诊病例报告的县市区已达78个 。 照理来说应该是鼓舞人心的好消息才对,但今天在网上看…...

    2024/4/28 20:57:12
  9. 【牛客网】北京大学 首字母大写 解题报告

    题目描述对一个字符串中的所有单词,如果单词的首字母不是大写字母,则把单词的首字母变成大写字母。 在字符串中,单词之间通过空白符分隔,空白符包括:空格( )、制表符(\t)、回车符(\r)、换行符(\n)。输入描述:输入一行:待处理的字符串(长度小于100)。输出描述:可能有多组…...

    2024/4/28 20:57:06
  10. 北京组合式空调机组厂家 组合式净化空调机组 上海爱科空调厂家直销质量保证

    原标题:北京组合式空调机组厂家 组合式净化空调机组 上海爱科空调厂家直销质量保证组合式净化空调机组对于刚接触的装修工程项目来说是陌生的,那么什么是组合式净化空调机组呢?下面上海爱科空调厂家的小编来为大家讲述下 组合式空调机组是由各种空气处理功能段组装而成的一种…...

    2024/4/28 20:57:03
  11. 如何创建AJAX

    首先在创建AJAX之前,需要注意如下几个点: (1)XMLHttpRequest 对象的工作流程 (2)兼容性处理 (3)事件的触发条件 (4)事件的触发顺序 下面开始创建AJAXif(opt.url){// 第一步,XMLHttpRequest对象的声明,以及浏览器的兼容var xhr = XMLHttpRequest ? new XMLHttpRequ…...

    2024/4/28 20:56:57
  12. 马来西亚多媒体大学留学招生介绍

    原标题:马来西亚多媒体大学留学招生介绍马来西亚多媒体大学 马来西亚多媒体大学(MMU)是一所综合性大学.虽然本大学成立于1996年,但由于其现代化的多媒体教育设施,创新的多媒体教育方式,现代化的实验室和高质量的学术活动,以及来自海外的教授和专家,使该校在校学生现已达2万…...

    2024/4/28 20:56:53
  13. eclispe 安装 支持J2EE 支持tomcat7 到 tomcat9

    https://www.eclipse.org/downloads/packages/点击 Download 迅雷下载很快...

    2024/4/28 20:56:53
  14. leetcode 682. Baseball Game

    思路就是用一个栈来存储分数,剩下的就是对栈的操作了。 class Solution {public int calPoints(String[] ops) {Stack<Integer> stack = new Stack<>();int sum = 0;for(int i = 0;i<ops.length;i++){String tmp = ops[i];if(tmp=="C"){int a = stac…...

    2024/4/14 1:22:38
  15. 智童时刻与三宽教育达成战略合作 “AI+家长教练”引期待

    原标题:智童时刻与三宽教育达成战略合作 “AI+家长教练”引期待2018年12月17日-18日,由中国关心下一代工作委员会事业发展中心、中国人民大学关心下一代工作委员会主办2018中国家长大会在北京举行。智童时刻(厦门)科技有限公司创始人兼CEO郭长琛应邀出席本次盛会,并与三宽…...

    2024/4/28 20:56:46
  16. hot standby is not possible because max_connections = xx is a lower setting than on the master

    postgresql主备高可用版在搭建主备流复制时,备库启动报错:hot standby is not possible because max_connections = 300 is a lower setting than on the master server (its value was 500)原因是:顾名思义,备库的max_connections参数值为300,小于主库的主库的max_connec…...

    2024/4/28 20:56:41
  17. 佛教布施的含义(佛教基本知识普及)

    原标题:佛教布施的含义(佛教基本知识普及)最近有佛友问我,什么是布施? 为了不误导佛友,小编翻阅了部分佛教入门书籍和几位高僧大德的作品,希望能给佛友们一个正信的答案。 所谓布施就是指把财物、体力、智慧等施舍给他人,为他人谋福利。把财物分给他人称为“布’;舍…...

    2024/4/28 20:56:38
  18. 01:视C++为一个语言联邦

    C 区块、语句、预处理器、内置数据类型、数组、指针 局限:没有模板,没有异常,没有重载…。 Object-Oriented C++ classes,封装,继承,多态,virtual函数(动态绑定) Template C++ 编程泛型(模板元编程) STL template程序库 容器、迭代器、算法以及函数对象 例:对于内置…...

    2024/4/28 20:56:34
  19. Java继承简介

    继承是面向对象的三大特征之一。继承和现实生活中的“继承”的相似之处是保留一些父辈的特性,从而减少代码冗余,提高程序运行效率。 Java 中的继承就是在已经存在类的基础上进行扩展,从而产生新的类。已经存在的类称为父类、基类或超类,而新产生的类称为子类或派生类。在子…...

    2024/4/28 20:56:32
  20. 栾川山上放养的土鸡 没吃任何饲料

    原标题:栾川山上放养的土鸡 没吃任何饲料有一批山上放养的土鸡,没吃任何饲料,吃的是玉米、山芋、中草药等,营养价值非常高,大补是广大朋友的最佳选择,量大从优欢迎咨询! 科普一下什么是土鸡:土鸡,也叫草鸡、笨鸡,与笼养的肉鸡不同,特指放养在山野林间、果园里的肉鸡…...

    2024/4/28 20:56:26

最新文章

  1. Android Handler用法

    Android Handler用法 为什么要设计Handler机制&#xff1f;Handler的用法1、创建Handler2、Handler通信2.1 sendMessage 方式2.2 post 方式 Handler常用方法1、延时执行2、周期执行 HandlerThread用法主线程-创建Handler子线程-创建Handler FAQMessage是如何创建主线程中Looper…...

    2024/5/2 10:25:14
  2. 梯度消失和梯度爆炸的一些处理方法

    在这里是记录一下梯度消失或梯度爆炸的一些处理技巧。全当学习总结了如有错误还请留言&#xff0c;在此感激不尽。 权重和梯度的更新公式如下&#xff1a; w w − η ⋅ ∇ w w w - \eta \cdot \nabla w ww−η⋅∇w 个人通俗的理解梯度消失就是网络模型在反向求导的时候出…...

    2024/3/20 10:50:27
  3. 排序算法之冒泡排序

    1 算法描述 首先在未排序数组的首位开始&#xff0c;和后面相邻的数字进行比较&#xff0c;如果前面一个比后面一个大那么则进行交换。接下来在将第二个位置的数字和后面相邻的数字进行比较&#xff0c;如果大那么则进行交换&#xff0c;直到将最大的数字交换的数组的尾部。然…...

    2024/4/30 12:03:04
  4. 蓝桥杯嵌入式学习笔记(6):IIC程序设计

    目录 前言 1. IIC基本原理 2. 电路原理 3. 代码编程 3.1 预备工作 3.2 AT24C02写读功能编写 3.2.1 AT24C02写操作实现 3.2.2 AT24C02读操作实现 3.3 MCP4017写读功能编写 3.3.1 MCP4017写操作实现 3.3.2 MCP4017读操作实现 3.4 main.c编写 3.4.1 头文件引用 3.4.…...

    2024/5/1 7:11:50
  5. 【外汇早评】美通胀数据走低,美元调整

    原标题:【外汇早评】美通胀数据走低,美元调整昨日美国方面公布了新一期的核心PCE物价指数数据,同比增长1.6%,低于前值和预期值的1.7%,距离美联储的通胀目标2%继续走低,通胀压力较低,且此前美国一季度GDP初值中的消费部分下滑明显,因此市场对美联储后续更可能降息的政策…...

    2024/5/1 17:30:59
  6. 【原油贵金属周评】原油多头拥挤,价格调整

    原标题:【原油贵金属周评】原油多头拥挤,价格调整本周国际劳动节,我们喜迎四天假期,但是整个金融市场确实流动性充沛,大事频发,各个商品波动剧烈。美国方面,在本周四凌晨公布5月份的利率决议和新闻发布会,维持联邦基金利率在2.25%-2.50%不变,符合市场预期。同时美联储…...

    2024/4/30 18:14:14
  7. 【外汇周评】靓丽非农不及疲软通胀影响

    原标题:【外汇周评】靓丽非农不及疲软通胀影响在刚结束的周五,美国方面公布了新一期的非农就业数据,大幅好于前值和预期,新增就业重新回到20万以上。具体数据: 美国4月非农就业人口变动 26.3万人,预期 19万人,前值 19.6万人。 美国4月失业率 3.6%,预期 3.8%,前值 3…...

    2024/4/29 2:29:43
  8. 【原油贵金属早评】库存继续增加,油价收跌

    原标题:【原油贵金属早评】库存继续增加,油价收跌周三清晨公布美国当周API原油库存数据,上周原油库存增加281万桶至4.692亿桶,增幅超过预期的74.4万桶。且有消息人士称,沙特阿美据悉将于6月向亚洲炼油厂额外出售更多原油,印度炼油商预计将每日获得至多20万桶的额外原油供…...

    2024/5/2 9:28:15
  9. 【外汇早评】日本央行会议纪要不改日元强势

    原标题:【外汇早评】日本央行会议纪要不改日元强势近两日日元大幅走强与近期市场风险情绪上升,避险资金回流日元有关,也与前一段时间的美日贸易谈判给日本缓冲期,日本方面对汇率问题也避免继续贬值有关。虽然今日早间日本央行公布的利率会议纪要仍然是支持宽松政策,但这符…...

    2024/4/27 17:58:04
  10. 【原油贵金属早评】欧佩克稳定市场,填补伊朗问题的影响

    原标题:【原油贵金属早评】欧佩克稳定市场,填补伊朗问题的影响近日伊朗局势升温,导致市场担忧影响原油供给,油价试图反弹。此时OPEC表态稳定市场。据消息人士透露,沙特6月石油出口料将低于700万桶/日,沙特已经收到石油消费国提出的6月份扩大出口的“适度要求”,沙特将满…...

    2024/4/27 14:22:49
  11. 【外汇早评】美欲与伊朗重谈协议

    原标题:【外汇早评】美欲与伊朗重谈协议美国对伊朗的制裁遭到伊朗的抗议,昨日伊朗方面提出将部分退出伊核协议。而此行为又遭到欧洲方面对伊朗的谴责和警告,伊朗外长昨日回应称,欧洲国家履行它们的义务,伊核协议就能保证存续。据传闻伊朗的导弹已经对准了以色列和美国的航…...

    2024/4/28 1:28:33
  12. 【原油贵金属早评】波动率飙升,市场情绪动荡

    原标题:【原油贵金属早评】波动率飙升,市场情绪动荡因中美贸易谈判不安情绪影响,金融市场各资产品种出现明显的波动。随着美国与中方开启第十一轮谈判之际,美国按照既定计划向中国2000亿商品征收25%的关税,市场情绪有所平复,已经开始接受这一事实。虽然波动率-恐慌指数VI…...

    2024/4/30 9:43:09
  13. 【原油贵金属周评】伊朗局势升温,黄金多头跃跃欲试

    原标题:【原油贵金属周评】伊朗局势升温,黄金多头跃跃欲试美国和伊朗的局势继续升温,市场风险情绪上升,避险黄金有向上突破阻力的迹象。原油方面稍显平稳,近期美国和OPEC加大供给及市场需求回落的影响,伊朗局势并未推升油价走强。近期中美贸易谈判摩擦再度升级,美国对中…...

    2024/4/27 17:59:30
  14. 【原油贵金属早评】市场情绪继续恶化,黄金上破

    原标题:【原油贵金属早评】市场情绪继续恶化,黄金上破周初中国针对于美国加征关税的进行的反制措施引发市场情绪的大幅波动,人民币汇率出现大幅的贬值动能,金融市场受到非常明显的冲击。尤其是波动率起来之后,对于股市的表现尤其不安。隔夜美国股市出现明显的下行走势,这…...

    2024/4/25 18:39:16
  15. 【外汇早评】美伊僵持,风险情绪继续升温

    原标题:【外汇早评】美伊僵持,风险情绪继续升温昨日沙特两艘油轮再次发生爆炸事件,导致波斯湾局势进一步恶化,市场担忧美伊可能会出现摩擦生火,避险品种获得支撑,黄金和日元大幅走强。美指受中美贸易问题影响而在低位震荡。继5月12日,四艘商船在阿联酋领海附近的阿曼湾、…...

    2024/4/28 1:34:08
  16. 【原油贵金属早评】贸易冲突导致需求低迷,油价弱势

    原标题:【原油贵金属早评】贸易冲突导致需求低迷,油价弱势近日虽然伊朗局势升温,中东地区几起油船被袭击事件影响,但油价并未走高,而是出于调整结构中。由于市场预期局势失控的可能性较低,而中美贸易问题导致的全球经济衰退风险更大,需求会持续低迷,因此油价调整压力较…...

    2024/4/26 19:03:37
  17. 氧生福地 玩美北湖(上)——为时光守候两千年

    原标题:氧生福地 玩美北湖(上)——为时光守候两千年一次说走就走的旅行,只有一张高铁票的距离~ 所以,湖南郴州,我来了~ 从广州南站出发,一个半小时就到达郴州西站了。在动车上,同时改票的南风兄和我居然被分到了一个车厢,所以一路非常愉快地聊了过来。 挺好,最起…...

    2024/4/29 20:46:55
  18. 氧生福地 玩美北湖(中)——永春梯田里的美与鲜

    原标题:氧生福地 玩美北湖(中)——永春梯田里的美与鲜一觉醒来,因为大家太爱“美”照,在柳毅山庄去寻找龙女而错过了早餐时间。近十点,向导坏坏还是带着饥肠辘辘的我们去吃郴州最富有盛名的“鱼头粉”。说这是“十二分推荐”,到郴州必吃的美食之一。 哇塞!那个味美香甜…...

    2024/4/30 22:21:04
  19. 氧生福地 玩美北湖(下)——奔跑吧骚年!

    原标题:氧生福地 玩美北湖(下)——奔跑吧骚年!让我们红尘做伴 活得潇潇洒洒 策马奔腾共享人世繁华 对酒当歌唱出心中喜悦 轰轰烈烈把握青春年华 让我们红尘做伴 活得潇潇洒洒 策马奔腾共享人世繁华 对酒当歌唱出心中喜悦 轰轰烈烈把握青春年华 啊……啊……啊 两…...

    2024/5/1 4:32:01
  20. 扒开伪装医用面膜,翻六倍价格宰客,小姐姐注意了!

    原标题:扒开伪装医用面膜,翻六倍价格宰客,小姐姐注意了!扒开伪装医用面膜,翻六倍价格宰客!当行业里的某一品项火爆了,就会有很多商家蹭热度,装逼忽悠,最近火爆朋友圈的医用面膜,被沾上了污点,到底怎么回事呢? “比普通面膜安全、效果好!痘痘、痘印、敏感肌都能用…...

    2024/4/27 23:24:42
  21. 「发现」铁皮石斛仙草之神奇功效用于医用面膜

    原标题:「发现」铁皮石斛仙草之神奇功效用于医用面膜丽彦妆铁皮石斛医用面膜|石斛多糖无菌修护补水贴19大优势: 1、铁皮石斛:自唐宋以来,一直被列为皇室贡品,铁皮石斛生于海拔1600米的悬崖峭壁之上,繁殖力差,产量极低,所以古代仅供皇室、贵族享用 2、铁皮石斛自古民间…...

    2024/4/28 5:48:52
  22. 丽彦妆\医用面膜\冷敷贴轻奢医学护肤引导者

    原标题:丽彦妆\医用面膜\冷敷贴轻奢医学护肤引导者【公司简介】 广州华彬企业隶属香港华彬集团有限公司,专注美业21年,其旗下品牌: 「圣茵美」私密荷尔蒙抗衰,产后修复 「圣仪轩」私密荷尔蒙抗衰,产后修复 「花茵莳」私密荷尔蒙抗衰,产后修复 「丽彦妆」专注医学护…...

    2024/4/30 9:42:22
  23. 广州械字号面膜生产厂家OEM/ODM4项须知!

    原标题:广州械字号面膜生产厂家OEM/ODM4项须知!广州械字号面膜生产厂家OEM/ODM流程及注意事项解读: 械字号医用面膜,其实在我国并没有严格的定义,通常我们说的医美面膜指的应该是一种「医用敷料」,也就是说,医用面膜其实算作「医疗器械」的一种,又称「医用冷敷贴」。 …...

    2024/5/2 9:07:46
  24. 械字号医用眼膜缓解用眼过度到底有无作用?

    原标题:械字号医用眼膜缓解用眼过度到底有无作用?医用眼膜/械字号眼膜/医用冷敷眼贴 凝胶层为亲水高分子材料,含70%以上的水分。体表皮肤温度传导到本产品的凝胶层,热量被凝胶内水分子吸收,通过水分的蒸发带走大量的热量,可迅速地降低体表皮肤局部温度,减轻局部皮肤的灼…...

    2024/4/30 9:42:49
  25. 配置失败还原请勿关闭计算机,电脑开机屏幕上面显示,配置失败还原更改 请勿关闭计算机 开不了机 这个问题怎么办...

    解析如下&#xff1a;1、长按电脑电源键直至关机&#xff0c;然后再按一次电源健重启电脑&#xff0c;按F8健进入安全模式2、安全模式下进入Windows系统桌面后&#xff0c;按住“winR”打开运行窗口&#xff0c;输入“services.msc”打开服务设置3、在服务界面&#xff0c;选中…...

    2022/11/19 21:17:18
  26. 错误使用 reshape要执行 RESHAPE,请勿更改元素数目。

    %读入6幅图像&#xff08;每一幅图像的大小是564*564&#xff09; f1 imread(WashingtonDC_Band1_564.tif); subplot(3,2,1),imshow(f1); f2 imread(WashingtonDC_Band2_564.tif); subplot(3,2,2),imshow(f2); f3 imread(WashingtonDC_Band3_564.tif); subplot(3,2,3),imsho…...

    2022/11/19 21:17:16
  27. 配置 已完成 请勿关闭计算机,win7系统关机提示“配置Windows Update已完成30%请勿关闭计算机...

    win7系统关机提示“配置Windows Update已完成30%请勿关闭计算机”问题的解决方法在win7系统关机时如果有升级系统的或者其他需要会直接进入一个 等待界面&#xff0c;在等待界面中我们需要等待操作结束才能关机&#xff0c;虽然这比较麻烦&#xff0c;但是对系统进行配置和升级…...

    2022/11/19 21:17:15
  28. 台式电脑显示配置100%请勿关闭计算机,“准备配置windows 请勿关闭计算机”的解决方法...

    有不少用户在重装Win7系统或更新系统后会遇到“准备配置windows&#xff0c;请勿关闭计算机”的提示&#xff0c;要过很久才能进入系统&#xff0c;有的用户甚至几个小时也无法进入&#xff0c;下面就教大家这个问题的解决方法。第一种方法&#xff1a;我们首先在左下角的“开始…...

    2022/11/19 21:17:14
  29. win7 正在配置 请勿关闭计算机,怎么办Win7开机显示正在配置Windows Update请勿关机...

    置信有很多用户都跟小编一样遇到过这样的问题&#xff0c;电脑时发现开机屏幕显现“正在配置Windows Update&#xff0c;请勿关机”(如下图所示)&#xff0c;而且还需求等大约5分钟才干进入系统。这是怎样回事呢&#xff1f;一切都是正常操作的&#xff0c;为什么开时机呈现“正…...

    2022/11/19 21:17:13
  30. 准备配置windows 请勿关闭计算机 蓝屏,Win7开机总是出现提示“配置Windows请勿关机”...

    Win7系统开机启动时总是出现“配置Windows请勿关机”的提示&#xff0c;没过几秒后电脑自动重启&#xff0c;每次开机都这样无法进入系统&#xff0c;此时碰到这种现象的用户就可以使用以下5种方法解决问题。方法一&#xff1a;开机按下F8&#xff0c;在出现的Windows高级启动选…...

    2022/11/19 21:17:12
  31. 准备windows请勿关闭计算机要多久,windows10系统提示正在准备windows请勿关闭计算机怎么办...

    有不少windows10系统用户反映说碰到这样一个情况&#xff0c;就是电脑提示正在准备windows请勿关闭计算机&#xff0c;碰到这样的问题该怎么解决呢&#xff0c;现在小编就给大家分享一下windows10系统提示正在准备windows请勿关闭计算机的具体第一种方法&#xff1a;1、2、依次…...

    2022/11/19 21:17:11
  32. 配置 已完成 请勿关闭计算机,win7系统关机提示“配置Windows Update已完成30%请勿关闭计算机”的解决方法...

    今天和大家分享一下win7系统重装了Win7旗舰版系统后&#xff0c;每次关机的时候桌面上都会显示一个“配置Windows Update的界面&#xff0c;提示请勿关闭计算机”&#xff0c;每次停留好几分钟才能正常关机&#xff0c;导致什么情况引起的呢&#xff1f;出现配置Windows Update…...

    2022/11/19 21:17:10
  33. 电脑桌面一直是清理请关闭计算机,windows7一直卡在清理 请勿关闭计算机-win7清理请勿关机,win7配置更新35%不动...

    只能是等着&#xff0c;别无他法。说是卡着如果你看硬盘灯应该在读写。如果从 Win 10 无法正常回滚&#xff0c;只能是考虑备份数据后重装系统了。解决来方案一&#xff1a;管理员运行cmd&#xff1a;net stop WuAuServcd %windir%ren SoftwareDistribution SDoldnet start WuA…...

    2022/11/19 21:17:09
  34. 计算机配置更新不起,电脑提示“配置Windows Update请勿关闭计算机”怎么办?

    原标题&#xff1a;电脑提示“配置Windows Update请勿关闭计算机”怎么办&#xff1f;win7系统中在开机与关闭的时候总是显示“配置windows update请勿关闭计算机”相信有不少朋友都曾遇到过一次两次还能忍但经常遇到就叫人感到心烦了遇到这种问题怎么办呢&#xff1f;一般的方…...

    2022/11/19 21:17:08
  35. 计算机正在配置无法关机,关机提示 windows7 正在配置windows 请勿关闭计算机 ,然后等了一晚上也没有关掉。现在电脑无法正常关机...

    关机提示 windows7 正在配置windows 请勿关闭计算机 &#xff0c;然后等了一晚上也没有关掉。现在电脑无法正常关机以下文字资料是由(历史新知网www.lishixinzhi.com)小编为大家搜集整理后发布的内容&#xff0c;让我们赶快一起来看一下吧&#xff01;关机提示 windows7 正在配…...

    2022/11/19 21:17:05
  36. 钉钉提示请勿通过开发者调试模式_钉钉请勿通过开发者调试模式是真的吗好不好用...

    钉钉请勿通过开发者调试模式是真的吗好不好用 更新时间:2020-04-20 22:24:19 浏览次数:729次 区域: 南阳 > 卧龙 列举网提醒您:为保障您的权益,请不要提前支付任何费用! 虚拟位置外设器!!轨迹模拟&虚拟位置外设神器 专业用于:钉钉,外勤365,红圈通,企业微信和…...

    2022/11/19 21:17:05
  37. 配置失败还原请勿关闭计算机怎么办,win7系统出现“配置windows update失败 还原更改 请勿关闭计算机”,长时间没反应,无法进入系统的解决方案...

    前几天班里有位学生电脑(windows 7系统)出问题了&#xff0c;具体表现是开机时一直停留在“配置windows update失败 还原更改 请勿关闭计算机”这个界面&#xff0c;长时间没反应&#xff0c;无法进入系统。这个问题原来帮其他同学也解决过&#xff0c;网上搜了不少资料&#x…...

    2022/11/19 21:17:04
  38. 一个电脑无法关闭计算机你应该怎么办,电脑显示“清理请勿关闭计算机”怎么办?...

    本文为你提供了3个有效解决电脑显示“清理请勿关闭计算机”问题的方法&#xff0c;并在最后教给你1种保护系统安全的好方法&#xff0c;一起来看看&#xff01;电脑出现“清理请勿关闭计算机”在Windows 7(SP1)和Windows Server 2008 R2 SP1中&#xff0c;添加了1个新功能在“磁…...

    2022/11/19 21:17:03
  39. 请勿关闭计算机还原更改要多久,电脑显示:配置windows更新失败,正在还原更改,请勿关闭计算机怎么办...

    许多用户在长期不使用电脑的时候&#xff0c;开启电脑发现电脑显示&#xff1a;配置windows更新失败&#xff0c;正在还原更改&#xff0c;请勿关闭计算机。。.这要怎么办呢&#xff1f;下面小编就带着大家一起看看吧&#xff01;如果能够正常进入系统&#xff0c;建议您暂时移…...

    2022/11/19 21:17:02
  40. 还原更改请勿关闭计算机 要多久,配置windows update失败 还原更改 请勿关闭计算机,电脑开机后一直显示以...

    配置windows update失败 还原更改 请勿关闭计算机&#xff0c;电脑开机后一直显示以以下文字资料是由(历史新知网www.lishixinzhi.com)小编为大家搜集整理后发布的内容&#xff0c;让我们赶快一起来看一下吧&#xff01;配置windows update失败 还原更改 请勿关闭计算机&#x…...

    2022/11/19 21:17:01
  41. 电脑配置中请勿关闭计算机怎么办,准备配置windows请勿关闭计算机一直显示怎么办【图解】...

    不知道大家有没有遇到过这样的一个问题&#xff0c;就是我们的win7系统在关机的时候&#xff0c;总是喜欢显示“准备配置windows&#xff0c;请勿关机”这样的一个页面&#xff0c;没有什么大碍&#xff0c;但是如果一直等着的话就要两个小时甚至更久都关不了机&#xff0c;非常…...

    2022/11/19 21:17:00
  42. 正在准备配置请勿关闭计算机,正在准备配置windows请勿关闭计算机时间长了解决教程...

    当电脑出现正在准备配置windows请勿关闭计算机时&#xff0c;一般是您正对windows进行升级&#xff0c;但是这个要是长时间没有反应&#xff0c;我们不能再傻等下去了。可能是电脑出了别的问题了&#xff0c;来看看教程的说法。正在准备配置windows请勿关闭计算机时间长了方法一…...

    2022/11/19 21:16:59
  43. 配置失败还原请勿关闭计算机,配置Windows Update失败,还原更改请勿关闭计算机...

    我们使用电脑的过程中有时会遇到这种情况&#xff0c;当我们打开电脑之后&#xff0c;发现一直停留在一个界面&#xff1a;“配置Windows Update失败&#xff0c;还原更改请勿关闭计算机”&#xff0c;等了许久还是无法进入系统。如果我们遇到此类问题应该如何解决呢&#xff0…...

    2022/11/19 21:16:58
  44. 如何在iPhone上关闭“请勿打扰”

    Apple’s “Do Not Disturb While Driving” is a potentially lifesaving iPhone feature, but it doesn’t always turn on automatically at the appropriate time. For example, you might be a passenger in a moving car, but your iPhone may think you’re the one dri…...

    2022/11/19 21:16:57