https://kotlinlang.org logo
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
benchmarks
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
confetti
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
lincheck
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
Title
g

Gunslingor

07/27/2019, 9:17 PM
https://github.com/eugenp/tutorials/blob/master/spring-mvc-kotlin/src/main/kotlin/com/baeldung/kotlin/mvc/ApplicationWebConfig.kt I'm having an issue following that. Not sure where to put it and some of this stuff is depreciated. I've got a REST API in main.kotlin.org.app.web.api.apiController and I'm trying to make main.kotlin.org.app.web.js.jsController; basically my @RestController is working perfectly but I can't seemt o get my HTML/js @Controller to work. I was thinking the view resolver needed to be configured or something? New to kotlin, spring boot and smart IDE development.
https://spring.io/guides/tutorials/spring-boot-kotlin/ I've gone thru this tutorial and others too... basically I think I need to configure a view resolver and I'm not sure how
Giving up... I've tried 4 or 5 frameworks, nothing I do seems to allow spring to server up html, not a thing.
g

gildor

07/28/2019, 2:53 AM
Maybe #spring is better place for this question
c

corneil

07/28/2019, 6:17 AM
Place html files in
src/main/resources/static
You could break it in Web config. Have you added any custom web configuration? PM me
g

Gunslingor

07/28/2019, 2:06 PM
I've kind of come to the conclusion that spring boot and kotlin is great for creating rest APIs but probably terrible for the front end stuff. I'm trying a new approach... before I was attempting to make everything (server, browser, iOS app, android app) with kotlin in a single project... now I'm thinking totally differently... I'm thinking spring boot + kotlin for the rest API, Angular CLI for the browser and probably something just as specialized for the iOs and Android software... all 4 as their own isolated projects.
c

corneil

07/28/2019, 2:10 PM
You be surprised how far you can go with Angular and then doing the manifest and service worker for a PWA.
g

Gunslingor

07/28/2019, 2:15 PM
yeah? I think I've been going about this new project wrong... I'm a more fundamental coder than big package coder, I think C++ over Java for example... I really hate when my application is 500MB in size before I write my first piece of could because of frameworks, that scares the hell out me. But I'm attempting to write this app differently, the modern way... the coolest most ideal way if that makes sense. Kotlin looked cool as hell because it claimed to compile natively to all three platforms, but although it may be possible it doesn't seem practical anymore... too new, not enough packages to expedite, far better ways available to do the certain pieces... this, I'm trying to completely change my approach... am i crazy?
lol
c

corneil

07/28/2019, 2:16 PM
Kotlin Native is still in beta.
By using Kotlin on JVM you will be able to use Graal to create native images.
g

Gunslingor

07/28/2019, 2:18 PM
yeah? I know nothing about graal but will definitely take a look, thanks. In a sea of to many overlapping tools and packages, I tend to try to minimize which I use... trying to break that habit with this app.
c

corneil

07/28/2019, 2:21 PM
Kotlin + Spring will be a new experience but there is a lot of info available. You need to be aware of the difference between Spring WebMVC and Spring WebFlux MVC is based on Java Servlet specification while WebFlux is a reactive framework leveraging Reactive Streams specification. Reactive provide huge scalibity at the cost of some extra work and a slightly different mental model.
The two do not go together.
g

Gunslingor

07/28/2019, 2:22 PM
Spring WebMVC and Spring WebFlux?
c

corneil

07/28/2019, 2:22 PM
Better to start with simple non-reactive stuff like Spring MVC and Spring Data JPA or Spring Data JDBC
The reactive and non-reactive models don't mix.
When you look at samples make sure to determine which they are targeting.
g

Gunslingor

07/28/2019, 2:25 PM
I've had issues with kotlin and gradle, stuff seems to be changing so fast that online document is mostly obsolete. Gradle kts is still kickin my butt. I ended up making the entire rest api very fast with spring boot and kotlin and exposed... should I replace exposed with spring boots DB connector before I get too far? Probably. So hopefully this next phase will work out, two projects, springboot/kotlin and another project for angular cli... then I gotta decide on the mobile apps.
c

corneil

07/28/2019, 2:26 PM
exposed?
g

Gunslingor

07/28/2019, 2:26 PM
kotlin-exposed... started with it before I got into spring, its a kotlin DB connector
was originally thinking this would all be pure kotlin jvm and/or native but that seems impractical now.
c

corneil

07/28/2019, 2:27 PM
Yes it will be easier to stick to an ecosystem, either ktor + exposed or Spring MVC / JDBC / JPA you can also look at jOOQ dependencing on the abstraction you want for your database.
What is the range of technical usecases you want to implement? Ktor and exposed might be able to do the job.
g

Gunslingor

07/28/2019, 2:29 PM
yeah, I was considering ktor+exposed+kotlin-react+kotlin-styled. I'm basically making an rss feeder reader (rome package looks best for that part)... it'll send the parsed feeds to mobel apps and browser
c

corneil

07/28/2019, 2:29 PM
If you want to blow your mind fire up JHipster and let it generate a Spring + Java or Kotlin application
g

Gunslingor

07/28/2019, 2:31 PM
Interesting...
AHhhhhhh!!!!! too many tools!
c

corneil

07/28/2019, 2:31 PM
Kotlin on Android and on JVM is mature and because of a frictionless integration with Java there is a lot of tools available.
The Kotlin DSL for Gradle is still kicking my but and I have been using Gradle since before 1.0
g

Gunslingor

07/28/2019, 2:32 PM
that's good to know, thanks.
wanna take a look at mine 😃???
c

corneil

07/28/2019, 2:33 PM
The learning never stops
g

Gunslingor

07/28/2019, 2:33 PM
yeah, thanks for the help and emmotional support my friend
c

corneil

07/28/2019, 2:34 PM
Shout when you need a shoulder to cry on
g

Gunslingor

07/28/2019, 2:34 PM
will do!