This file contains hidden or 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
$ mvn clean install | |
$ java -jar target/*.jar // will start on 8080, with --port=<PORT> you can customize | |
$ curl http://localhost:8080/greeting?name=Zoltan | |
$ Hello Zoltan |
This file contains hidden or 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
server.port: ${port:8080} |
This file contains hidden or 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
$ heroku login | |
$ heroku keys:add ~/.ssh/id_rsa.pub |
This file contains hidden or 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
web: java $JAVA_OPTS -jar target/*.jar |
This file contains hidden or 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
$ heroku create // automatically adds a git remote named “heroku” | |
$ git push heroku master | |
$ heroku logs // check if the application starts up successfully |
This file contains hidden or 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
$ git clone https://github.com/altfatterz/spring-boot-heroku.git |
This file contains hidden or 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
<dependency> | |
<groupId>javax.xml.bind</groupId> | |
<artifactId>jaxb-api</artifactId> | |
<version>2.2.7</version> | |
</dependency> | |
<dependency> | |
<groupId>com.sun.xml.bind</groupId> | |
<artifactId>jaxb-impl</artifactId> | |
<version>2.2.7</version> | |
</dependency> |
This file contains hidden or 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
<?xml version="1.0" encoding="UTF-8"?> | |
<xs:schema elementFormDefault="qualified" | |
targetNamespace="http://www.backbase.com/ns/widgets" | |
xmlns:bb="http://www.backbase.com/ns/widgets" | |
xmlns:xs="http://www.w3.org/2001/XMLSchema"> | |
<!-- widget definition root element --> | |
<xs:element name="widget" type="bb:widgetType"/> | |
<!-- widget definition data types --> |
This file contains hidden or 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
@XmlAccessorType(XmlAccessType.FIELD) | |
public class WidgetResourceRef { | |
@XmlAttribute | |
private String type; | |
@XmlAttribute | |
private String src; | |
/** Default constructor, needed for JAXB framework */ |
This file contains hidden or 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
@XmlRootElement(name = "widget", namespace = "http://www.backbase.com/ns/widgets") | |
@XmlAccessorType(XmlAccessType.FIELD) | |
public class WidgetConfig { | |
@XmlElementWrapper(name = "resources", namespace = "http://www.backbase.com/ns/widgets") | |
@XmlElement(name = "resource", namespace = "http://www.backbase.com/ns/widgets") | |
private List<WidgetResourceRef> widgetResourceRefs; | |
public WidgetConfig() { | |
widgetResourceRefs = new ArrayList<>(); |