我需要帮助解决这个问题.我需要有人向我解释为什么会发生这种情况以及如何预防或避免它.
Exception in thread "Thread-747" java.lang.OutOfMemoryError: PermGen space
Exception in thread "Thread-748" java.lang.OutOfMemoryError: PermGen space
Exception in thread "Thread-759" java.lang.OutOfMemoryError: PermGen space
Exception in thread "Thread-760" java.lang.OutOfMemoryError: PermGen space
Exception in thread "Thread-764" java.lang.OutOfMemoryError: PermGen space
Exception in thread "Thread-765" java.lang.OutOfMemoryError: PermGen space
Exception in thread "Thread-766" java.lang.OutOfMemoryError: PermGen space
Exception in thread "Thread-767" java.lang.OutOfMemoryError: PermGen space
Exception in thread "Thread-773" java.lang.OutOfMemoryError: PermGen space
Exception in thread "Thread-774" java.lang.OutOfMemoryError: PermGen space
Exception in thread "Thread-780" java.lang.OutOfMemoryError: PermGen space
Exception in …Run Code Online (Sandbox Code Playgroud) 在此示例中,如何在类似条件的语句中使用"%":
def c = Shop.createCriteria()
def results = c.list {
like("name", "Harrods")
def aha = params.name
like("store.name", %aha%) ##
}
Run Code Online (Sandbox Code Playgroud)
"%aha%"部分无效.但如果我做"%ola%"它确实有效.那么如何解决这个问题呢?
或者在成瘾中,而不是"%aha",我如何使用'contains'groovy方法而不是像?