https://kotlinlang.org logo
Docs
Join the conversationJoin Slack
Channels
100daysofcode
100daysofkotlin
100daysofkotlin-2021
advent-of-code
aem
ai
alexa
algeria
algolialibraries
amsterdam
android
android-architecture
android-databinding
android-studio
androidgithubprojects
androidthings
androidx
androidx-xprocessing
anime
anko
announcements
apollo-kotlin
appintro
arabic
argentina
arkenv
arksemdevteam
armenia
arrow
arrow-contributors
arrow-meta
ass
atlanta
atm17
atrium
austin
australia
austria
awesome-kotlin
ballast
bangladesh
barcelona
bayarea
bazel
beepiz-libraries
belgium
berlin
big-data
books
boston
brazil
brikk
budapest
build
build-tools
bulgaria
bydgoszcz
cambodia
canada
carrat
carrat-dev
carrat-feed
chicago
chile
china
chucker
cincinnati-user-group
cli
clikt
cloudfoundry
cn
cobalt
code-coverage
codeforces
codemash-precompiler
codereview
codingame
codingconventions
coimbatore
collaborations
colombia
colorado
communities
competitive-programming
competitivecoding
compiler
compose
compose-android
compose-desktop
compose-hiring
compose-ios
compose-mp
compose-ui-showcase
compose-wear
compose-web
connect-audit-events
corda
cork
coroutines
couchbase
coursera
croatia
cryptography
cscenter-course-2016
cucumber-bdd
cyprus
czech
dagger
data2viz
databinding
datascience
dckotlin
debugging
decompose
decouple
denmark
deprecated
detekt
detekt-hint
dev-core
dfw
docs-revamped
dokka
domain-driven-design
doodle
dsl
dublin
dutch
eap
eclipse
ecuador
edinburgh
education
effective-kotlin
effectivekotlin
emacs
embedded-kotlin
estatik
event21-community-content
events
exposed
failgood
fb-internal-demo
feed
firebase
flow
fluid-libraries
forkhandles
forum
fosdem
fp-in-kotlin
framework-elide
freenode
french
fritz2
fuchsia
functional
funktionale
gamedev
ge-kotlin
general-advice
georgia
geospatial
german-lang
getting-started
github-workflows-kt
glance
godot-kotlin
google-io
gradle
graphic
graphkool
graphql
graphql-kotlin
graviton-browser
greece
grpc
gsoc
gui
hackathons
hacktoberfest
hamburg
hamkrest
helios
helsinki
hexagon
hibernate
hikari-cp
hire-me
hiring
hongkong
hoplite
http4k
hungary
hyderabad
image-processing
india
indonesia
inkremental
intellij
intellij-plugins
intellij-tricks
internships
introduce-yourself
io
ios
iran
israel
istanbulcoders
italian
jackson-kotlin
jadx
japanese
jasync-sql
java-to-kotlin-refactoring
javadevelopers
javafx
javalin
javascript
jdbi
jhipster-kotlin
jobsworldwide
jpa
jshdq
juul-libraries
jvm-ir-backend-feedback
jxadapter
k2-early-adopters
kaal
kafka
kakao
kalasim
kapt
karachi
karg
karlsruhe
kash_shell
kaskade
kbuild
kdbc
kgen-doc-tools
kgraphql
kinta
klaxon
klock
kloudformation
kmdc
kmm-español
kmongo
knbt
knote
koalaql
koans
kobalt
kobweb
kodein
kodex
kohesive
koin
koin-dev
komapper
kondor-json
kong
kontent
kontributors
korau
korean
korge
korim
korio
korlibs
korte
kotest
kotest-contributors
kotless
kotlick
kotlin-asia
kotlin-beam
kotlin-by-example
kotlin-csv
kotlin-data-storage
kotlin-foundation
kotlin-fuel
kotlin-in-action
kotlin-inject
kotlin-latam
kotlin-logging
kotlin-multiplatform-contest
kotlin-mumbai
kotlin-native
kotlin-pakistan
kotlin-plugin
kotlin-pune
kotlin-roadmap
kotlin-samples
kotlin-sap
kotlin-serbia
kotlin-spark
kotlin-szeged
kotlin-website
kotlinacademy
kotlinbot
kotlinconf
kotlindl
kotlinforbeginners
kotlingforbeginners
kotlinlondon
kotlinmad
kotlinprogrammers
kotlinsu
kotlintest
kotlintest-devs
kotlintlv
kotlinultimatechallenge
kotlinx-datetime
kotlinx-files
kotlinx-html
kotrix
kotson
kovenant
kprompt
kraph
krawler
kroto-plus
ksp
ktcc
ktfmt
ktlint
ktor
ktp
kubed
kug-leads
kug-torino
kvision
kweb
lambdaworld_cadiz
lanark
language-evolution
language-proposals
latvia
leakcanary
leedskotlinusergroup
lets-have-fun
libgdx
libkgd
library-development
linkeddata
lithuania
london
losangeles
lottie
love
lychee
macedonia
machinelearningbawas
madrid
malaysia
mathematics
meetkotlin
memes
meta
metro-detroit
mexico
miami
micronaut
minnesota
minutest
mirror
mockk
moko
moldova
monsterpuzzle
montreal
moonbean
morocco
motionlayout
mpapt
mu
multiplatform
mumbai
munich
mvikotlin
mvrx
myndocs-oauth2-server
naming
navigation-architecture-component
nepal
new-mexico
new-zealand
newname
nigeria
nodejs
norway
npm-publish
nyc
oceania
ohio-kotlin-users
oldenburg
oolong
opensource
orbit-mvi
osgi
otpisani
package-search
pakistan
panamá
pattern-matching
pbandk
pdx
peru
philippines
phoenix
pinoy
pocketgitclient
polish
popkorn
portugal
practical-functional-programming
proguard
prozis-android-backup
pyhsikal
python
python-contributors
quasar
random
re
react
reaktive
realm
realworldkotlin
reductor
reduks
redux
redux-kotlin
refactoring-to-kotlin
reflect
refreshversions
reports
result
rethink
revolver
rhein-main
rocksdb
romania
room
rpi-pico
rsocket
russian
russian_feed
russian-kotlinasfirst
rx
rxjava
san-diego
science
scotland
scrcast
scrimage
script
scripting
seattle
serialization
server
sg-user-group
singapore
skia-wasm-interop-temp
skrape-it
slovak
snake
sofl-user-group
southafrica
spacemacs
spain
spanish
speaking
spek
spin
splitties
spotify-mobius
spring
spring-security
squarelibraries
stackoverflow
stacks
stayhungrystayfoolish
stdlib
stlouis
strife-discord-lib
strikt
students
stuttgart
sudan
swagger-gradle-codegen
swarm
sweden
swing
swiss-user-group
switzerland
talking-kotlin
tallinn
tampa
teamcity
tegal
tempe
tensorflow
terminal
test
testing
testtestest
texas
tgbotapi
thailand
tornadofx
touchlab-tools
training
tricity-kotlin-user-group
trójmiasto
truth
tunisia
turkey
turkiye
twitter-feed
uae
udacityindia
uk
ukrainian
uniflow
unkonf
uruguay
utah
uuid
vancouver
vankotlin
vertx
videos
vienna
vietnam
vim
vkug
vuejs
web-mpp
webassembly
webrtc
wimix_sentry
wwdc
zircon
Powered by Linen
spring
  • s

    sdeleuze

    03/28/2019, 9:01 AM
    Also someone suggested that all Kotlin Spring extensions should be
    inline
    for performance reasons (currently only those leveraging reified type parameters are), any thoughts on that?
    d
    • 2
    • 1
  • n

    norricorp

    04/02/2019, 6:47 AM
    @Peter - I agree. I do realise that @sdeleuze is very busy so I will sort this out myself. I am obviously doing something dumb.
    m
    • 2
    • 1
  • v

    vbsteven

    04/02/2019, 10:55 AM
    hey all, this might be a tad off-topic as it's not strictly concerning spring + Kotlin, but does anybody know if there is a way to instantiate a @SpringBootTest once and then have multiple test classes that connect to it?
    c
    m
    • 3
    • 6
  • s

    sdeleuze

    04/12/2019, 8:16 AM
    https://kotlinlang.slack.com/archives/C0BJ0GTE2/p1555056925000900
    👏 4
    d
    t
    • 3
    • 6
  • b

    bjonnh

    04/19/2019, 10:48 PM
    is there a way to do that?
    c
    • 2
    • 2
  • b

    bjonnh

    04/19/2019, 11:59 PM
    https://gist.github.com/bjonnh/1be4b8b063493e90f83c9dc818ded7ac
    c
    • 2
    • 5
  • t

    thiagoretondar

    04/21/2019, 10:34 PM
    hey there! how do you treat information not found in Kotlin? I’m doing
    this.repository.findByIdOrNull
    and when programming in Java I throw a Custom Exception (
    ResourceNotFoundException
    for example). What is a best practice to do this in Kotlin?
    d
    j
    +2
    • 5
    • 7
  • b

    bjonnh

    04/25/2019, 4:12 PM
    I was also missing the dependency management plugin
    c
    s
    • 3
    • 78
  • b

    bjonnh

    04/25/2019, 5:40 PM
    spring-plugin-core:1.2.0 from 2015…
    s
    m
    f
    • 4
    • 19
  • n

    Nezteb

    04/25/2019, 5:50 PM
    Is there a separate Slack group specifically for Spring and all its various components? Or possibly something outside of Slack?
    n
    s
    • 3
    • 3
  • b

    bjonnh

    04/26/2019, 6:17 PM
    https://github.com/bjonnh/gradle-kotlin-spring-debug
    s
    • 2
    • 97
  • b

    bjonnh

    04/26/2019, 8:02 PM
    I have exactly the same problem as stated here: https://stackoverflow.com/questions/51152549/solr-fields-being-mapped-to-array-when-using-kotlin-and-spring-data-solr . Any idea on how to resolve that?
    t
    • 2
    • 6
  • t

    thiagoretondar

    04/30/2019, 12:49 PM
    how do you set a column as
    nvarchar
    ? The project is using
    spring-data-jpa
    . I’ve found some options:
    @Nationalized
    ,
    @Column(columnDefinition = ... )
    ,
    type StringNVarcharType
    Which one?
    :stackoverflow: 1
    c
    d
    • 3
    • 3
  • s

    sp

    05/03/2019, 11:04 AM
    hey guys, I have been writing small tutorial like posts for springboot/webflux in kotlin and wanted to share: https://www.shiveenp.com/2019/04/21/Sending-Multipart-Form-Data-Using-Spring-WebTestClient-md/ any feedback/critique would be appreciated
    h
    j
    • 3
    • 2
  • s

    snowe

    05/03/2019, 7:13 PM
    mostly unrelated to kotlin (we use kotlin in lots of places, but not here currently), but was told I could post the question here to try and get some help. https://stackoverflow.com/questions/55975868/not-a-managed-type-spring-boot-tests
    t
    • 2
    • 6
  • t

    thiagoretondar

    05/07/2019, 6:47 PM
    I have method that returns
    Map<String, String>?
    . This method is in a Custom Implementation for Spring Data Repositories (exactly as described here: https://docs.spring.io/spring-data/jpa/docs/2.1.6.RELEASE/reference/html/#repositories.custom-implementations). My problem: when I
    return urlRequestResult?.value as Map<String, String>?
    (using restTemplate to do the request here) it returns an
    empty LinkedHashMap
    , but if I evaluate it in debug mode it returns
    null
    (as I was expecting when
    urlRequestResult
    is null) Is it a bug or am I doing something wrong here?
    s
    • 2
    • 2
  • s

    snowe

    05/13/2019, 8:08 PM
    this is a mix of a spring/gradle question. with the spring boot gradle plugin, is there anyway to copy the runnable jar to a different location and rename it? I've tried to do it with just a copy task, but that's messy because it depends on the project name. I'd rather just copy the single runnable jar without regex.
    d
    • 2
    • 13
  • a

    ahulyk

    05/16/2019, 12:33 PM
    does kotlin in spring boot support jvmTarget > 1.8 (9/10/11) ?
    m
    s
    • 3
    • 2
  • s

    sdeleuze

    05/16/2019, 1:55 PM
    https://twitter.com/sdeleuze/status/1129021969486307328
    ⭐ 1
    👍 5
    j
    d
    • 3
    • 5
  • a

    adalbert

    05/20/2019, 12:04 PM
    Hi, I am migrating existing small app to spring boot and I'd like ask you a question. I used to use okhttp client to make http request for consuming REST and simple raw request to obtain html. What should be used in general in spring to make http request to obtain html, not some json from REST api. Is RestClient the way to go? The name is confusing.
    s
    • 2
    • 2
  • r

    rodolpho.couto

    05/24/2019, 3:19 PM
    guys, does
    spring-fu
    already support exception handlers with
    WebMvc
    ?
    s
    • 2
    • 1
  • s

    Slackbot

    05/25/2019, 7:54 PM
    This message was deleted.
    m
    a
    • 3
    • 3
  • x

    xenoterracide

    05/29/2019, 4:36 PM
    @Configuration
    @ConfigurationProperties(prefix = "schedule")
    open class ScheduleProperies {
    
        var periodicDump: DumpSchedule? = null
        
        
        open class DumpSchedule {
            /**
             * in seconds
             */
            var interval: Int? = null
            /**
             * in seconds
             */
            var offset: Long? = null
        }
    }
    is it possible to make a Bean out of
    DumpSchedule
    ?
    s
    • 2
    • 1
  • j

    jmfayard

    06/05/2019, 8:53 AM
    t
    • 2
    • 2
  • j

    jmfayard

    06/05/2019, 8:56 AM
    Bug report: After upgrading from Kotlin 1.3.21 to 1.3.31, I cannot do anymore
    if (object == null)
    for java classes like
    org.springframework.data.mongodb.core.query.Criteria
    who redefine
    public boolean equals(Object obj): Boolean
    and forgot the
    @Nullable
    annotation, while the package is marked at
    @NonNullApi
    . Work around:
    if (object === null)
    is working
    k
    • 2
    • 2
  • i

    iex

    06/06/2019, 8:40 AM
    -.kt
    j
    • 2
    • 5
  • p

    projectmoon

    06/06/2019, 10:29 AM
    are there any kotlin extensions for spring data JPA's streaming API that make it use kotlin collection types, or should i just stick with java.util.Stream in kotlin?
    s
    • 2
    • 2
  • m

    Maksim Vlasov

    06/08/2019, 6:17 PM
    to the kotlin-maven-plugin plugin. Could you tell me why it is required?
    h
    • 2
    • 2
  • m

    Marcel Overdijk

    06/12/2019, 4:29 PM
    @sdeleuze until Actuator is officially supported with Kofu, is there a simple workaround to get Actuator working in Kofu app?
    s
    • 2
    • 2
  • a

    alieksie

    06/18/2019, 7:30 AM
    Hi! Was anyone successful to setup local DynamoDB for testing with this manual? 🙂 https://www.baeldung.com/dynamodb-local-integration-tests Preferably with
    Gradle
    • 1
    • 2
Powered by Linen
Title
a

alieksie

06/18/2019, 7:30 AM
Hi! Was anyone successful to setup local DynamoDB for testing with this manual? 🙂 https://www.baeldung.com/dynamodb-local-integration-tests Preferably with
Gradle
Ok, if someone needs, Gradle Kotlin DSL configuration:
val copyDependencies by tasks.creating(Copy::class) {
	from(configurations.testRuntimeClasspath.get()) {
		include("*.dll")
		include("*.dylib")
		include("*.so")
	}
	into("build/libs")
}
val test by tasks.getting(Test::class) {
    useJUnitPlatform { }

	dependsOn(copyDependencies)

	systemProperty("sqlite4java.library.path", "build/libs")
}
that works
View count: 4