sdeleuze
06/09/2016, 9:53 PMorangy
This new user tried to create multiple posts with links to the same domain (github.com). See the newuser_spam_host_threshold site setting.
orangy
sdeleuze
06/09/2016, 10:19 PMisto
06/10/2016, 4:20 PMsdavids
06/11/2016, 2:37 AM@Before
fun setUp() {
mvc = MockMvcBuilders.webAppContextSetup(context).apply(springSecurity()).build()
}
I get an error of: Type inference failed: Not enough information to infer parameter T in ... Please specify it explicitly
on the apply method.sdavids
06/11/2016, 3:11 AMmvc = MockMvcBuilders.webAppContextSetup(context).apply<DefaultMockMvcBuilder>(springSecurity()).build()
which seems a bit wonky.sdeleuze
06/13/2016, 9:06 AMsupaham
07/02/2016, 4:05 PMjkschneider
07/02/2016, 8:44 PMjkschneider
07/02/2016, 8:44 PMsupaham
07/02/2016, 8:45 PMjkschneider
07/02/2016, 8:46 PM@Bean
open fun kotlinModule() = KotlinModule()
supaham
07/02/2016, 8:52 PMdata class Value(val id: Long, val quote: String)
data class Quote(val type: String, val value: Value)
@SpringBootApplication
open class WrestlerServer : CommandLineRunner {
companion object {
val log = LoggerFactory.getLogger(WrestlerServer::class.java)
@JvmStatic fun main(args: Array<String>) {
SpringApplication.run(WrestlerServer::class.java, *args)
}
}
@Bean
open fun kotlinModule() = KotlinModule()
override fun run(vararg args: String?) {
var restTemplate = RestTemplate()
val quote = restTemplate.getForObject("<http://gturnquist-quoters.cfapps.io/api/random>", Quote::class.java)
<http://log.info|log.info>(quote.toString())
}
}
but it throws
Caused by: com.fasterxml.jackson.databind.JsonMappingException: No suitable constructor found for type [simple type, class com.supaham.wrestler.server.Quote]: can not instantiate from JSON object (missing default constructor or creator, or perhaps need to add/enable type information?)
at [Source: java.io.PushbackInputStream@1f193686; line: 1, column: 2]jkschneider
07/02/2016, 8:53 PMsupaham
07/02/2016, 8:53 PMsupaham
07/02/2016, 8:53 PM:: Spring Boot :: (v1.3.5.RELEASE)
supaham
07/02/2016, 8:54 PMjkschneider
07/02/2016, 8:54 PMcompile 'com.fasterxml.jackson.module:jackson-module-kotlin:2.6.5-2’
supaham
07/02/2016, 8:59 PMjkschneider
07/02/2016, 9:04 PMsupaham
07/02/2016, 9:06 PMsupaham
07/02/2016, 9:06 PMsupaham
07/02/2016, 9:06 PMjkschneider
07/02/2016, 9:06 PMandrewlmurray
07/06/2016, 2:57 AMandrewlmurray
07/06/2016, 2:57 AMandrewlmurray
07/06/2016, 2:57 AMandrewlmurray
07/06/2016, 4:01 AMaaverin
07/07/2016, 9:25 AM