grails控制台始终挂在:bootRun,grails应用正常运行,我可以通过URL http://localhost:8080访问它,但是我无法在控制台中检查日志。 该应用程序已完全运行,但输出显示为s.th。例如88%执行[1m 20s]>:bootRun <============-> 88%执行[1m 20s]>:bootRun
我正在使用Ubuntu 16.04,Grails 3.3.9,JVM 1.8.0_45
这是 application.yml
---
grails:
profile: web
codegen:
defaultPackage: com.test
gorm:
reactor:
# Whether to translate GORM events into Reactor events
# Disabled by default for performance reasons
events: false
autowire: true
spring:
main:
banner-mode: "off"
server:
contextPath: '/time'
port: 8080
# Spring Actuator Endpoints are Disabled by Default
endpoints:
enabled: false
jmx:
enabled: true
info:
app:
name: '@info.app.name@'
version: '@info.app.version@'
grailsVersion: '@info.app.grailsVersion@'
---
grails:
mime:
disable:
accept:
header:
userAgents:
- Gecko
- WebKit
- Presto
- Trident
types:
all: '*/*'
atom: application/atom+xml
css: text/css
csv: text/csv
form: application/x-www-form-urlencoded
html:
- text/html
- application/xhtml+xml
js: text/javascript
json:
- application/json
- text/json
multipartForm: multipart/form-data
pdf: application/pdf
rss: application/rss+xml
text: text/plain
hal:
- application/hal+json
- application/hal+xml
xml:
- text/xml
- application/xml
urlmapping:
cache:
maxsize: 1000
controllers:
defaultScope: singleton
converters:
encoding: UTF-8
views:
default:
codec: html
gsp:
encoding: UTF-8
htmlcodec: xml
codecs:
expression: html
scriptlets: html
taglib: none
staticparts: none
endpoints:
jmx:
unique-names: true
---
hibernate:
cache:
use_second_level_cache: true
use_query_cache: false
region:
factory_class:org.hibernate.cache.ehcache.EhCacheRegionFactory
flush:
mode: AUTO
dataSource:
pooled: true
jmxExport: true
driverClassName: org.h2.Driver
username: sa
password: ''
environments:
development:
dataSource:
dialect: org.hibernate.dialect.H2Dialect
dbCreate: update
url: jdbc:h2:databases/development/DB/myDB;MVCC=TRUE;LOCK_TIMEOUT=10000;DB_CLOSE_ON_EXIT=TRUE;AUTO_SERVER=TRUE
properties:
maxActive: -1
timeBetweenEvictionRunsMillis: 1800000
minEvictableIdleTimeMillis: 1800000
numTestsPerEvictionRun: 3
testOnBorrow: true
testWhileIdle: true
testOnReturn: false
validationQuery: SELECT 1
jdbcInterceptors: ConnectionState # TRANSACTION_READ_COMMITTED
dialect: org.hibernate.dialect.H2Dialects
logSql: true
控制台日志始终显示
<===========--> 88% EXECUTING [1m 20s]> :bootRun<===========--> 88% EXECUTING [1m 20s]> :bootRun<===========--> 88% EXECUTING [1m 20s]>
:bootRun<===========--> 88% EXECUTING [1m 20s]> :bootRun<===========--> 88% EXECUTING [1m 21s]> :bootRun<===========--> 88% EXECUTING [1m 21s]>
:bootRun<===========--> 88% EXECUTING [1m 21s]> :bootRun<===========--> 88% EXECUTING [1m 21s]> :bootRun<===========--> 88% EXECUTING [1m 21s]>
:bootRun<===========--> 88% EXECUTING [1m 21s]> :bootRun<===========--> 88% EXECUTING [1m 21s]> :bootRun<===========--> 88% EXECUTING [1m 21s]>
:bootRun<===========--> 88% EXECUTING [1m 21s]> :bootRun<===========-->
88% EXECUTING [1m 21s]> :bootRun<===========--> 88% EXECUTING [1m 22s]>
:bootRun<===========--> 88% EXECUTING [1m 22s]> :bootRun<===========-->
88% EXECUTING [1m 22s]> :bootRun<===========--> 88% EXECUTING [1m 22s]> \:bootRun<===========--> 88% EXECUTING [1m 22s]> :bootRun<===========--> 88% EXECUTING [1m 22s]> :bootRun<===========--> 88% EXECUTING [1m 22s]>
:bootRun<===========--> 88% EXECUTING [1m 22s]> :bootRun<===========-->
88% EXECUTING [1m 22s]> :bootRun<===========--> 88% EXECUTING [1m 22s]>
:bootRun<===========--> 88% EXECUTING [1m 23s]> :bootRun<===========--> 88% EXECUTING [1m 23s]> :bootRun<===========--> 88% EXECUTING [1m 23s]> :bootRun<===========--> 88% EXECUTING [1m 23s]> :bootRun<===========--> 88% EXECUTING [1m 23s]> :bootRun<===========--> 88% EXECUTING [1m 23s]> :bootRun<===========--> 88% EXECUTING [1m 23s]> :bootRun<===========--> 88% EXECUTING [1m 23s]> :bootRun<===========--> 88% EXECUTING [1m 23s]> :bootRun<===========--> 88% EXECUTING [1m 23s]> :bootRun<===========--> 88% EXECUTING [1m 24s]> :bootRun<===========--> 88% EXECUTING [1m 24s]> :bootRun<===========--> 88% EXECUTING [1m 24s]> :bootRun<===========--> 88% EXECUTING [1m 24s]> :bootRun<===========--> 88% EXECUTING [1m 24s]> :bootRun<===========--> 88% EXECUTING [1m 24s]> :bootRun<===========--> 88% EXECUTING [1m 24s]> :bootRun<===========--> 88% EXECUTING [1m 24s]> :bootRun<===========--> 88% EXECUTING [1m 24s]> :bootRun<===========--> 88% EXECUTING [1m 24s]> :bootRun<===========--> 88% EXECUTING [1m 25s]> :bootRun<===========--> 88% EXECUTING [1m 25s]> :bootRun<===========--> 88% EXECUTING [1m 25s]> :bootRun<===========--> 88% EXECUTING [1m 25s]> :bootRun<===========--> 88% EXECUTING [1m 25s]> :bootRun<===========--> 88% EXECUTING [1m 25s]> :bootRun<===========--> 88% EXECUTING [1m 25s]> :bootRun<===========--> 88% EXECUTING [1m 25s]> :bootRun<===========--> 88% EXECUTING [1m 25s]> :bootRun<===========--> 88% EXECUTING [1m 25s]> :bootRun<===========--> 88% EXECUTING [1m 26s]> :bootRun<===========--> 88% EXECUTING [1m 26s]> :bootRun<===========--> 88% EXECUTING [1m 26s]> :bootRun<===========--> 88% EXECUTING [1m 26s]> :bootRun<===========--> 88% EXECUTING [1m 26s]> :bootRun<===========--> 88% EXECUTING [1m 26s]> :bootRun<===========--> 88% EXECUTING [1m 26s]> :bootRun<===========--> 88% EXECUTING [1m 26s]> :bootRun<===========--> 88% EXECUTING [1m 26s]> :bootRun<===========--> 88% EXECUTING [1m 26s]> :bootRun<===========--> 88% EXECUTING [1m 27s]> :bootRun<===========--> 88% EXECUTING [1m 27s]> :bootRun<===========--> 88% EXECUTING [1m 27s]> :bootRun<===========--> 88% EXECUTING [1m 27s]> :bootRun<===========--> 88% EXECUTING [1m 27s]> :bootRun<===========--> 88% EXECUTING [1m 27s]> :bootRun<===========--> 88% EXECUTING [1m 27s]> :bootRun<===========--> 88% EXECUTING [1m 27s]> :bootRun<===========--> 88% EXECUTING [1m 27s]> :bootRun<===========--> 88% EXECUTING [1m 27s]> :bootRun<===========--> 88% EXECUTING [1m 28s]> :bootRun<===========--> 88% EXECUTING [1m 28s]> :bootRun<===========--> 88% EXECUTING [1m 28s]> :bootRun<===========--> 88% EXECUTING [1m 28s]> :bootRun