rawtoast
02/26/2018, 5:11 PMsendilkumarn [JHipster]
02/26/2018, 10:31 PMhho
03/01/2018, 9:52 AM@JsonCreator
annotationfred.deschenes
03/01/2018, 3:16 PMOptional
that is not present?sendilkumarn [JHipster]
03/01/2018, 4:22 PMpoohbar
03/01/2018, 8:12 PMval
. Thankssdeleuze
03/13/2018, 10:04 AMNikartix
03/14/2018, 8:36 AMorg.reflections.ReflectionsException: could not create Vfs.Dir from url, no matching UrlType was found [file:/usr/lib/jvm/java-8-openjdk-amd64/jre/lib/ext/libatk-wrapper.so]
I read it's nothing too serious, application is working fine. But why is it there ? How can I disable this warning ?poohbar
03/16/2018, 1:13 PMContext A starts
Test A1 runs
Test A2 runs
Context B starts
Test B1 runs
Test B2 runs
Context A starts
Test A3 runs
Is this the expected behaviour? I was expecting Spring Boot to "group" the tests by context, but I guess it's just running in whatever order JUnit decided?bjartek
03/18/2018, 8:39 PMmp
03/19/2018, 1:04 PM@EnableKafka
@EnableAsync
@Configuration
class KafkaConfig<T>(
@Autowired val objectMapper: ObjectMapper,
@Value("\${kafka.bootstrap-servers}") val bootstrapServers: String,
@Value("\${kafka.consumer.group-id}") val groupId: String,
@Value("\${kafka.consumer.auto-offset-reset}") val autoOffsetReset: String
) {
@Bean
fun consumerFactory(): ConsumerFactory<String, T> = DefaultKafkaConsumerFactory(
consumerConfigs(),
JsonDeserializer(String::class.java, objectMapper),
JsonDeserializer(T::class.java, objectMapper)
)
}
So issue is - T as non a expression can`t provide ::class.java value
Can any one help with documentation topic what I should start from?goddey
03/21/2018, 3:25 PMBigDecimal
properties are saved in mongo as String
. Is this a known issue? I didn’t find anything on it when I googled.m
03/21/2018, 7:05 PM@NotNull
) ?Mario Ruiz
03/28/2018, 3:32 PMMichael
04/03/2018, 4:40 PM@field:
poohbar
04/05/2018, 6:59 PM@ConfigurationProperties
as part of its Spring supportziggy42
04/06/2018, 11:35 AMJpaRepository
solved?yaakov
04/06/2018, 8:05 PMsdeleuze
04/07/2018, 3:24 PMMichael
04/09/2018, 9:13 PMsdeleuze
04/10/2018, 10:17 AMLucas
04/10/2018, 2:19 PMWebTestClient
instance?
For example, instead of writing
client.get()
.uri {
it.path("/get")
.queryParam("name", "John Smith")
.queryParam("age", 45)
.queryParam("isCanadian", true)
.build()
}
.exchange()
.expectStatus().isOk
.expectBody()
.jsonPath("$.person").exists()
Write something like
client.get()
.uri("/get") {
+queryParam("name" to "John Smith")
+queryParam("age" to 45)
+queryParam("isCanadian" to true)
}
.exchange()
.expectStatus().isOk
.expectBody()
.jsonPath("$.person").exists()
Joe
04/11/2018, 6:18 PMCould not autowire. No beans of '' type found.
when using DSL bean definition?mp
04/11/2018, 9:48 PM@Configuration
class KafkaConfigurator(
@Value("\${kafka.bootstrap-servers}") val bootstrapServers: String,
@Value("\${kafka.consumer.group-id}") val groupId: String,
@Value("\${kafka.consumer.auto-offset-reset}") val autoOffsetReset: String,
@Autowired val objectMapper: ObjectMapper
) {
//bla bla bla, few more beans
@Bean
@Qualifier("producerConfigs")
fun producerConfigs() = HashMap<String, Any>().apply { //values }
@Bean
@Qualifier("consumerConfigs")
fun consumerConfigs() = HashMap<String, Any>().apply { //values }
}
and I`m using it in 2 modules: one written on koltin+spring (1.5.12). here injections looks like
@EnableKafka
@EnableAsync
@Configuration
class KafkaConfig(
@Autowired val stringJsonMessageConverter: StringJsonMessageConverter,
@Autowired @Qualifier("producerConfigs") val producerConfigs: Map<String, Any>,
@Value("\${kafka.topics.companies}") val companiesTopic: String,
@Value("\${kafka.topics.customers}") val customersTopic: String
)
and another written on java+spring (1.5.12). here injections looks like
public class Application extends ResourceServerConfigurerAdapter {
@Autowired
@Qualifier("producerConfigs")
Map<String, Object> producerConfigs;
@Autowired
StringJsonMessageConverter messageConverter;
}
so issue is that on injection to kotlin module - I have correct map with values that I want to get.
But on injection to the java module I got map with key "producerConfigs" and value that contains map that I exactly need.
wdyt - should it be reported some were to the spring github or something another?andyb
04/15/2018, 10:22 AMval query = Query(Criteria.where("teams.players.playerId").`is`(playerId))
val update = Update()
with(update) {
set("teams.$.players.$.name", player.name)
...
This fails as the '$' can only be used once to refer to the index in the players array, I need a way to generate the equivalent '$' for the index in the teams array. Any ideas for this Mongo newbie?sdeleuze
04/17/2018, 1:46 PM@Autowired
injection and show how to do integrations tests and mocked tests.poohbar
04/18/2018, 4:09 PMmp
04/18/2018, 4:13 PMpoohbar
04/18/2018, 4:50 PM@PostMapping
so it won't use Jackson at all. Can Spring bind form data to Kotlin data class?visakha
04/19/2018, 12:59 PM@Component
@ConfigurationProperties()
class PropHldr {
companion object {
@Value("\${sipPropFiles}")
lateinit var sipPropFile: String
}
}
visakha
04/19/2018, 12:59 PM@Component
@ConfigurationProperties()
class PropHldr {
companion object {
@Value("\${sipPropFiles}")
lateinit var sipPropFile: String
}
}
tginiotis
04/19/2018, 1:08 PMAutowireCapableBeanFactory
from somewhere, e.g. by dependency injection or during SpringApplication
setup and call beanFactoryInstance.autowireBean(PropHldr.Companion)
visakha
04/19/2018, 1:23 PM@Value("\${sipPropFile}")
read from the application.properties file..... the below is also not working @Configuration()
class Routing {
@Value("\${sip.sipPropFile}")
lateinit var sipPropFile: String
Czar
04/19/2018, 1:27 PMvisakha
04/19/2018, 1:29 PMtginiotis
04/19/2018, 1:32 PMUsing the @Value annotation
headingvisakha
04/19/2018, 1:55 PM@PropertySource("classpath:application.properties")
did the trick 🙂@Configuration
annotation -- btw I was running the JUnit5 test case, this is where it originatedtginiotis
04/19/2018, 2:01 PM