More Related Content
More from Masatoshi Tada (15)
JSUG SpringOne 2017報告会
- 6. (C) CASAREAL, Inc. All rights reserved.
#jsug
6
12/3( )
12/4( ) (LT )
12/5( )
12/6( )
12/7( )
(14 )
- 17. (C) CASAREAL, Inc. All rights reserved.
#jsug
▸
17
GenericApplicationContext ctx = …;
ctx.registerBean(Foo.class, Foo::new);
ctx.registerBean(Bar.class,
() -> new Bar(ctx.getBean(Foo.class)),
beanDefinition ->
beanDefinition.setLazyInit(true)
);
- 18. (C) CASAREAL, Inc. All rights reserved.
#jsug
18
RouterFunction<?> router =
route(GET("/users/{id}")),
request -> {
Mono<User> user = Mono.justOrEmpty(
request.pathVariables("id"))
.map(Long::valueOf)
.then(repository.findById);
return ok().body(user, User.class);
})
.andRoute(GET("/users")),
request -> {
Flux<User> users = repository.findAll();
return ok().body(user, User.class);
});
▸
- 20. (C) CASAREAL, Inc. All rights reserved.
#jsug
▸
requires
20
module my.app.db {
requires spring.jdbc;
}
- 27. (C) CASAREAL, Inc. All rights reserved.
#jsug
27
#
#Mon Jan 29 13:18:40 JST 2018
com.example.web.controller.TodoController=org.sprin
gframework.stereotype.Component
com.example.persistence.repository.TodoRepositoryIm
pl=org.springframework.stereotype.Component
com.example.service.TodoServiceImpl=org.springframe
work.stereotype.Component
com.example.web.config.MvcConfig=org.springframewor
k.stereotype.Component
com.example.persistence.config.PersistenceConfig=or
g.springframework.stereotype.Component
com.example.service.config.ServiceConfig=org.spring
framework.stereotype.Component
▸ Bean
- 28. (C) CASAREAL, Inc. All rights reserved.
#jsug
28
▸
https://twitter.com/snicoll/status/957893939054415872
- 38. (C) CASAREAL, Inc. All rights reserved.
#jsug
▸
38https://springoneplatform.io/sessions
- 44. (C) CASAREAL, Inc. All rights reserved.
#jsug
44
12/3( )
12/4( ) (LT )
12/5( )
12/6( )
12/7( )
(14 )
- 45. (C) CASAREAL, Inc. All rights reserved.
#jsug
45
12/3( )
12/4( ) (LT )
12/5( )
12/6( )
12/7( )
(14 )
😷