ziggy42
05/28/2018, 8:23 AMziggy42
05/28/2018, 8:23 AMziggy42
05/28/2018, 8:39 AMziggy42
05/28/2018, 8:39 AMequals
and hashCode
in the abstract class workedziggy42
05/28/2018, 8:39 AMlewik
06/03/2018, 5:26 PMHamza
06/05/2018, 3:48 PMcodemwnci
06/10/2018, 2:57 PMapplication.properties
, but this fails. I am using
@Value("\${application.secret:}")
lateinit var jwtSecret: String
but this fails to initialise the secret from the application properties. I am not sure if I am missing another annotation to tell Spring to scan this particular kotlin file, but I couldnt find anything when searching.Czar
06/10/2018, 3:15 PM@Value("\${application.secret:}")
lateinit var jwtSecret: String
what is this in? class, object, top-level?codemwnci
06/10/2018, 3:16 PMcodemwnci
06/10/2018, 3:16 PMcodemwnci
06/10/2018, 3:16 PMcodemwnci
06/10/2018, 3:17 PMcodemwnci
06/10/2018, 3:26 PMdh44t
06/11/2018, 12:26 AM@Bean
function inside a @Configuration
class that returns the Objectjtravis
06/12/2018, 9:39 PM@Nullable
. Thus I now get a ton of warnings for things that never expect null to be returned. Is there some commonly used alternative now?kenkyee
06/12/2018, 10:11 PMjtravis
06/12/2018, 10:29 PMjtravis
06/12/2018, 10:30 PM!!
everywhere, or write my own KdbcTemplate
which conforms to the usage.jtravis
06/12/2018, 10:30 PMkenkyee
06/12/2018, 11:16 PMjtravis
06/13/2018, 2:08 AMjtravis
06/13/2018, 2:08 AM@Nullable
, then Kotlin expects that it can return null at any time.jtravis
06/13/2018, 2:09 AM<T> T execute(String sql, PreparedStatementCallback<T> action) throws DataAccessException;
jtravis
06/13/2018, 2:09 AMexecute
jtravis
06/13/2018, 2:10 AMfun <T> execute(sql: String, action: (PreparedStatement) -> T) : T {
jtravis
06/13/2018, 2:10 AMjtravis
06/13/2018, 2:11 AMaction
callback..jtravis
06/13/2018, 5:16 AMorg.springframework.jdbc.core.JdbcOperationsExtensions
, written by Mario Arias which seems to try to solve some of this issue, but it is not fully adequate for me in handling nulls.Czar
06/13/2018, 8:35 AM