spring

配置类:
@Configuration

@Bean
    name
    initMethod
    destroyMethod
    autowire
   
@Import
@Import({BookStoreServiceConfig.class, BookStoreDaoConfig.class})
@ImportResource
@ImportResource(“classpath:/bookstore/config/spring-beans.xml”)

@Controller
@RestController
@RequestMapping(value="/user",method=RequestMethod.GET)
@ResponseBody

@Service
@Transactional

@Repository
@Cache

@JPA

@Autowired
@PreDestroy

@MapperScan      //mybaits dao 搜索路径
@EnableConfigurationProperties
@ConfigurationProperties
@ConfigurationProperties(prefix = DataSourceProperties.DS, ignoreUnknownFields = false)

@SpringBootApplication
@EnableEurekaClient
@EnableAutoConfiguration(exclude = DataSourceAutoConfiguration.class )
@EnableConfigServer

你可能感兴趣的:(spring)