parent
03abd20542
commit
31d8a647d0
|
@ -68,7 +68,7 @@ content into your application; rather pick only the properties that you need.
|
|||
server.port=8080
|
||||
server.address= # bind to a specific NIC
|
||||
server.compression.enabled=false # if response compression is enabled
|
||||
server.compression.exclude-user-agents= # list of user-agents to exclude from compression
|
||||
server.compression.excluded-user-agents= # list of user-agents to exclude from compression
|
||||
server.compression.mime-types=text/html,text/xml,text/plain,text/css # comma-separated list of MIME types that should be compressed
|
||||
server.compression.min-response-size=2048 # minimum response size that is required for compression to be performed
|
||||
server.context-parameters.*= # Servlet context init parameters, e.g. server.context-parameters.a=alpha
|
||||
|
|
|
@ -416,7 +416,7 @@ that and be sure that it has initialized is to add a `@Bean` of type
|
|||
`ApplicationListener<EmbeddedServletContainerInitializedEvent>` and pull the container
|
||||
out of the event when it is published.
|
||||
|
||||
A useful practice for use with `@WebIntegrationTests` is to set `server.port=0`
|
||||
A useful practice for use with `@WebIntegrationTest` is to set `server.port=0`
|
||||
and then inject the actual ('`local`') port as a `@Value`. For example:
|
||||
|
||||
[source,java,indent=0,subs="verbatim,quotes,attributes"]
|
||||
|
|
|
@ -3087,7 +3087,7 @@ directly into your own beans:
|
|||
|
||||
@Autowired
|
||||
public MyBean(AmqpAdmin amqpAdmin, AmqpTemplate amqpTemplate) {
|
||||
this.adminTemplate = adminTemplate;
|
||||
this.amqpAdmin = amqpAdmin;
|
||||
this.amqpTemplate = amqpTemplate;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue