配置类:
@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
最新推荐文章于 2024-04-25 17:27:12 发布