chore[boot]: adjust documents and comments

This commit is contained in:
godotg
2022-12-04 11:02:37 +08:00
parent 7c980c1602
commit 21371b2567
3 changed files with 8 additions and 7 deletions
@@ -20,8 +20,8 @@ import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.Import;
/**
* 通过@Import注解先注册下EventRegisterProcessor对象,当每个bean对象被注入到IOC容器后,都会经过EventRegisterProcessor这个后置处理器,
* 从而在里面扫描每个bean对象,得到带有@EventReceiver注解的方法
* Register the EventRegisterProcessor bean through the @Import annotation,
* and when each bean is injected into the IOC container, it will pass through the EventRegisterProcessor.
*
* @author godotg
* @version 3.0
@@ -13,8 +13,8 @@
package com.zfoo.boot;
import com.zfoo.orm.OrmContext;
import com.zfoo.orm.manager.OrmManager;
import com.zfoo.orm.accessor.MongodbAccessor;
import com.zfoo.orm.manager.OrmManager;
import com.zfoo.orm.model.config.OrmConfig;
import com.zfoo.orm.query.MongodbQuery;
import org.springframework.boot.autoconfigure.condition.ConditionalOnBean;
@@ -30,7 +30,8 @@ import org.springframework.context.annotation.Configuration;
@ConditionalOnBean(OrmConfig.class)
public class OrmAutoConfiguration {
// OrmConfig的装配在于具体的业务游戏中,业务游戏中不配置OrmConfig这个Bean,那么这里的Orm自动装配也不会生效。
// OrmConfig in the specific business
// If the OrmConfig bean is not configured in the business, then the Orm automatic assembly here will not take effect.
@Bean
@ConditionalOnBean(OrmConfig.class)
public OrmManager ormManager(OrmConfig ormConfig) {
@@ -24,9 +24,9 @@ public class MainTest {
@Test
public void testTemplate() {
System.out.println(StringUtils.MULTIPLE_HYPHENS);
System.out.println("XX测试:");
System.out.println("新加测试");
System.out.println("**********");
System.out.println("new test template");
System.out.println(StringUtils.MULTIPLE_HYPHENS);
}