하루에 한가지

spring을 알아보자 본문

java/spring

spring을 알아보자

너도 2018. 7. 20. 15:37



plug-in

eclipse + plugin



new project

기본형

+ Oracle + Mybatis


annotation

@Aspect

@Component

@Autowired

@Value("${api.openUrl}")

@SpringBootApplication

@EnableScheduling

@ControllerAdvice

@ResponseStatus(HttpStatus.BAD_REQUEST)  

@ExceptionHandler(value = Exception.class)

@Configuration

@Bean

@Order

@Controller

@RequestMapping("/collector")

@RequestAttribute(value="messageVO") MessageVO messageVO

@PostConstruct

@RequestBody String body

@ResponseBody  

@Scheduled(fixedRate=1000 * 30)  

@PathVariable("receivers") String receivers

@Repository

@Service

@Async

@JsonProperty("userId")  

@Order(Ordered.HIGHEST_PRECEDENCE)  






'java > spring' 카테고리의 다른 글

egov (전자정부) ExceptionHandling  (0) 2019.11.04
Comments