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
/** | |
* This configuration helps support for load javax/hibernate validator message by custom key | |
* | |
* @return | |
*/ | |
@Bean | |
public Validator validator() { | |
final LocalValidatorFactoryBean factory = new LocalValidatorFactoryBean(); | |
factory.setValidationMessageSource(messageSource()); | |
return factory; |
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 config | |
import "os" | |
import "log" | |
import "gopkg.in/yaml.v3" | |
const CONFIG_PATH = "/path/to/config.yml" | |
type Config struct { | |
Conn struct { |