gaetan
02/24/2017, 11:22 AMval sponsors = events.sponsors.map { toEventSponsoringDto(it, req.language()) }.groupBy { it.level }
is better written like that:
val sponsors = events.sponsors.map { event -> event.toEventSponsoringDto(req.language()) }.groupBy { it.level }
IMHOsdeleuze
02/24/2017, 2:18 PMbombe
02/28/2017, 6:53 PMbombe
02/28/2017, 7:08 PMtadas44
03/01/2017, 3:26 PMaaverin
03/02/2017, 7:54 AMaaverin
03/02/2017, 7:55 AMException in thread "main" java.lang.ExceptionInInitializerError
at org.mockito.internal.exceptions.stacktrace.ConditionalStackTraceFilter.<init>(ConditionalStackTraceFilter.java:17)
at org.mockito.exceptions.base.MockitoException.filterStackTrace(MockitoException.java:41)
at org.mockito.exceptions.base.MockitoException.<init>(MockitoException.java:30)
at org.mockito.exceptions.misusing.MockitoConfigurationException.<init>(MockitoConfigurationException.java:18)
at org.mockito.internal.configuration.plugins.PluginLoader.loadImpl(PluginLoader.java:66)
at org.mockito.internal.configuration.plugins.PluginLoader.loadPlugin(PluginLoader.java:24)
at org.mockito.internal.configuration.plugins.PluginRegistry.<init>(PluginRegistry.java:12)
at org.mockito.internal.configuration.plugins.Plugins.<clinit>(Plugins.java:11)
at org.mockito.internal.util.MockUtil.<clinit>(MockUtil.java:24)
at org.mockito.internal.MockitoCore.<init>(MockitoCore.java:44)
at org.mockito.Mockito.<clinit>(Mockito.java:975)
nimtiazm
03/02/2017, 8:40 AMstrelok
03/02/2017, 11:01 AMspring-webflux
. This piece of code:
@Component
class TestRouter() : RouterFunction<ServerResponse> {
override fun route(request: ServerRequest) = route(request) {
"/".route {
GET("/hello") { ServerResponse.ok().body(BodyInserters.fromObject("World")) }
"/{id}".route {
GET("/hello") { ServerResponse.ok().body(BodyInserters.fromObject("World ${request.pathVariable("id")}")) }
}
}
}
}
does not work as expected (at least as I would expect:))
➜ ~ curl -i <http://localhost:8080/hello>
HTTP/1.1 200 OK
transfer-encoding: chunked
Content-Type: text/plain;charset=UTF-8
World
but:
➜ ~ curl -i <http://localhost:8080/1/hello>
HTTP/1.1 404 Not Found
content-length: 0
This seems like a bug (as the "/{id}".route {...}
supposedly is using RouterFunctions.nest), but I could be wrong. Your thoughts and help are welcome.sdeleuze
03/02/2017, 5:18 PMsdeleuze
03/02/2017, 5:19 PMdavicdsalves
03/02/2017, 7:49 PMdavicdsalves
03/02/2017, 7:49 PMdavicdsalves
03/02/2017, 7:49 PMdavicdsalves
03/02/2017, 7:52 PMstrelok
03/02/2017, 10:47 PMdh44t
03/02/2017, 11:25 PMnfrankel
03/05/2017, 4:11 PMsdeleuze
03/06/2017, 8:25 PMsdeleuze
03/06/2017, 8:26 PMherder
03/06/2017, 8:28 PMenleur
03/06/2017, 10:13 PMsdeleuze
03/06/2017, 10:18 PMenleur
03/06/2017, 10:39 PMigordonxiao
03/09/2017, 2:37 PM@Autowired
lateinit var metaService: MetaService
, but it always failed, the error message is kotlin.UninitializedPropertyAccessException: lateinit property metaService has not been initialized
, how could i solve it?
[10:32]
and i have already tried autowired
with constructor, it’s also not workigordonxiao
03/09/2017, 2:37 PMController
class, but failed in Service
class, it means, when i want to autowired
a Service
into to another Service
, it’s failedigordonxiao
03/09/2017, 2:51 PMopen
, @Autowired
lateinit open var metaService: MetaService
workedleodeng
03/09/2017, 3:05 PMkotlin-allopen
extension which includes a kotlin-spring
pluginigordonxiao
03/09/2017, 3:07 PMroberto.guerra
03/09/2017, 3:08 PM