提交 8b30d5be 编写于 作者: 武汉红喜's avatar 武汉红喜

class name optimise

上级 17ff4390
......@@ -9,7 +9,7 @@ import org.springframework.context.annotation.Configuration;
* Created by shenhongxi on 2018/11/30.
*/
@Configuration
public class DubboConfig {
public class DubboConfiguration {
/**
* 配置文件里配置默认的,这里配置其他需要的
......
......@@ -9,7 +9,7 @@ import org.springframework.context.annotation.Configuration;
* Created by shenhongxi on 2018/11/30.
*/
@Configuration
public class DubboConfig {
public class DubboConfiguration {
/**
* 配置文件里配置默认的,这里配置其他需要的
......
......@@ -23,7 +23,7 @@ import java.util.List;
* Created by shenhongxi on 2018/12/9.
*/
@Configuration
public class MybatisConfig {
public class MybatisConfiguration {
@MapperScan(basePackages = "org.hongxi.whatsmars.boot.sample.mybatis.dao.user", sqlSessionTemplateRef = "userSqlSessionTemplate")
private class userMapperScan {}
......
......@@ -12,7 +12,7 @@ import org.springframework.context.annotation.Configuration;
*/
//@Configuration
@ComponentScan //("org.hongxi.whatsmars.spring.context.annotation.service")
public class AppConfig {
public class AppConfiguration {
@Autowired
private DemoService demoService;
......
......@@ -3,7 +3,7 @@ package org.hongxi.whatsmars.spring.context.annotation;
import org.hongxi.whatsmars.spring.model.Earth;
import org.springframework.context.annotation.Bean;
public class JustConfig {
public class JustConfiguration {
@Bean
public Earth earth() {
......
......@@ -23,7 +23,7 @@ public class TestSpring {
public static void main(String[] args) {
AnnotationConfigApplicationContext ctx = new AnnotationConfigApplicationContext();
ctx.register(AppConfig.class, JustConfig.class);
ctx.register(AppConfiguration.class, JustConfiguration.class);
ctx.scan("org.hongxi.whatsmars.spring.context.annotation.repository");
ctx.refresh();
Mars mars = ctx.getBean(Mars.class);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册