kenkyee
09/14/2017, 1:09 PMsdeleuze
09/14/2017, 1:10 PMsdeleuze
09/14/2017, 1:10 PMsdeleuze
09/14/2017, 1:11 PMsdeleuze
09/14/2017, 1:12 PMfitzoh
09/14/2017, 5:18 PMfitzoh
09/14/2017, 5:18 PMfitzoh
09/14/2017, 5:18 PMcf:
apiHost: <myapi>
organization: <myorg>
refreshToken: <from ~/.cf/config.json>
idmVersion: 3.4.13-SNAPSHOT
zuulVersion: 4.0.1-SNAPSHOT
services:
idm:
dockerTag: idmtag
mavenVersion: idmversion
path: idmpath
zuul:
dockerTag: zuultag
mavenVersion: zuulversion
path: zuulpath
mobius:
dockerTag: mobtag
mavenVersion: mobversion
path: mobpath
inpower:
dockerTag: inpowertag
mavenVersion: inpowerversion
path: inpowerpath
fitzoh
09/14/2017, 5:19 PMfitzoh
09/14/2017, 5:19 PM@Configuration
@ConfigurationProperties("cf")
class CfProperties {
lateinit var apiHost: String
lateinit var organization: String
lateinit var refreshToken: String
lateinit var zuulVersion: String
lateinit var idmVersion: String
lateinit var services: ServiceVersion
}
class ServiceVersions {
lateinit var idm: ServiceVersion
lateinit var zuul: ServiceVersion
lateinit var mobius: ServiceVersion
lateinit var inpower: ServiceVersion
}
class ServiceVersion {
var dockerTag: String? = null
get() = field.orNullIfBlank()
var mavenVersion: String? = null
get() = field.orNullIfBlank()
var jarPath: String? = null
get() = field.orNullIfBlank()
private fun String?.orNullIfBlank() = if (this.isNullOrBlank()) null else this
}
fitzoh
09/14/2017, 5:19 PMsdeleuze
09/15/2017, 7:53 AMfitzoh
09/15/2017, 12:43 PMsdeleuze
09/15/2017, 12:43 PMsdeleuze
09/15/2017, 4:29 PMpavel
09/19/2017, 2:54 AMsdeleuze
09/19/2017, 10:02 AMdavicdsalves
09/20/2017, 7:26 PM@Component
class MessageService(private val messageSource : MessageSource) {
fun getMessage(id: String, vararg params: String) : String {
val locale = LocaleContextHolder.getLocale()
return messageSource.getMessage(id, arrayOf(params), id, locale)
}
}
When called like this, where cardNumber is String:
val message = messageService.getMessage(messageKey, cardNumber)
the result message: your card number: [Ljava.lang.String;@6b25306c
But if I change to use the spread operator,
return messageSource.getMessage(id, arrayOf(*params), id, locale)
it outputs the actual value of cardNumber. Why?davicdsalves
09/20/2017, 7:32 PMdancancro
09/20/2017, 11:29 PM@Lob
@Column(name = "jhi_body", nullable = false)
var body: String = "",
I get errors like:
ERROR 6245 --- [ XNIO-2 task-9] o.h.engine.jdbc.spi.SqlExceptionHelper : Bad value for type long : This is a long text value that I want to save
dancancro
09/21/2017, 12:08 AMorg.hibernate.annotations.Type
annotationCzar
09/26/2017, 9:56 AMbuildscript {
repositories {
jcenter()
maven(url = "<https://repo.spring.io/milestone>")
maven(url = "<https://repo.spring.io/libs-milestone>")
maven(url = "<https://plugins.gradle.org/m2/>")
}
// ...
}
When I try to switch my kotlin version from 1.1.50 to 1.2-M2, I get following error from gradle:
Could not GET '<https://repo.spring.io/libs-milestone/org/jetbrains/kotlin/kotlin-gradle-plugin/1.2-M2/kotlin-gradle-plugin-1.2-M2.pom>'. Received status code 401 from server: Unauthorized Enable Gradle 'offline mode' and sync project
I don't know if it's a Gradle or Spring issue.sdeleuze
09/26/2017, 12:23 PMsdeleuze
09/26/2017, 12:26 PMsdeleuze
09/26/2017, 12:27 PMsdeleuze
09/26/2017, 12:27 PMCzar
09/26/2017, 12:27 PMsdeleuze
09/26/2017, 12:27 PMsdeleuze
09/26/2017, 12:28 PMCzar
09/26/2017, 12:29 PM