hho
12/11/2017, 11:34 AMlex
12/27/2017, 3:44 AMdariuszbacinski
01/10/2018, 3:45 PMfun <T> anyObject(): T {
Mockito.any<T>()
return uninitialized()
}
private fun <T> uninitialized(): T = null as T
Sola
01/17/2018, 8:46 AM@RestController
@Configuration
works fine for medstarcev
01/17/2018, 10:42 AM./gradlew bootRun
, but still fails when I start it from IDEAmegax
01/17/2018, 6:57 PM@Around(" execution(hu..web.sync.controller.SomeController *(..))")
fun auditInfo(joinPoint: ProceedingJoinPoint) {/*never arrive here*/}
dharrigan
01/18/2018, 11:29 AMplugins {
val kotlinVersion = "1.2.20"
val springBootVersion = "1.5.9.RELEASE"
val springDependencyManagementVersion = "1.0.4.RELEASE"
idea
kotlin("jvm") version kotlinVersion
id("io.spring.dependency-management") version springDependencyManagementVersion
id("org.jetbrains.kotlin.plugin.spring") version kotlinVersion
id("org.springframework.boot") version springBootVersion
}
Jacol
01/24/2018, 11:27 AMC:\Program Files\Java>java -version
java version "1.8.0_161"
Java(TM) SE Runtime Environment (build 1.8.0_161-b12)
Java HotSpot(TM) 64-Bit Server VM (build 25.161-b12, mixed mode)
C:\Program Files\Java>echo %JAVA_HOME%
C:\Program Files\Java\jdk1.8.0_161
2. my gradle
buildscript {
ext {
kotlinVersion = '1.2.10'
springBootVersion = '2.0.0.M7'
}
repositories {
mavenCentral()
maven { url "<https://repo.spring.io/snapshot>" }
maven { url "<https://repo.spring.io/milestone>" }
}
dependencies {
classpath("org.springframework.boot:spring-boot-gradle-plugin:${springBootVersion}")
classpath("org.jetbrains.kotlin:kotlin-gradle-plugin:${kotlinVersion}")
classpath("org.jetbrains.kotlin:kotlin-allopen:${kotlinVersion}")
}
}
apply plugin: 'kotlin'
apply plugin: 'kotlin-spring'
apply plugin: 'eclipse'
apply plugin: 'org.springframework.boot'
apply plugin: 'io.spring.dependency-management'
group = 'pl.app'
version = '0.0.1-SNAPSHOT'
sourceCompatibility = 1.8
compileKotlin {
kotlinOptions.jvmTarget = "1.8"
}
compileTestKotlin {
kotlinOptions.jvmTarget = "1.8"
}
repositories {
mavenCentral()
maven { url "<https://repo.spring.io/snapshot>" }
maven { url "<https://repo.spring.io/milestone>" }
}
dependencies {
compile('org.springframework.boot:spring-boot-starter-data-jpa')
compile('org.springframework.boot:spring-boot-starter-web')
compile('org.springframework.boot:spring-boot-starter-webflux')
compile("org.jetbrains.kotlin:kotlin-stdlib-jre8")
compile("org.jetbrains.kotlin:kotlin-reflect")
runtime('com.h2database:h2')
testCompile('org.springframework.boot:spring-boot-starter-test')
testCompile('io.projectreactor:reactor-test')
}
Pawel Urban
01/24/2018, 11:38 AM./gradlew eclipse
and then open the projectJacol
01/24/2018, 11:46 AMOutdated Kotlin Runtime
Your version of Kotlin runtime in 'Gradle: org.jetbrains.kotlin:kotlin-stdlib:1.1.61' library is 1.1.61-release-68 (1.1.61), while plugin version is 1.2.20-release-IJ2017.3-1.
Runtime library should be updated to avoid compatibility problems.
but this running 🙂fabricio
01/24/2018, 8:21 PMken.siprell
01/26/2018, 3:47 PMBCryptPasswordEncoder
bean to encode passwords, but whenever I create the bean, it breaks authentication. The details are in the repo’s README. Thanks!hho
01/28/2018, 1:38 PMkruczaj
01/29/2018, 4:58 PMlaunch(CommonPool) {
sendNotifications(updatedItemsIds) // fetch data and send notification via WS
}
Any thoughts on that?kruczaj
01/29/2018, 4:59 PM@Async
from Spring if that is better approach.starbuxman
02/04/2018, 6:44 AM@get:Bean val foo=Foo()
chintanshah
02/05/2018, 7:33 AM@RequestParam("size", required = false) size: Int = 5
does not give size
a default value?dstarcev
02/06/2018, 11:12 AM./gradlew build
?Martin Schwitalla
02/08/2018, 6:39 PMMartin Schwitalla
02/08/2018, 7:01 PMKaj
02/08/2018, 7:38 PMResponseEntity
specifically?dh44t
02/09/2018, 10:41 AMfitzoh
02/12/2018, 2:20 PMsdeleuze
02/13/2018, 10:57 AMbkenn
02/13/2018, 8:29 PMCaused by: java.lang.IllegalArgumentException: Not a managed type: class com.github.bkenn.jpafx.model.Vendor
exception.leodeng
02/14/2018, 8:14 PM@Autowired lateinit var dependency: Dependency
sdeleuze
02/15/2018, 8:47 AM@ConfigurationProperties("foo")
class FooProperties {
lateinit var foo1: String
lateinit var foo2: String
lateinit val bar = Bar()
class Bar {
lateinit var bar1: String
lateinit var bar2: String
}
}
sdeleuze
02/15/2018, 11:11 AMkenkyee
02/15/2018, 11:19 AMPere Casafont
02/26/2018, 3:11 AM?
? I use lateinit with non primitives, but I'm kind of uncomfortable having to initialize my ids to 0 or -1