everly-gif commented on a change in pull request #15856: URL: https://github.com/apache/shardingsphere/pull/15856#discussion_r821287799
########## File path: examples/shardingsphere-jdbc-example/single-feature-example/shadow-example/shadow-spring-boot-jpa-example/src/main/java/org/apache/shardingsphere/example/shadow/spring/boot/jpa/ShadowSpringBootJpaExample.java ########## @@ -0,0 +1,42 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one or more + * contributor license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright ownership. + * The ASF licenses this file to You under the Apache License, Version 2.0 + * (the "License"); you may not use this file except in compliance with + * the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package org.apache.shardingsphere.example.shadow.spring.boot.jpa; + +import org.apache.shardingsphere.example.core.api.ExampleExecuteTemplate; +import org.apache.shardingsphere.example.core.api.service.ExampleService; +import org.mybatis.spring.annotation.MapperScan; +import org.springframework.boot.SpringApplication; +import org.springframework.boot.autoconfigure.SpringBootApplication; +import org.springframework.boot.autoconfigure.transaction.jta.JtaAutoConfiguration; +import org.springframework.context.ConfigurableApplicationContext; +import org.springframework.context.annotation.ComponentScan; + +import java.sql.SQLException; + +@ComponentScan("org.apache.shardingsphere.example.core.jpa") +@EntityScan(basePackages = "org.apache.shardingsphere.example.core.jpa.entity") +@SpringBootApplication(exclude = JtaAutoConfiguration.class) + Review comment: @yx90 do you want to remove other spaces in the file as well? I have structured it the same way as in the example file given ShardingSpringBootJpaExample.java , but I noticed there was one extra blank line in my example and I have removed it. Can you tell me if you want me to remove the other blank lines as well? -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
