java pattern matching group inside the other

I am trying to extract blocks that start with “CREATE PROCEDURE name AS” and ends with “GO;”. so I coded that as follows: String pat=”(?s)create\\s+procedure\\s+\\w+\\s+as.+go\\s*;”; String str=”some text create procedure name as body go; some text create procedure anothername as body go;”; Pattern p=Pattern.compile(pat,Pattern.CASE_INSENSITIVE); Matcher m=p.matcher(str); while(m.find()) System.out.println(m.group()); this code returned (one string): “create procedure…

Details

Google Kubernetes is not auto scaling to 0

I am testing Google Kubernetes autoscaling. I have created a cluster with 1 master node. Then I have used gcloud container node-pools create node-pool-test \ –machine-type g1-small –cluster test-master \ –num-nodes 1 –min-nodes 0 –max-nodes 3 \ –enable-autoscaling –zone us-central1-a to create a node pool with autoscaling and minimum node to 0. Now, the problem…

Details

Tomcat doesn’t work when I added my dependency in pom.xml

I should develop a Spring project. I got base source code. When I run Tomcat, it worked correctly. But if I added a dependency which I had developed by a fat jar in pom.xml, Tomcat doesn’t work. I got error below: 18-Jan-2020 23:32:05.086 �떖媛� [RMI TCP Connection(2)-127.0.0.1] org.apache.catalina.core.ContainerBase.addChildInternal ContainerBase.addChild: start: org.apache.catalina.LifecycleException: 援ъ꽦�슂�냼 [StandardEngine[Catalina].StandardHost[localhost].StandardContext[]]�쓣(瑜�) �떆�옉�븯吏� 紐삵뻽�뒿�땲�떎.…

Details