sdeleuze
01/25/2017, 9:24 AMyousuf.haque
01/26/2017, 6:13 AMmiha-x64
01/28/2017, 11:23 AMhttpServletResponse.contentType = "application/rss+xml"
and @RequestMapping(produces = arrayOf("application/rss+xml"))
didn't worekd because template resolver sets its own content type.
Any ideas how to override this behavior?aleix
01/28/2017, 5:59 PMmiha-x64
01/28/2017, 6:01 PMaleix
01/28/2017, 6:02 PM@Bean
fun ThymeleafViewResolver thymeleafViewResolver() {
// ...
}
and override the properties there.aleix
01/28/2017, 6:02 PMmiha-x64
01/28/2017, 6:07 PMnimtiazm
01/29/2017, 4:04 PMnimtiazm
01/29/2017, 4:04 PMdh44t
01/29/2017, 4:16 PMdh44t
01/29/2017, 4:16 PMdh44t
01/29/2017, 4:16 PMsdeleuze
01/29/2017, 5:32 PMnetodevel
01/30/2017, 2:25 PMkalmyk
01/30/2017, 7:40 PM*arrayOf
mapping with multiple values in spring
@RequestMapping(value = *arrayOf("/tracking/{retailer}/{carrier}", "/{retailer}/tracking/{carrier}"), method = arrayOf(GET))
fun trackingPageEntryPoint(
@RequestParam mapWithParameters: MutableMap<String, String>,
@PathVariable ("retailer") retailerMoniker: String,
@PathVariable("carrier") carrier: String) {
}
kalmyk
01/30/2017, 7:40 PMyann.cebron
01/31/2017, 8:43 AMherder
02/03/2017, 10:13 AM@ConfigurationProperties
class for me. I have configure the @Bean
method like this:
@Bean
@ConfigurationProperties(prefix = "slugservice.articles", exceptionIfInvalid = true)
fun slugServiceProperties() = SlugServiceProperties()
@Validated
open class SlugServiceProperties @JvmOverloads constructor(@Min(10) var slugSize: Int = 70,
var normalizerForm: Normalizer.Form = Normalizer.Form.NFD)
, but I don't get an exception when I try to start the app. Anyone recognize that? Boot 1.5.1, Kotlin 1.0.6.herder
02/03/2017, 10:14 AM@Validated
annotation in the constructor of the receiving class, but no differencedh44t
02/03/2017, 10:15 AMherder
02/03/2017, 10:16 AMslugSize
property to 5, but nothing happens anywaydh44t
02/03/2017, 10:16 AMherder
02/03/2017, 10:16 AMherder
02/03/2017, 10:17 AMdh44t
02/03/2017, 10:17 AMherder
02/03/2017, 10:17 AMdh44t
02/03/2017, 10:17 AMherder
02/03/2017, 10:17 AM