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 HelloYaml { | |
@SuppressWarnings("unchecked") | |
public static void main(String[] args) throws FileNotFoundException { | |
Yaml yaml = new Yaml(); | |
System.out.println(yaml.dump(yaml.load(new FileInputStream(new File( | |
"hello_world.yaml"))))); | |
Map<String, Map<String, String>> values = (Map<String, Map<String, String>>) yaml | |
.load(new FileInputStream(new File("hello_world.yaml"))); |
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
development: | |
adapter: mysql | |
database: project_development | |
username: root | |
password: | |
socket: /tmp/mysql.sock |