This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
val accountMono : Mono<Account> = Mono.just(Account(1, "admin")) | |
val accountMono : Mono<Account> = Account(1, "Admin").toMono() | |
// Type Inference | |
val accountMono = Account(1, "Admin").toMono() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
spring: | |
jackson: | |
default-property-inclusion: NON_NULL |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package kr.co.redbrush.microservice.app.data | |
import com.fasterxml.jackson.annotation.JsonInclude | |
@JsonInclude(JsonInclude.Include.NON_NULL) | |
data class Account(var id: String = "", var password: String = "", var telephone: Telephone? = null) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Enable JPA Auditing in Configuration | |
@Configuration | |
@EnableTransactionManagement | |
@EnableJpaRepositories | |
@EnableJpaAuditing | |
public class PersistenceConfig { ... } | |
@Entity | |
@EntityListeners(AuditingEntityListener.class) | |
public class Bar { ... } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@Entity | |
@EntityListeners(AuditingEntityListener.class) | |
public class Bar { | |
//... | |
@Column(name = "created_by") | |
@CreatedBy | |
private String createdBy; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@Entity | |
@EntityListeners(AuditingEntityListener.class) | |
public class Bar { | |
//... | |
@Column(name = "created_date", nullable = false, updatable = false) | |
@CreatedDate | |
private long createdDate; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class SecurityConfig extends WebSecurityConfigurerAdapter { | |
... | |
@Override | |
public void configure(HttpSecurity httpSecurity) throws Exception { | |
httpSecurity.authorizeRequests() | |
.antMatchers("/login/**").permitAll() | |
.antMatchers("/login").permitAll() | |
.antMatchers("/h2/**").permitAll() // here | |
.antMatchers("/**").authenticated() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// TODO : TIPSTER example | |
$("input[name='" + key + "']").not(":hidden").tooltipster({ | |
theme: 'tooltipster-noir', | |
side: 'right', | |
trigger: 'custom', | |
triggerClose: { | |
mouseleave: false, | |
originClick: true, | |
touchleave: false | |
}, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@Configuration | |
@Slf4j | |
public class RestTemplateConfig { | |
@Value("${restTemplate.timeout.msec:5000}") | |
private int timeoutInMillisecond; | |
@Bean | |
public HttpComponentsClientHttpRequestFactory httpRequestFactory() { | |
HttpComponentsClientHttpRequestFactory httpRequestFactory = new HttpComponentsClientHttpRequestFactory(); | |
httpRequestFactory.setConnectionRequestTimeout(timeoutInMillisecond); |
NewerOlder