hho
05/28/2018, 8:45 AMMichael
05/30/2018, 3:22 PMannotation class
instead - but is it otherwise the same, a separate class that the annotation class points to? at first I thought maybe I would just put the behavior in the annotation class
- but it seems problematic to extend ConstraintValidator
since that needs to be typed as the annotation type. This is not my usual area, so I’m just kind of trying things.snowe
05/30/2018, 3:33 PMjpa
plugin with MappedSuperclass from a few days ago?TormentedDan
05/30/2018, 10:02 PMrouter {}
does, if there is I can't seem to find the docs. Can anyone here point me in the right direction?pyryjook
06/05/2018, 11:09 AMkotlin-maven-plugin
with all-open
, jpa
, spring
, which works for Maven.
Anyone had similar problem? I’ve been Googling for the issue and found similar errors and solutions for those but none worked for me. My colleague has the same problem.
Thanks in advance!sdeleuze
06/08/2018, 1:08 PMMax Kramer
06/10/2018, 1:28 PMCzar
06/12/2018, 10:26 AMhttps://k62.kn3.net/B/E/A/3/4/7/558.png▾
application {
logging {
logback = logback {
rollingFileAppender(
file = File.createTempFile("mylog", ".txt"),
name = "MY_ROLLING",
pattern = "%d{yyyy-MM}",
fileNamePattern = "%i.gz",
maxFileSize = "2GB",
maxHistory = 11,
totalSizeCap = "1MB",
append = false
)
}
}
}
instead of application {
logging {
logback = logback {
rollingFileAppender(
file = File.createTempFile("mylog", ".txt"),
name = "MY_ROLLING",
pattern = "%d{yyyy-MM}",
fileNamePattern = "%i.gz",
maxFileSize = "2GB",
maxHistory = 11,
totalSizeCap = "1MB",
append = false
)
}
}
}
From this I conclude that JetBrains' Kotlin style formatter is not enabled at all. Which is disappointing if it was a conscious decision.poohbar
06/12/2018, 2:45 PMmichael.barker
06/12/2018, 6:23 PMlewik
06/12/2018, 7:01 PMSackCastellon
06/13/2018, 4:40 PM.../coroutines-webapp
results in a 404 error, the right path is .../coroutine-webapp
sdeleuze
06/14/2018, 10:28 AMtmg
06/21/2018, 6:43 AMid
is the first or last field.
Thanks Alexander!Czar
06/21/2018, 12:43 PMnfrankel
06/23/2018, 10:03 PMrouter
block inside the bean
i can write:
bean {
val personHandler = PersonHandler(ref())
router {
"/person".nest {
GET("/", personHandler::readAll)
GET("/{id}", personHandler::readOne)
}
}
}
it compiles
but the route is not found at runtimetgirard12
06/25/2018, 7:57 AMsdeleuze
06/25/2018, 10:01 PMsdeleuze
06/25/2018, 10:04 PMfitzoh
06/26/2018, 12:17 AMmp
07/03/2018, 10:43 AMname=null
or description=null
, processing fails onto json MissingKotlinParameterException: Instantiation of [simple type, class com.norselab.ivaldi.model.category.Category] value failed for JSON property name due to missing (therefore NULL)
but if missed optional (not description=null, but missed in request from client) field - it instantiated from default value, in the same if missed required field also comes miss json error and status 500, but probably good is to have status 400
Is this expected behavior? Or I have miss configuration or even miss understanding
data class Category(
val externalId: String = UUID.randomUUID().toString(),
val name: String,
val description: String = "",
val parent: String = ""
)
class Controller {
@PostMapping("")
fun createCategory(@RequestBody newCategory: Category) {}
}
or this is bad practicepoohbar
07/04/2018, 6:11 PM<parent>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-parent</artifactId>
<version>2.0.3.RELEASE</version>
<relativePath/>
</parent>
Бежан Александр
07/16/2018, 3:18 PMciferkey
07/16/2018, 6:53 PMsdeleuze
07/20/2018, 4:43 PMcorneil
07/22/2018, 7:44 PMkenkyee
07/23/2018, 6:09 PMavolkmann
07/24/2018, 12:04 PMGabriel Machado
07/27/2018, 5:10 PMlateinit var
or a null initialized val
sendilkumarn [JHipster]
08/02/2018, 1:49 PMfun findAll(pageable: Pageable): Page<AuditEvent> {
return persistenceAuditEventRepository.findAll(pageable)
.map{ auditEventConverter.convertToAuditEvent(it) }
}
return userByEmailFromDatabase
.map { createSpringSecurityUser(login, it) }
.orElseThrow { UsernameNotFoundException("User with email " + login + " was not found in the database") }
What is wrong with the above 2 snippets? Strangely it is working on the IntelliJ but in terminal it fails with the following
kotlin/main/com/mycompany/myapp/service/AuditEventService$findAll$1.class
undeclared type variable: U
Please remove or make sure it appears in the correct subdirectory of the classpath.
Any idea or suggestions?sendilkumarn [JHipster]
08/02/2018, 1:49 PMfun findAll(pageable: Pageable): Page<AuditEvent> {
return persistenceAuditEventRepository.findAll(pageable)
.map{ auditEventConverter.convertToAuditEvent(it) }
}
return userByEmailFromDatabase
.map { createSpringSecurityUser(login, it) }
.orElseThrow { UsernameNotFoundException("User with email " + login + " was not found in the database") }
What is wrong with the above 2 snippets? Strangely it is working on the IntelliJ but in terminal it fails with the following
kotlin/main/com/mycompany/myapp/service/AuditEventService$findAll$1.class
undeclared type variable: U
Please remove or make sure it appears in the correct subdirectory of the classpath.
Any idea or suggestions?lex
08/03/2018, 5:24 AMsendilkumarn [JHipster]
08/03/2018, 8:25 AM.gradlew
in a terminal (command line)lex
08/03/2018, 9:12 AMsendilkumarn [JHipster]
08/03/2018, 11:15 AMlex
08/07/2018, 4:17 AMsendilkumarn [JHipster]
08/07/2018, 4:26 AM