Commit 3c6c1d08 authored by Phillip Webb's avatar Phillip Webb

Polish

parent bebf26d9
...@@ -352,6 +352,7 @@ and the default excludes are ...@@ -352,6 +352,7 @@ and the default excludes are
See the output of `spring help jar` for more information. See the output of `spring help jar` for more information.
[[cli-init]] [[cli-init]]
=== Initialize a new project === Initialize a new project
The `init` command allows you to create a new project using https://start.spring.io The `init` command allows you to create a new project using https://start.spring.io
...@@ -361,36 +362,36 @@ without leaving the shell. For example: ...@@ -361,36 +362,36 @@ without leaving the shell. For example:
---- ----
$ spring init --dependencies=web,data-jpa my-project/ $ spring init --dependencies=web,data-jpa my-project/
Using service at https://start.spring.io Using service at https://start.spring.io
Project extracted to '/Users/developer/example/my-project' Project extracted to '/Users/developer/example/my-project'
---- ----
This creates a `my-project` directory with a Maven-based project using `spring-boot-starter-web` This creates a `my-project` directory with a Maven-based project using
and `spring-boot-starter-data-jpa`. You can list the capabilities of the service `spring-boot-starter-web` and `spring-boot-starter-data-jpa`. You can list the
using the `--list` flag capabilities of the service using the `--list` flag
[indent=0] [indent=0]
---- ----
$ spring init --list $ spring init --list
======================================= =======================================
Capabilities of https://start.spring.io Capabilities of https://start.spring.io
======================================= =======================================
Available dependencies: Available dependencies:
----------------------- -----------------------
actuator - Actuator: Production ready features to help you monitor and manage your application actuator - Actuator: Production ready features to help you monitor and manage your application
... ...
web - Web: Support for full-stack web development, including Tomcat and spring-webmvc web - Web: Support for full-stack web development, including Tomcat and spring-webmvc
websocket - Websocket: Support for websocket development with Tomcat websocket - Websocket: Support for websocket development with Tomcat
ws - WS: Support for Spring Web Services ws - WS: Support for Spring Web Services
Available project types: Available project types:
------------------------ ------------------------
gradle-build - Gradle Config [format:build, build:gradle] gradle-build - Gradle Config [format:build, build:gradle]
gradle-project - Gradle Project [format:project, build:gradle] gradle-project - Gradle Project [format:project, build:gradle]
maven-build - Maven POM [format:build, build:maven] maven-build - Maven POM [format:build, build:maven]
maven-project - Maven Project [format:project, build:maven] (default) maven-project - Maven Project [format:project, build:maven] (default)
... ...
---- ----
The `init` command supports many options, check the `help` output for more details. For The `init` command supports many options, check the `help` output for more details. For
...@@ -403,6 +404,8 @@ instance, the following command creates a gradle project using Java 8 and `war` ...@@ -403,6 +404,8 @@ instance, the following command creates a gradle project using Java 8 and `war`
Content saved to 'sample-app.zip' Content saved to 'sample-app.zip'
---- ----
[[cli-shell]] [[cli-shell]]
=== Using the embedded shell === Using the embedded shell
Spring Boot includes command-line completion scripts for BASH and zsh shells. If you Spring Boot includes command-line completion scripts for BASH and zsh shells. If you
...@@ -428,6 +431,8 @@ The embedded shell supports ANSI color output as well as `tab` completion. If yo ...@@ -428,6 +431,8 @@ The embedded shell supports ANSI color output as well as `tab` completion. If yo
to run a native command you can use the `$` prefix. Hitting `ctrl-c` will exit the to run a native command you can use the `$` prefix. Hitting `ctrl-c` will exit the
embedded shell. embedded shell.
[[cli-groovy-beans-dsl]] [[cli-groovy-beans-dsl]]
== Developing application with the Groovy beans DSL == Developing application with the Groovy beans DSL
Spring Framework 4.0 has native support for a `beans{}` "`DSL`" (borrowed from Spring Framework 4.0 has native support for a `beans{}` "`DSL`" (borrowed from
......
...@@ -2025,18 +2025,24 @@ The following component creates a listener endpoint on the `someQueue` destinati ...@@ -2025,18 +2025,24 @@ The following component creates a listener endpoint on the `someQueue` destinati
Check {spring-javadoc}/jms/annotation/EnableJms.{dc-ext}[the javadoc of `@EnableJms`] Check {spring-javadoc}/jms/annotation/EnableJms.{dc-ext}[the javadoc of `@EnableJms`]
for more details. for more details.
[[boot-features-mail]]
== Mail integration
The Spring Framework provides an easy abstraction for sending email using the `JavaMailSender`
interface and Spring Boot provides auto-configuration for it as well as a starter module.
TIP: Check the {spring-reference}/#mail[reference documentation] for a detailed explanation
of how you can use `JavaMailSender`. [[boot-features-email]]
== Sending email
The Spring Framework provides an easy abstraction for sending email using the
`JavaMailSender` interface and Spring Boot provides auto-configuration for it as well as
a starter module.
TIP: Check the {spring-reference}/#mail[reference documentation] for a detailed
explanation of how you can use `JavaMailSender`.
If `spring.mail.host` and the relevant libraries (as defined by `spring-boot-starter-mail`) If `spring.mail.host` and the relevant libraries (as defined by `spring-boot-starter-mail`)
are available, a default `JavaMailSender` is created if none exists. The sender can be are available, a default `JavaMailSender` is created if none exists. The sender can be
further customized by configuration items from the `spring.mail` namespace, see the further customized by configuration items from the `spring.mail` namespace, see the
{sc-spring-boot-autoconfigure}/mail/MailProperties.{sc-ext}[`MailProperties`] for more details. {sc-spring-boot-autoconfigure}/mail/MailProperties.{sc-ext}[`MailProperties`] for more
details.
[[boot-features-jta]] [[boot-features-jta]]
== Distributed Transactions with JTA == Distributed Transactions with JTA
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment