bdeg
01/27/2019, 6:49 PMnfrankel
01/29/2019, 7:58 AMCzar
01/29/2019, 12:55 PMInjectionPoint
in SpringFu kofu bean definition DSL?reik.schatz
02/07/2019, 3:07 PM@Component
interface EventTransformer<T> where T: Event { ..
@Component
class LoginEventTransformer: EventTransformer<Login> {
@Component
class FieldValueListRowMapper(transformers: List<EventTransformer<Event>>) { // autowires empty list
alieksie
02/11/2019, 11:17 AM@PostMapping(SEARCH_ROUTE)
fun search(@RequestBody searchQuery: SearchQuery): Mono<SearchQuery> = searchService.save(searchQuery)
save(searchQuery)
returns Mono<SearchQuery>.
When i return Mono.just(searchQuery), there are no issues. But when i return someMono.flatMap { ... }
I am getting an error: ...SearchQuery cannot be cast to class java.lang.String
Are there any tricks, or i miss something, when i use .flatMap
? 🙂bjonnh
02/12/2019, 7:18 PM@Autowired
private var roleRepository: RoleRepository? = null
The application works properly, is there anything I can do about that?sdeleuze
02/13/2019, 9:22 AMsdeleuze
02/13/2019, 4:01 PMsdeleuze
02/13/2019, 4:01 PMsnowe
02/14/2019, 10:18 PMvarpa89
02/15/2019, 1:50 PMsdeleuze
02/15/2019, 2:58 PMIvan Feliciano
02/17/2019, 2:32 AMsdeleuze
02/18/2019, 1:38 PMSteven McLaughlin
02/18/2019, 2:12 PMbjonnh
02/25/2019, 9:38 PMthanksforallthefish
03/01/2019, 12:02 PMvalue
parameter as nullable (https://github.com/spring-projects/spring-hateoas/blob/master/src/main/java/org/springframework/hateoas/server/mvc/UriComponentsContributor.java#L46) spring data commons declares the implementation (HateoasSortHandlerMethodArgumentResolver
) as not nullable, therefore kotlin prevents to write something like override fun enhance(builder: UriComponentsBuilder, parameter: MethodParameter, value: Any?)
.
is it worth to create an issue?sdeleuze
03/05/2019, 10:30 AMCzar
03/05/2019, 12:52 PMsdeleuze
03/06/2019, 10:28 AMbulbulpaul
03/07/2019, 4:47 PM@Target(AnnotationTarget.FUNCTION, AnnotationTarget.PROPERTY, AnnotationTarget.VALUE_PARAMETER, AnnotationTarget.CLASS, AnnotationTarget.FIELD)
@Retention(AnnotationRetention.RUNTIME)
@Inherited
@Qualifier
annotation class Extra
If there are multiple beans implementing the same interface, we used the Annotation class using the above @Qualifier.
This time, I think that there are the following methods when it comes to describing it in Bean DSL.
a: Define it as ref<>() where necessary in the Bean DSL.
b: Specify with @Qualifier during constructor injection
If you know other one how to implement it, please let tell me...😅poohbar
03/08/2019, 7:58 PMCaused by: org.springframework.aop.framework.AopConfigException: Could not generate CGLIB subclass of class com.example.core.feature.general.MyService$ByteBuddy$XNiBjGz8$ByteBuddy$rk2gOXmp: Common causes of this problem include using a final class or a non-visible class; nested exception is org.springframework.cglib.core.CodeGenerationException: java.lang.NoClassDefFoundError-->com/example/core/feature/general/MyService$ByteBuddy$XNiBjGz8$ByteBuddy$rk2gOXmp
I found this:
https://github.com/raphw/byte-buddy/issues/486
Could it be somehow related to ByteBuddy? I know that Spring Boot now supports Java 11 for the first time.
This is how I define my test mocks.. used to work perfectly:
@Bean
fun myService() = mockk<MyService>(relaxed = true)
reik.schatz
03/11/2019, 10:01 AM@Value("\${test.user.count.under.test:6}")
var testUserCountUnderTest: Int = 6
Jonas Bark
03/15/2019, 2:16 PMoleksiyp
03/15/2019, 10:33 PMlex
03/18/2019, 3:53 AMqwert_ukg
03/19/2019, 10:11 AMThread.sleep(1000)
and start second part of test, right directly after launch will be complited?xenoterracide
03/19/2019, 8:15 PMinterface InserterPacket100hz {
fun myInsertAll(list: Collection<Packet100hz> )
}
interface Packet100hzRepo: CrudRepository<Packet100hz, RFID>, InserterPacket100hz
@Repository
internal class Packet100HzInsertImpl(private val jdbc: JdbcTemplate): InserterPacket100hz {
override fun myInsertAll(list: Collection<Packet100hz>) {
var sql = "INSERT INTO packet_100hz_secure (rfid, pressure_signal, uo_pressure, chamber_pressure, ultrasonic_signal, \"timestamp\") VALUES "
for (packet100hz in list) {
// 6 cols
sql += "(?, ?, ?, ?, ?, ?)\n" // maybe should use string builder
}
val inserts = list.flatMap {
listOf(
it.rfid.rfid,
it.pressureSignal,
it.uoPressure,
it.chamberPressure,
it.ultrasonicSignal,
it.rfid.timestamp
)
}.toTypedArray()
jdbc.update( sql, inserts )
}
}
Caused by: org.springframework.data.mapping.PropertyReferenceException: No property myInsertAll found for type Packet100hz!
… well no duh spring… trying to do a custom repository implementation, anyone know what I’m doing wrong?sdeleuze
03/27/2019, 8:13 AMFunction1
to Function22
) to acheive reflection-less injection of parameters by type?Czar
03/27/2019, 10:40 AMvar
, which is JDK10+ feature, while there is this in build.gradle.kts:
tasks.compileJava {
sourceCompatibility = "1.8"
targetCompatibility = "1.8"
}
How does this work? My IntelliJ is swearing at me 🙂Czar
03/27/2019, 10:40 AMvar
, which is JDK10+ feature, while there is this in build.gradle.kts:
tasks.compileJava {
sourceCompatibility = "1.8"
targetCompatibility = "1.8"
}
How does this work? My IntelliJ is swearing at me 🙂christophsturm
03/27/2019, 10:47 AMCzar
03/27/2019, 10:51 AMchristophsturm
03/27/2019, 10:54 AMJavaVersion sourceCompatibility
Java version compatibility to use when compiling Java source. Default value: version of the current JVM in use JavaVersion.
Czar
03/27/2019, 11:01 AMchristophsturm
03/27/2019, 12:04 PMsdeleuze
03/27/2019, 2:44 PM