sdeleuze
10/18/2018, 10:08 AMhho
10/18/2018, 10:10 AMcorneil
10/24/2018, 4:41 PMchristophsturm
10/26/2018, 7:28 AMcorneil
10/26/2018, 9:58 AMcorneil
10/26/2018, 9:59 AMcorneil
10/26/2018, 10:00 AM@EnableJpaRepositories
corneil
10/26/2018, 10:01 AMcorneil
10/26/2018, 10:02 AMchristophsturm
10/26/2018, 10:10 AMdeviant
11/02/2018, 3:03 PMSpring Boot 2.x
and JOOQ
in Gradle
project?thanksforallthefish
11/02/2018, 3:41 PMjava.lang.UnsupportedOperationException: Kotlin class Masterplan has no .copy(…) method for property id!
at org.springframework.data.mapping.model.BeanWrapper$KotlinCopyUtil.setProperty(BeanWrapper.java:181) ~[spring-data-commons-2.1.2.RELEASE.jar:2.1.2.RELEASE]
data class Masterplan(
@Id val id: Int? = null,
val description: Description,
val fileUid: FileUid,
val creator: Creator,
val projectUid: ProjectUid
)
probably I am missing some annotation 😞sdeleuze
11/05/2018, 11:05 AMpoohbar
11/05/2018, 4:43 PMconfigure(FAIL_ON_UNKNOWN_PROPERTIES, false)
because that what Spring Boot does.
Now I need the deserializer to fail on unknown property in one specific class.
I tried adding @JsonIgnoreProperties(ignoreUnknown = false)
but it has no effect. Is that a bug?
Does the global setting fully override these annotations?diesieben07
11/05/2018, 7:50 PMDoes the global setting fully override these annotations?If it's set to
false
globally, the annotation cannot override that.
You can use ObjectMapper#copy
though and configure the copied mapper differentlysdeleuze
11/09/2018, 8:18 AMorangy
I’ve managed to go further. Indeed this issue has nothing to do with Kotlin.See comments
sdeleuze
11/09/2018, 1:45 PMsdeleuze
11/15/2018, 11:06 AMTristan Caron
11/29/2018, 2:52 PMInvalid CORS request
with the fellowing configuration
@Configuration
@EnableWebMvc
class WebConfig : WebMvcConfigurer {
override fun addCorsMappings(registry: CorsRegistry) {
registry
.addMapping("/**")
}
}
I am using Spring Boot 2.1.0.RELEASE
with Kotlin 1.3.10
, do you have an idea of what I could be doing wrong?sdeleuze
11/29/2018, 4:44 PMDefaultCorsProcessor
to understand why this is considered as an invalid CORS request?Tristan Caron
11/29/2018, 4:57 PM<http://locahost:4200>
is able to connect to <http://localhost:8080>
which is my API. But when I deploy it on staging, it's not working. How can I get more information about the invalid CORS?bdeg
11/29/2018, 5:51 PMtjb
12/02/2018, 7:47 AMoauth2
with spring boot 2
and i am getting the following error from the /oauth/token
endpointtjb
12/02/2018, 7:47 AMerror_description": "Full authentication is required to access this resource"
tjb
12/02/2018, 7:48 AMtjb
12/02/2018, 7:48 AMtjb
12/02/2018, 7:48 AM2018-12-02 01:53:58.803 WARN 2120 --- [nio-8080-exec-2] o.s.s.c.bcrypt.BCryptPasswordEncoder : Empty encoded password
sdeleuze
12/07/2018, 3:47 PMthanksforallthefish
12/13/2018, 2:26 PM@Embedded
? I am trying to implement auditing and delegation seems to break the behavior (which I understand at some unconscious level I cannot explain)
Basically,
@Embeddable
data class BaseAuditable(
@Column(name = "modified_at")
@LastModifiedDate
var modifiedAt: Date? = Date(),
@ManyToOne(fetch = FetchType.LAZY)
@JoinColumn(name = "modified_by")
@LastModifiedBy
var modifiedBy: Auditor? = null,
@Column(name = "created_at")
@CreatedDate
var createdAt: Date? = null,
@ManyToOne(fetch = FetchType.LAZY)
@JoinColumn(name = "created_by")
@CreatedBy
var createdBy: Auditor? = null
)
@Entity(name = "masterplan")
@EntityListeners(AuditingEntityListener::class)
data class Masterplan(
@Id
@GeneratedValue(strategy = GenerationType.IDENTITY)
val id: Int? = null
) {
@Embedded
var auditable: BaseAuditable = BaseAuditable()
works as I expect, but then I don't have access to masterplan.createdBy
directly