Adam Crane
03/16/2021, 1:36 PMDplex
03/19/2021, 4:55 AMnfrankel
03/21/2021, 4:41 PMchavanshashank
03/22/2021, 12:32 PMiamkdblue
03/25/2021, 9:54 AMiamkdblue
03/31/2021, 1:02 PMCaused by: org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'hanaServiceImpl': Unsatisfied dependency expressed through field 'userMappingRepository'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'userMappingRepository' defined in net.broachcutter.repository.UserMappingRepository defined in @EnableJpaRepositories declared on DealerMainApplication: Invocation of init method failed; nested exception is java.lang.NoClassDefFoundError: kotlin/reflect/full/KClasses
nicholasnet
04/06/2021, 12:03 AMsuspend fun test() : Response = coroutineScope {
launch {
doSomething()
}
Response(“pass”)
}
Will doSomething will keep on running in background once Response is returned. I have used async but not launchSlackbot
04/07/2021, 11:26 AMgeepawhill
04/07/2021, 5:00 PMopen fun
instead of fun. As it is a leaf class, I don't understand why this would be so. Any ideas?rajesh
04/07/2021, 10:58 PM2.4.4
which has 2.4.4
vesrion of spring-boot-starter-data-redis
I want to use 2.4.7
version of it and tried following lines but it's not working
implementation("org.springframework.boot:spring-boot-starter-data-redis:2.4.7")
it says
Could not find org.springframework.boot:spring-boot-starter-data-redis:2.4.7.
Required by:
project :
I've also tried adding following line to build.gradle file with no luck
extra["spring-data-redis.version"] = "2.4.7"
Jose Antonio Jimenez
04/08/2021, 2:13 PMrajesh
04/11/2021, 2:53 PMShootingStar
04/14/2021, 5:07 PMLuca Piccinelli
04/15/2021, 7:27 AMLuca Piccinelli
04/16/2021, 6:55 AMTapiwanashe Shoshore
04/16/2021, 12:33 PMGopal S Akshintala
04/17/2021, 8:28 AMThomas
04/19/2021, 8:49 AMNowak
04/19/2021, 2:16 PMMrNiamh
04/20/2021, 8:16 AMiamkdblue
04/25/2021, 2:55 PMrajesh
04/26/2021, 10:51 AM@Transactional
@Modifying(flushAutomatically = true, clearAutomatically = true)
@Query(
"UPDATE posts SET comments_count = comments_count +1 WHERE post_id = :postId RETURNING comments_count",
nativeQuery = true
)
fun incrementCommentCounter(@Param("postId") postId: Long): Int
As i'm using native query with RETURNING
clause, it throws exception as
o.h.engine.jdbc.spi.SqlExceptionHelper : A result was returned when none was expected.
How should i execute this query with spring boot?Luca Piccinelli
04/27/2021, 6:54 AMspring-boot-starter-security
then all the tests of the endpoints fail with 401. Do any of you knows which is the suggested approach to test DSL-defined endpoints when security is in place? Disabling security with annotations doesn't work, as also the tests doesn't use the usual @SpringBootTest annotation, but instead starts the application programmatically. I was searching for a command line argument that disables security, but without any luck :(iamkdblue
04/27/2021, 1:47 PMFleshgrinder
04/27/2021, 8:39 PMmickeelm
04/28/2021, 9:18 AMSangeet Narayan
05/01/2021, 1:26 PMBrian Dilley
05/02/2021, 4:36 AMgradle-api-7.0.jar
in it’s classpath (and bundled in the bootJar)kenkyee
05/02/2021, 11:58 AMHamza GATTAL
05/03/2021, 5:02 PMHamza GATTAL
05/03/2021, 5:02 PMEmil Kantis
05/03/2021, 5:05 PM@get:NotNull
etc. Although I'm not sure why you would need @NotNull
🙂init { require(someStringProperty.isNotEmptyOrBlank()) }
, but that doesn't follow Spring conventions I supposeHamza GATTAL
05/03/2021, 5:07 PMBen
05/03/2021, 7:12 PMthanksforallthefish
05/04/2021, 5:35 AM@NotNull
than having the field not-nullable, it makes for easier and better error message given the stack I use (spring boot, web and validation). @NotNull
generates a validation exception which I can treat as all other validations exceptions, which not-nullable field is a kotlin binding error, which needs special treatment. eg
class SomeApiRepresentation(@get:NotNull aNotNullableField: String?)
the price of course is !!
, but I am not a purist, and in this case !!
is fine with meThomas
05/04/2021, 8:05 AM