Java tutorial
/* * Copyright 2012-2015 the original author or authors. * * 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 com.xyf.boot; import org.springframework.boot.SpringApplication; import org.springframework.boot.autoconfigure.SpringBootApplication; import org.springframework.context.annotation.ImportResource; import org.springframework.context.annotation.PropertySource; @SpringBootApplication(exclude = { org.springframework.boot.autoconfigure.thymeleaf.ThymeleafAutoConfiguration.class }) @PropertySource(value = "classpath:conf/application.properties", ignoreResourceNotFound = false) @ImportResource({ "classpath:conf/ApplicationContext.xml" }) public class WebApplication { public static void main(String[] args) throws Exception { System.setProperty("logging.config", "classpath:conf/logback.xml"); SpringApplication.run(WebApplication.class, args); } }