Gerard Klijs
08/05/2018, 7:33 PMdeinspanjer
08/06/2018, 2:19 PMdeinspanjer
08/08/2018, 12:11 PM@NoArg
to their data class, but no information on what other setup is needed to get that to workluke
08/30/2018, 7:24 PMScott Shidlovsky
09/05/2018, 4:50 PMdata class NameRequest(@field:NotNull val firstName: String, @field:NotNull val lastName: String)
But when making the request, I get a 500 server error. java.lang.IllegalArgumentException: Parameter specified as non-null is null: method NameRequest.<init>, parameter firstName", Do all fields have to be marked nullable? I used the spring starter for kotlin which contains the kotlin-jackson dependency.sdeleuze
09/13/2018, 9:27 PMwakingrufus
09/13/2018, 10:57 PMsaunaCat
09/17/2018, 8:46 AMLonwabo
09/21/2018, 7:01 AMfabricio
09/26/2018, 12:21 PM@GetMapping
fun getIdentities(payload: IdentitySearchRequest, pageable: Pageable) =
service.searchProcess(payload, pageable)
I`m trying to map the query string of this request to that class. But it doesn`t work. Any idea? Its spring bootsdeleuze
10/02/2018, 2:39 PMdarych
10/05/2018, 9:06 AMs1m0nw1
10/08/2018, 12:25 PM@MockKBean
annotation (esp. the corresponding processor) that works with MockK instead of Mockito?veiset
10/09/2018, 1:17 PMjasper
10/13/2018, 2:27 AMorangy
10/13/2018, 3:09 PMlex
10/15/2018, 4:39 AMTristan Caron
10/16/2018, 2:29 PM@Component
@ConfigurationProperties
@PropertySource("classpath:app.properties")
class AppProperties {
lateinit var mongoUri: String
lateinit var manticoreEndpoint: String
lateinit var manticorePlatform: String
lateinit var manticoreUsername: String
lateinit var manticorePassword: String
lateinit var internalToken: String
}
My properties look like
mongo-uri=""
mantictore-endpoint=""
I also added @EnableConfigurationProperties
.
I missed something? Thanks for your help.christophsturm
10/18/2018, 10:18 AMsdeleuze
10/18/2018, 10:27 AMhttps://www.youtube.com/watch?v=AnIouYdwxo0▾
corneil
10/18/2018, 11:05 AMGleb Stsenov
10/19/2018, 10:05 AMfabricio
10/22/2018, 3:04 PMcom.example.api.LoginEvent
, problem: kotlin/jvm/internal/Intrinsics
does anyone know why this error?mp
10/23/2018, 10:11 AMUdit003
10/24/2018, 2:36 PMfun serveRequest(response :HttpServletRes) : ResponseObject? {
if(condition_satisfied) {
response.status = HttpServletResponse.SC_MOVED_PERMANENTLY
response.sendRedirect("/new_path")
return null
} else {
return Responsebject()
}
}
This gives me 2 problems :
1. even if the response status is explicitly set 301 , it returns 302
2. The code looks a bit "hacky" to me, getting a feeling that better code can be possible.avolkmann
10/30/2018, 1:35 AMCould not find org.jetbrains.kotlin:kotlin-spring
in gradle? I followed the docs here: https://kotlinlang.org/docs/reference/compiler-plugins.htmldmulligan
11/01/2018, 3:11 PMList
to a Page
using Pageable
? My understand of PageImpl(List<T> content, Pageable pageable, long total)
is that it does not slice up the list content as was requested in Pageable
. It also does not apply the Pageable.sort
to the content list.dmulligan
11/01/2018, 3:11 PMfun <T> List<T>.toPage(pageable : Pageable) : Page<T> {
val content = when {
(pageable.offset < size) -> subList(pageable.offset, minOf(pageable.offset + pageable.pageSize, size))
else -> emptyList()
}
return PageImpl(content, pageable, size.toLong())
}
thanksforallthefish
11/02/2018, 3:50 PMKotlinCopyMethod.java
) I get a call to this method
private static Optional<Method> findSyntheticCopyMethod(Class<?> type) {
return Arrays.stream(type.getDeclaredMethods()) //
.filter(it -> it.getName().equals("copy$default") //
&& Modifier.isStatic(it.getModifiers()) //
&& it.getReturnType().equals(type))
.filter(Method::isSynthetic) //
.findFirst();
}
but type.getDeclaredMethods()
contains public static Masterplan Masterplan.copy-Tarbdzk$default(Masterplan,java.lang.Integer,java.lang.String,java.lang.String,java.lang.String,java.lang.String,int,java.lang.Object)
-> Tarbdzk
????sdeleuze
11/05/2018, 8:59 AMsdeleuze
11/05/2018, 8:59 AMjacob
11/05/2018, 10:14 AMsdeleuze
11/05/2018, 10:15 AMjacob
11/05/2018, 10:36 AM