forrás: blog.takipi.com
ágyúval verébre lőni
- Spring projektek
From configuration to security, web apps to big data
– whatever the infrastructure needs of your application may be,
there is a Spring Project to help you build it. Start small and use just what you need – Spring is modular by design.
- spring.io
Spring Boot
Spring Boot
compile("org.springframework.boot:spring-boot-starter-web")
@SpringBootApplication
public class Application {
public static void main(String[] args) {
SpringApplication.run(Application.class, args);
}
}
build.gradle
Application.java
Spring Boot
Spring Boot
Spring Framework
spring-core spring-beans
List<Event> findEventsByStartDateBetweenAndLocationIdOrderByStartDateAsc(
Date date1, Date date2, Long locationId);
Spring Boot
Spring Framework
Spring Data
spring-data-jpa
spring-jdb spring-orm
Spring Boot
spring-aop
Spring Framework
Spring Data
@RequestMapping(value = "/api/programs/{programId}/events/{eventId}",
method = RequestMethod.GET)
public EventDTO findEvent(@PathVariable final String programId,
@PathVariable final Long eventId);
Spring Boot
spring-web spring-webmvc
Spring Framework
Spring Data
Front Controller tervezési minta
@RestController: JSON-ba alakítja a választ, ha a Jackson2 a classpathen van
@ResponseStatus(HttpStatus.NOT_FOUND)
public class NotFoundException extends ApiException {
//...
}
Spring Boot
spring-web spring-webmvc
Spring Framework
Spring Data
Spring Boot
Spring Framework
Spring Data
Spring Security
Spring Boot
Spring Framework
Spring Data
Spring Security
Spring for Android
Spring Social
Spring XD
Spring Cloud
Rest kliens
autentifikáció
microservice-ek fejlesztése, telepítése
osztott rendszerek fejlesztéséhez használt minták támogatása
Build anything - Run anywhere - Rest assured
- spring.io