Skip to content

Instantly share code, notes, and snippets.

View aszel's full-sized avatar
🏠
Working from home

Martin Becker aszel

🏠
Working from home
  • Arvato
  • Deutschland
View GitHub Profile
@caprica
caprica / application-properties.yaml
Last active September 7, 2023 20:46
Spring Boot YAML configuration for lists (or arrays) of strings
# For a property in a Spring component like this:
#
# @Value("${property.name}")
# private List<String> values;
#
# Spring will fail to start up with a vague error saying something like
# "Could not resolve placeholder 'property.name' in value "${property.name}"
# even though the property definition is right there in the yaml file
# For example, ordinarily in a yaml file something like this:
@purdrew
purdrew / file_cr_rm.html
Created January 10, 2012 20:15
Example of using the File API to create/remove a file
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta name="viewport" id="viewport" content="width=device-width,height=device-height,initial-scale=1.0,user-scalable=no">
<script src="json2.js" type="text/javascript"></script>
<script src="phonegap.js" type="text/javascript"></script>
<script type="text/javascript">
// invoked when device is ready