Commit Graph

1399 Commits

Author SHA1 Message Date
Dave Syer 621116c9b8 ManagementServerConfiguration security
Management endpoints are still secure by default if
Spring Security is present, but now the default
user details have an ADMIN role, and a random password
(which is logged at INFO level if not overridden).

To override you add management.user.password (name, role)
to external properties.

[Fixes #53029715] [bs-203]
2013-09-05 17:14:10 -07:00
Dave Syer 3c44fda782 Switch off ws sample tests 2013-09-05 17:14:10 -07:00
Dave Syer 5ead60a7e1 Comment out websocket sample (fails in CI) 2013-09-05 17:14:10 -07:00
Dave Syer 767aa43e31 Add WebSocketAutoConfiguration
Opinionated defaults for WebSockets:

* If spring-websocket is on the classpath and so is
the Tomcat WSci initializer then it is added to the context
* A DefaultSockJsService is added if none is present
* User has only to define @Beans of type WebSocketHandler with
name starting "/"
* Each one is converted to a SockJsHttpRequestHandler and
mapped to "/<beanName>/**"
2013-09-05 17:14:10 -07:00
Dave Syer 6e8cbbde3b Use reflection hack for error page in Tocmat 8 2013-09-05 17:14:10 -07:00
Biju Kunjummen fa3b593568 Removed spring-boot related version from dependencies of samples 2013-09-05 17:14:09 -07:00
Phillip Webb d4fe320254 Update trace logging to include Hibernate SQL 2013-09-05 17:14:09 -07:00
Dave Syer d205d9404a Add additional ViewResolver configuration
The DispatcherServlet adds a default InternalViewResolver
which was used by some apps, but when the actuator was
available it added an "/error" bean and effectively
switched off the default view resolver. The net fix was
to add an InternalViewResolver at the same time as
adding any other ViewResolvers.

[Fixes #55357516] [bs-290] Actuator UI app cannot serve static index.html
2013-09-05 17:14:08 -07:00
Phillip Webb 878ff13620 Documentation updates 2013-08-09 15:34:04 -07:00
Phillip Webb cf655945aa Polish 2013-08-09 12:28:54 -07:00
Dave Syer 7bea9dd973 Massage MVC test a bit
* Use *Tests as classname
* Fixed broken test in suite where ID is not always "1"
2013-08-09 16:41:58 +01:00
Biju Kunjummen 31af68a915 Added a Spring MVC test for the Sample MessageController 2013-08-09 16:31:11 +01:00
Dave Syer 42bb793155 Add ServletContextListener to embedded web app
* User can add @Bean of type EventListener (e.g.
ServletContextListener)

[Fixes #54112999] [bs-254]
2013-08-08 11:27:07 +01:00
Phillip Webb f5bae04714 Ignore websocket sample for now 2013-08-07 23:09:08 -07:00
Phillip Webb b5e81ff42d Fix broken test dependencies 2013-08-07 22:52:26 -07:00
Phillip Webb eb69732fbb Reinstate integration tests 2013-08-07 22:34:09 -07:00
Dave Syer 521174754e Add default /error view for HTML clients
* Add integration tests for /error view
* Add "error" @Bean as default view for HTML

Users may see side effects because now there will be
a ContentNegotiatingViewResolver by default for the
first time in a vanilla Actuator app. Should be
interesting.

[Fixes #54597932] [bs-273] Circular view reference for /error
2013-08-07 10:55:30 +01:00
Dave Syer f502098065 Fix logging depdendencies in samples 2013-08-06 13:40:39 +01:00
Dave Syer 12f0d4d95e Rename ops package to actuate 2013-08-06 13:15:02 +01:00
Dave Syer d2419a36fd Add server.tomcat.access_valve_enabled flag
Also introduced new strategy for customizing Tomcat Context
(TomcatContextCustomizer) - any that are added to the factory
will be applied before any other customizations in postProcessContext()

[Fixes #54670052] [bs-275] Make Tomcat access valve logs more accessible
2013-08-06 10:21:17 +01:00
Phillip Webb d86bf66645 Add parent relativePath
Update sample applications to correctly refer to parent relativePath.
2013-08-06 00:02:31 -07:00
Phillip Webb 4e11ae1671 Documentation
Various updates to README.md files.
2013-08-05 22:36:22 -07:00
Phillip Webb 4038b39496 Add OutputCapture test class 2013-08-05 13:48:14 -07:00
Dave Syer c2c8144117 Add websocket sample 2013-08-05 21:40:33 +01:00
Dave Syer bfb843e1a0 Add logging initializer to tests 2013-08-05 17:32:18 +01:00
Dave Syer 3922a7f526 Reinstate junit dependencies in starters 2013-08-05 12:43:24 +01:00
Oliver Gierke d2def68602 Cleanups Spring Data JPA example.
Various cleanups to the Spring Data JPA example, including:

* Move repositories into service package and make them package private
  thus only expose the service interfaces to clients.
* Merge HotelRepository and HotelSummaryRepository and make service
  implementations package protected.
* Introduce integration test base class to bootstrap the app as
  SpringAppliation.run would.
* Refactor central test case to rather use Spring MVC integration
  testing framework.
* Add integration tests for repositories to execute query methods.
2013-08-02 22:29:07 -07:00
Phillip Webb 1db22aca5c Rework POM structure
Rework main build POM to be an aggregator pom that does not inherit
from any parent. Introduce new spring-boot-dependencies module to
act as a parent for both spring-boot-starter-parent and
spring-boot-parent.
2013-08-02 21:58:24 -07:00
Dave Syer 4bb5de02e7 Switch back to SNAPSHOT for dev 2013-08-02 12:00:14 +01:00
Dave Syer 638a31f5e3 Fix poms for a milestone release 2013-08-02 12:00:14 +01:00
Dave Syer 68e5a7e887 Bump version to 0.5.0.M1 2013-08-02 12:00:14 +01:00
Phillip Webb e1c6860a41 Documentation 2013-08-02 00:34:53 -07:00
Phillip Webb 5450af70e0 Ops -> Actuator 2013-07-31 13:20:26 -07:00
Phillip Webb 4c067a89fe Ops -> Actuator 2013-07-31 12:57:25 -07:00
Dave Syer 39425c81d6 Servlet context document root not found when running as exploded WAR
* Added additional search in
AbstractEmbeddedServletContainerFactory.getValidDocumentRoot() to
detect a /WEB-INF/ directory in the code archive
* If the code archive is in /WEB-INF/** then we assume it is
safe to serve content from / (exposes the loader classes
but nothing sensitive from the app)

[Fixes #54345578]
2013-07-31 10:30:03 +01:00
Dave Syer 5995b7727a Ops -> Actuator 2013-07-31 09:46:34 +01:00
Phillip Webb 3bb79db579 Renamed spring-boot-ups -> spring-boot-starter 2013-07-31 01:11:10 -07:00
Dave Syer 2f0a96c986 Remove unused @ComponentScan 2013-07-30 22:02:08 +01:00
Dave Syer 6d76467a66 Add responsive features to static sample 2013-07-30 10:31:37 +01:00
Phillip Webb 0fee00f0d7 Add gradle example builds
Add gradle example builds to spring-boot-sample-tomcat and
spring-boot-sample-traditional.

Issue: #53129653
2013-07-30 00:06:35 -07:00
Phillip Webb 6fd6d3a73e Rename maven 'package' goal to 'repackage' 2013-07-29 14:52:30 -07:00
Phillip Webb 36c3ceab97 Include servlet support for index.html resources
Issue: #54228642
2013-07-29 13:03:42 -07:00
Phillip Webb 728829ba81 Revert welcome file defaults
Revert welcome file default that break existing tests.

Issue: #54228642
2013-07-29 12:42:37 -07:00
Dave Syer fe90df3afc Remove WARN log in Tomcat startup 2013-07-29 17:09:31 +01:00
Dave Syer 4c359e1a4d Two choices are available to users for welcome page
* For a jar deployment add classpath:static/index.html
(works via Spring MVC mapping)
* For a war the same thing works, but so does adding
index.html to src/main/webapp (works via container
default servlet)

[Fixes #54092261] [bs-252]
2013-07-29 11:57:44 +01:00
Dave Syer 7ea433dce2 Fix broken logback.xml 2013-07-27 12:08:17 +01:00
Phillip Webb b665a2bb1d Renamed packages
Issue: #54095231
2013-07-26 14:11:04 -07:00
Phillip Webb 3f2bb03fb8 Renamed some projects and polish POMs
Issue: #54095231
2013-07-26 12:31:37 -07:00
Dave Syer 2098e23fca Change package names zero->boot
* actuator -> boot-ops
* cli -> boot-cli
* launcher -> boot-load
* autoconfig -> boot-config
* bootstrap -> boot-strap
* starters -> boot-up

[#54095231] [bs-253] Refactor Zero->Boot
2013-07-26 14:13:41 +01:00