GithubHelp home page GithubHelp logo

spring-boot-2-essential-training's Introduction

LinkedIn: Spring Boot 2 Essential Training

Playground for the Spring Boot 2 Essential Training from LinkedIn Learning

Section 1.2: Spring Initializr

The submodules of this project are all Spring Boot applications created with the Spring Initializr. The following starters were used:

The embedded Tomcat (included by the web starter) runs HTTP / port 8080 by default.

Ways to start a Spring Boot jar

During development you will usually start the application (annotated with @SpringBootApplication) in IntelliJ IDEA.

Other ways to start an executable Spring Boot jar are:

  • java -jar room-web-app/target/room-web-app-1.0.0.jar
  • shell script (makes it easier to add environment variables and properties)
  • systemd / init.d (on *nix systems) to let the server control when services start/stop
  • cloud ecosystems (e.g. Pivotal Cloud Foundry)
    • cf push pushes a compiled JAR into cloud foundry and automatically runs it

Section 1.5: Use profiles to specify server port

Server ports are configured in application.yml. Specify the active profile like this:

java -jar -Dspring.profiles.active=test target/room-web-app-1.0.0.jar

and the web application can be found at: http://localhost:9000

References

spring-boot-2-essential-training's People

Contributors

roelfie avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.