0
我最近升級的Grails到V2.3.7並注意到,當我跑grails test-app functional:
的應用程序將被自動像這樣啓動:的Grails V2.3.7測試應用程序時自動啓動應用程序的功能:
:grails-test-app-functional
| Loading Grails 2.3.7
| Configuring classpath
| Running pre-compiled script
| Running pre-compiled script.
| Environment set to test
| Environment set to test.
| Environment set to test..
| Environment set to test...
| Environment set to test....
| Environment set to test.....
| Compiling 1 source files
| Compiling 1 source files.
| Compiling 1 source files..
| Compiling 1 source files...
| Compiling 1 source files....
| Compiling 1 source files.....
| Running Grails application
Configuring Spring Security Core ...
... finished configuring Spring Security Core
| Server running. Browse to http://localhost:8080/myApplication
這在V2.3.6中沒有發生。我的問題是:
1)這是V2.3.7中的新增功能還是我在不知不覺中配置了某些內容?
2)如何禁用應用程序的自動運行?
謝謝。
傑夫有答案。你可以在這裏做的一個增強功能是對8080以外的端口進行功能測試。如果你正在同時處理多個Grails應用程序,那麼它將不會與另一個在8080上運行的應用程序發生衝突。 – dmahapatro