@@ -0,0 +1,1111 @@
+package com.lance.jpa;%0A%0Aimport org.apache.catalina.Context;%0Aimport org.springframework.boot.SpringApplication;%0Aimport org.springframework.boot.autoconfigure.SpringBootApplication;%0Aimport org.springframework.boot.context.embedded.EmbeddedServletContainerFactory;%0Aimport org.springframework.boot.context.embedded.tomcat.TomcatContextCustomizer;%0Aimport org.springframework.boot.context.embedded.tomcat.TomcatEmbeddedServletContainerFactory;%0Aimport org.springframework.context.annotation.Bean;%0A%0A@SpringBootApplication%0Apublic class SimpleApplication %7B%0A%0A%09@Bean%0A%09public EmbeddedServletContainerFactory servletContainer() %7B%0A%09%09TomcatEmbeddedServletContainerFactory factory = new TomcatEmbeddedServletContainerFactory();%0A%09%09TomcatContextCustomizer contextCustomizer = new TomcatContextCustomizer() %7B%0A%09%09%09@Override%0A%09%09%09public void customize(Context context) %7B%0A%09%09%09%09context.addWelcomeFile(%22index.jsp%22);%0A%09%09%09%09context.setWebappVersion(%223.1%22);%0A%09%09%09%7D%0A%09%09%7D;%0A%09%09factory.addContextCustomizers(contextCustomizer);%0A%09%09return factory;%0A%09%7D%0A%0A%09public static void main(String%5B%5D args) %7B%0A%09%09SpringApplication.run(SimpleApplication.class, args);%0A%09%7D%0A%7D%0A

add spring boot application run