Rename samples to smoke tests
Closes gh-17197
This commit is contained in:
@@ -557,7 +557,7 @@ editor for this example.
|
||||
[[getting-started-first-application-dependencies]]
|
||||
=== Adding Classpath Dependencies
|
||||
Spring Boot provides a number of "`Starters`" that let you add jars to your classpath.
|
||||
Our sample application has already used `spring-boot-starter-parent` in the `parent`
|
||||
Our applications for smoke tests use the `spring-boot-starter-parent` in the `parent`
|
||||
section of the POM. The `spring-boot-starter-parent` is a special starter that provides
|
||||
useful Maven defaults. It also provides a
|
||||
<<using-spring-boot.adoc#using-boot-dependency-management,`dependency-management`>>
|
||||
@@ -819,11 +819,6 @@ https://spring.io/guides/[getting started] guides that solve specific "`How do I
|
||||
with Spring?`" problems. We also have Spring Boot-specific
|
||||
"`<<howto.adoc#howto, How-to>>`" reference documentation.
|
||||
|
||||
The https://github.com/{github-repo}[Spring Boot repository] also has a
|
||||
{github-code}/spring-boot-samples[bunch of samples] you can run. The samples are
|
||||
independent of the rest of the code (that is, you do not need to build the rest to run or
|
||||
use the samples).
|
||||
|
||||
Otherwise, the next logical step is to read _<<using-spring-boot.adoc#using-boot>>_. If
|
||||
you are really impatient, you could also jump ahead and read about
|
||||
_<<spring-boot-features.adoc#boot-features, Spring Boot features>>_.
|
||||
|
||||
@@ -699,9 +699,7 @@ a plain HTTP connector at port 8080. Spring Boot does not support the configurat
|
||||
both an HTTP connector and an HTTPS connector through `application.properties`. If you
|
||||
want to have both, you need to configure one of them programmatically. We recommend using
|
||||
`application.properties` to configure HTTPS, as the HTTP connector is the easier of the
|
||||
two to configure programmatically. See the
|
||||
{github-code}/spring-boot-samples/spring-boot-sample-tomcat-multi-connectors[`spring-boot-sample-tomcat-multi-connectors`]
|
||||
sample project for an example.
|
||||
two to configure programmatically.
|
||||
|
||||
|
||||
|
||||
@@ -1668,9 +1666,7 @@ And the following example shows one way to set up the starters in Gradle:
|
||||
|
||||
NOTE: The Log4j starters gather together the dependencies for common logging
|
||||
requirements (such as having Tomcat use `java.util.logging` but configuring the
|
||||
output using Log4j 2). See the
|
||||
{github-code}/spring-boot-samples/spring-boot-sample-actuator-log4j2[Actuator Log4j 2]
|
||||
samples for more detail and to see it in action.
|
||||
output using Log4j 2).
|
||||
|
||||
NOTE: To ensure that debug logging performed using `java.util.logging` is routed into
|
||||
Log4j 2, configure its https://logging.apache.org/log4j/2.0/log4j-jul/index.html[JDK
|
||||
@@ -1895,9 +1891,7 @@ the same package (or a sub-package) of your `@EnableAutoConfiguration` class.
|
||||
For many applications, all you need is to put the right Spring Data dependencies on
|
||||
your classpath (there is a `spring-boot-starter-data-jpa` for JPA and a
|
||||
`spring-boot-starter-data-mongodb` for Mongodb) and create some repository interfaces to
|
||||
handle your `@Entity` objects. Examples are in the
|
||||
{github-code}/spring-boot-samples/spring-boot-sample-data-jpa[JPA sample] and the
|
||||
{github-code}/spring-boot-samples/spring-boot-sample-data-mongodb[Mongodb sample].
|
||||
handle your `@Entity` objects.
|
||||
|
||||
Spring Boot tries to guess the location of your `@Repository` definitions, based on the
|
||||
`@EnableAutoConfiguration` it finds. To get more control, use the `@EnableJpaRepositories`
|
||||
@@ -2356,8 +2350,6 @@ is sufficient to cause Flyway to use its own `DataSource`. If any of the three
|
||||
properties has not be set, the value of its equivalent `spring.datasource` property will
|
||||
be used.
|
||||
|
||||
There is a {github-code}/spring-boot-samples/spring-boot-sample-flyway[Flyway sample] so
|
||||
that you can see how to set things up.
|
||||
|
||||
You can also use Flyway to provide data for specific scenarios. For example, you can
|
||||
place test-specific migrations in `src/test/resources` and they are run only when your
|
||||
@@ -2399,9 +2391,6 @@ See
|
||||
{sc-spring-boot-autoconfigure}/liquibase/LiquibaseProperties.{sc-ext}[`LiquibaseProperties`]
|
||||
for details about available settings such as contexts, the default schema, and others.
|
||||
|
||||
There is a {github-code}/spring-boot-samples/spring-boot-sample-liquibase[Liquibase
|
||||
sample] so that you can see how to set things up.
|
||||
|
||||
|
||||
|
||||
[[howto-messaging]]
|
||||
@@ -3049,22 +3038,6 @@ The following example shows how to build an executable archive with Ant:
|
||||
</target>
|
||||
----
|
||||
|
||||
The {github-code}/spring-boot-samples/spring-boot-sample-ant[Ant Sample] has a
|
||||
`build.xml` file with a `manual` task that should work if you run it with the following
|
||||
command:
|
||||
|
||||
[indent=0,subs="verbatim,quotes,attributes"]
|
||||
----
|
||||
$ ant -lib <folder containing ivy-2.2.jar> clean manual
|
||||
----
|
||||
|
||||
Then you can run the application with the following command:
|
||||
|
||||
[indent=0,subs="verbatim,quotes,attributes"]
|
||||
----
|
||||
$ java -jar target/*.jar
|
||||
----
|
||||
|
||||
|
||||
|
||||
[[howto-traditional-deployment]]
|
||||
@@ -3166,11 +3139,6 @@ file with the provided dependencies packaged in a `lib-provided` directory. This
|
||||
that, in addition to being deployable to a servlet container, you can also run your
|
||||
application by using `java -jar` on the command line.
|
||||
|
||||
TIP: Take a look at Spring Boot's sample applications for a
|
||||
{github-code}/spring-boot-samples/spring-boot-sample-traditional/pom.xml[Maven-based
|
||||
example] of the previously described configuration.
|
||||
|
||||
|
||||
|
||||
|
||||
[[howto-convert-an-existing-application-to-spring-boot]]
|
||||
|
||||
@@ -1586,9 +1586,7 @@ You can also add a custom Spring `Validator` by creating a bean definition calle
|
||||
configuration properties validator is created very early in the application's lifecycle,
|
||||
and declaring the `@Bean` method as static lets the bean be created without having to
|
||||
instantiate the `@Configuration` class. Doing so avoids any problems that may be caused
|
||||
by early instantiation. There is a
|
||||
{github-code}/spring-boot-samples/spring-boot-sample-property-validation[property
|
||||
validation sample] that shows how to set things up.
|
||||
by early instantiation.
|
||||
|
||||
TIP: The `spring-boot-actuator` module includes an endpoint that exposes all
|
||||
`@ConfigurationProperties` beans. Point your web browser to
|
||||
@@ -3212,9 +3210,6 @@ an `@Order`, which you can set with `spring.jersey.filter.order`. Both the servl
|
||||
the filter registrations can be given init parameters by using `spring.jersey.init.*` to
|
||||
specify a map of properties.
|
||||
|
||||
There is a {github-code}/spring-boot-samples/spring-boot-sample-jersey[Jersey sample] so
|
||||
that you can see how to set things up.
|
||||
|
||||
|
||||
|
||||
[[boot-features-embedded-container]]
|
||||
@@ -3422,9 +3417,6 @@ packaged as an executable archive), there are some limitations in the JSP suppor
|
||||
<<boot-features-error-handling-custom-error-pages,Custom error pages>> should be used
|
||||
instead.
|
||||
|
||||
There is a {github-code}/spring-boot-samples/spring-boot-sample-web-jsp[JSP sample] so
|
||||
that you can see how to set things up.
|
||||
|
||||
|
||||
|
||||
[[boot-features-reactive-server]]
|
||||
@@ -3646,8 +3638,6 @@ so does not disable the `UserDetailsService` configuration or Actuator's securit
|
||||
|
||||
To also switch off the `UserDetailsService` configuration, you can add a bean of type
|
||||
`UserDetailsService`, `AuthenticationProvider`, or `AuthenticationManager`.
|
||||
There are several secure applications in the {github-code}/spring-boot-samples/[Spring
|
||||
Boot samples] to get you started with common use cases.
|
||||
|
||||
Access rules can be overridden by adding a custom `WebSecurityConfigurerAdapter`. Spring
|
||||
Boot provides convenience methods that can be used to override access rules for actuator
|
||||
|
||||
Reference in New Issue
Block a user