Springboot web项目 部署到tomcat 为什么会启动两次?
. ____ _ __ _ _
/\\ / ___'_ __ _ _(_)_ __ __ _ \ \ \ \
( ( )\___ | '_ | '_| | '_ \/ _` | \ \ \ \
\\/ ___)| |_)| | | | | || (_| | ) ) ) )
' |____| .__|_| |_|_| |_\__, | / / / /
=========|_|==============|___/=/_/_/_/
:: Spring Boot :: (v1.4.2.RELEASE)
[2016-11-30 10/:37/:46]DEBUG org.jboss.logging(line/:19) -Logging Provider: org.jboss.logging.Log4jLoggerProvider
[2016-11-30 10/:37/:46]INFO org.hibernate.validator.internal.util.Version(line/:30) -HV000001: Hibernate Validator 5.2.4.Final
[2016-11-30 10/:37/:46]INFO com.zhengyang.HgdcmsApplication(line/:48) -Starting HgdcmsApplication v0.0.1-SNAPSHOT on ZF-WJY with PID 41740 (E:\workspace2\.metadata\.plugins\org.eclipse.wst.server.core\tmp0\wtpwebapps\hgdcms\WEB-INF\classes started by Administrator in E:\java_ide\eclipse)
[2016-11-30 10/:37/:46]DEBUG com.zhengyang.HgdcmsApplication(line/:51) -Running with Spring Boot v1.4.2.RELEASE, Spring v4.3.4.RELEASE
[2016-11-30 10/:37/:46]INFO com.zhengyang.HgdcmsApplication(line/:661) -No active profile set, falling back to default profiles: default
[2016-11-30 10/:37/:46]DEBUG org.hibernate.validator.internal.engine.resolver.DefaultTraversableResolver(line/:70) -Cannot find javax.persistence.Persistence on classpath. Assuming non JPA 2 environment. All properties will per default be traversable.
[2016-11-30 10/:37/:51]DEBUG org.mybatis.spring.mapper.ClassPathMapperScanner(line/:286) -Identified candidate component class: file [E:\workspace2\.metadata\.plugins\org.eclipse.wst.server.core\tmp0\wtpwebapps\hgdcms\WEB-INF\classes\com\zhengyang\dao\AdminDao.class]
[2016-11-30 10/:37/:51]DEBUG org.mybatis.spring.mapper.ClassPathMapperScanner(line/:286) -Identified candidate component class: file [E:\workspace2\.metadata\.plugins\org.eclipse.wst.server.core\tmp0\wtpwebapps\hgdcms\WEB-INF\classes\com\zhengyang\dao\ChargeDao.class]
[2016-11-30 10/:37/:51]DEBUG org.mybatis.spring.mapper.ClassPathMapperScanner(line/:286) -Identified candidate component class: file [E:\workspace2\.metadata\.plugins\org.eclipse.wst.server.core\tmp0\wtpwebapps\hgdcms\WEB-INF\classes\com\zhengyang\dao\LogDao.class]
[2016-11-30 10/:37/:51]DEBUG org.mybatis.spring.mapper.ClassPathMapperScanner(line/:286) -Identified candidate component class: file [E:\workspace2\.metadata\.plugins\org.eclipse.wst.server.core\tmp0\wtpwebapps\hgdcms\WEB-INF\classes\com\zhengyang\dao\NoticeDao.class]
[2016-11-30 10/:37/:51]DEBUG org.mybatis.spring.mapper.ClassPathMapperScanner(line/:286) -Identified candidate component class: file [E:\workspace2\.metadata\.plugins\org.eclipse.wst.server.core\tmp0\wtpwebapps\hgdcms\WEB-INF\classes\com\zhengyang\dao\PrisonerDao.class]
[2016-11-30 10/:37/:51]DEBUG org.mybatis.spring.mapper.ClassPathMapperScanner(line/:286) -Identified candidate component class: file [E:\workspace2\.metadata\.plugins\org.eclipse.wst.server.core\tmp0\wtpwebapps\hgdcms\WEB-INF\classes\com\zhengyang\dao\UserDao.class]
[2016-11-30 10/:37/:51]DEBUG org.mybatis.spring.mapper.ClassPathMapperScanner(line/:286) -Identified candidate component class: file [E:\workspace2\.metadata\.plugins\org.eclipse.wst.server.core\tmp0\wtpwebapps\hgdcms\WEB-INF\classes\com\zhengyang\dao\UserInfoDao.class]
[2016-11-30 10/:37/:51]DEBUG org.mybatis.spring.mapper.ClassPathMapperScanner(line/:286) -Identified candidate component class: file [E:\workspace2\.metadata\.plugins\org.eclipse.wst.server.core\tmp0\wtpwebapps\hgdcms\WEB-INF\classes\com\zhengyang\dao\UserRoleDao.class]
[2016-11-30 10/:37/:51]DEBUG org.mybatis.spring.mapper.ClassPathMapperScanner(line/:181) -Creating MapperFactoryBean with name 'adminDao' and 'com.zhengyang.dao.AdminDao' mapperInterface
[2016-11-30 10/:37/:51]DEBUG org.mybatis.spring.mapper.ClassPathMapperScanner(line/:217) -Enabling autowire by type for MapperFactoryBean with name 'adminDao'.
[2016-11-30 10/:37/:51]DEBUG org.mybatis.spring.mapper.ClassPathMapperScanner(line/:181) -Creating MapperFactoryBean with name 'chargeDao' and 'com.zhengyang.dao.ChargeDao' mapperInterface
[2016-11-30 10/:37/:51]DEBUG org.mybatis.spring.mapper.ClassPathMapperScanner(line/:217) -Enabling autowire by type for MapperFactoryBean with name 'chargeDao'.
[2016-11-30 10/:37/:51]DEBUG org.mybatis.spring.mapper.ClassPathMapperScanner(line/:181) -Creating MapperFactoryBean with name 'logDao' and 'com.zhengyang.dao.LogDao' mapperInterface
[2016-11-30 10/:37/:51]DEBUG org.mybatis.spring.mapper.ClassPathMapperScanner(line/:217) -Enabling autowire by type for MapperFactoryBean with name 'logDao'.
[2016-11-30 10/:37/:51]DEBUG org.mybatis.spring.mapper.ClassPathMapperScanner(line/:181) -Creating MapperFactoryBean with name 'noticeDao' and 'com.zhengyang.dao.NoticeDao' mapperInterface
[2016-11-30 10/:37/:51]DEBUG org.mybatis.spring.mapper.ClassPathMapperScanner(line/:217) -Enabling autowire by type for MapperFactoryBean with name 'noticeDao'.
[2016-11-30 10/:37/:51]DEBUG org.mybatis.spring.mapper.ClassPathMapperScanner(line/:181) -Creating MapperFactoryBean with name 'prisonerDao' and 'com.zhengyang.dao.PrisonerDao' mapperInterface
[2016-11-30 10/:37/:51]DEBUG org.mybatis.spring.mapper.ClassPathMapperScanner(line/:217) -Enabling autowire by type for MapperFactoryBean with name 'prisonerDao'.
[2016-11-30 10/:37/:51]DEBUG org.mybatis.spring.mapper.ClassPathMapperScanner(line/:181) -Creating MapperFactoryBean with name 'userDao' and 'com.zhengyang.dao.UserDao' mapperInterface
[2016-11-30 10/:37/:51]DEBUG org.mybatis.spring.mapper.ClassPathMapperScanner(line/:217) -Enabling autowire by type for MapperFactoryBean with name 'userDao'.
[2016-11-30 10/:37/:51]DEBUG org.mybatis.spring.mapper.ClassPathMapperScanner(line/:181) -Creating MapperFactoryBean with name 'userInfoDao' and 'com.zhengyang.dao.UserInfoDao' mapperInterface
[2016-11-30 10/:37/:51]DEBUG org.mybatis.spring.mapper.ClassPathMapperScanner(line/:217) -Enabling autowire by type for MapperFactoryBean with name 'userInfoDao'.
[2016-11-30 10/:37/:51]DEBUG org.mybatis.spring.mapper.ClassPathMapperScanner(line/:181) -Creating MapperFactoryBean with name 'userRoleDao' and 'com.zhengyang.dao.UserRoleDao' mapperInterface
[2016-11-30 10/:37/:51]DEBUG org.mybatis.spring.mapper.ClassPathMapperScanner(line/:217) -Enabling autowire by type for MapperFactoryBean with name 'userRoleDao'.
十一月 30, 2016 10:37:55 上午 org.apache.catalina.core.ApplicationContext log
信息: Initializing Spring embedded WebApplicationContext
[2016-11-30 10/:37/:55]DEBUG org.hibernate.validator.internal.engine.resolver.DefaultTraversableResolver(line/:70) -Cannot find javax.persistence.Persistence on classpath. Assuming non JPA 2 environment. All properties will per default be traversable.
[2016-11-30 10/:37/:55]DEBUG org.hibernate.validator.internal.engine.ConfigurationImpl(line/:156) -Setting custom MessageInterpolator of type org.springframework.validation.beanvalidation.LocaleContextMessageInterpolator
[2016-11-30 10/:37/:55]DEBUG org.hibernate.validator.internal.engine.ConfigurationImpl(line/:178) -Setting custom ConstraintValidatorFactory of type org.springframework.validation.beanvalidation.SpringConstraintValidatorFactory
[2016-11-30 10/:37/:55]DEBUG org.hibernate.validator.internal.engine.ConfigurationImpl(line/:192) -Setting custom ParameterNameProvider of type com.sun.proxy.$Proxy56
[2016-11-30 10/:37/:55]DEBUG org.hibernate.validator.internal.xml.ValidationXmlParser(line/:91) -Trying to load META-INF/validation.xml for XML based Validator configuration.
[2016-11-30 10/:37/:55]DEBUG org.hibernate.validator.internal.xml.ResourceLoaderHelper(line/:47) -Trying to load META-INF/validation.xml via user class loader
[2016-11-30 10/:37/:55]DEBUG org.hibernate.validator.internal.xml.ResourceLoaderHelper(line/:54) -Trying to load META-INF/validation.xml via TCCL
[2016-11-30 10/:37/:55]DEBUG org.hibernate.validator.internal.xml.ResourceLoaderHelper(line/:60) -Trying to load META-INF/validation.xml via Hibernate Validator's class loader
[2016-11-30 10/:37/:55]DEBUG org.hibernate.validator.internal.xml.ValidationXmlParser(line/:98) -No META-INF/validation.xml found. Using annotation based configuration only.
[2016-11-30 10/:38/:01]DEBUG org.apache.ibatis.logging.LogFactory(line/:135) -Logging initialized using 'class org.apache.ibatis.logging.slf4j.Slf4jImpl' adapter.
. ____ _ __ _ _
/\\ / ___'_ __ _ _(_)_ __ __ _ \ \ \ \
( ( )\___ | '_ | '_| | '_ \/ _` | \ \ \ \
\\/ ___)| |_)| | | | | || (_| | ) ) ) )
' |____| .__|_| |_|_| |_\__, | / / / /
=========|_|==============|___/=/_/_/_/
:: Spring Boot :: (v1.4.2.RELEASE)
[2016-11-30 10/:38/:17]DEBUG org.hibernate.validator.internal.engine.resolver.DefaultTraversableResolver(line/:70) -Cannot find javax.persistence.Persistence on classpath. Assuming non JPA 2 environment. All properties will per default be traversable.
[2016-11-30 10/:38/:17]INFO com.zhengyang.ServletInitializer(line/:661) -No active profile set, falling back to default profiles: default
[2016-11-30 10/:38/:19]DEBUG org.mybatis.spring.mapper.ClassPathMapperScanner(line/:286) -Identified candidate component class: file [E:\workspace2\.metadata\.plugins\org.eclipse.wst.server.core\tmp0\wtpwebapps\hgdcms\WEB-INF\classes\com\zhengyang\dao\AdminDao.class]
[2016-11-30 10/:38/:19]DEBUG org.mybatis.spring.mapper.ClassPathMapperScanner(line/:286) -Identified candidate component class: file [E:\workspace2\.metadata\.plugins\org.eclipse.wst.server.core\tmp0\wtpwebapps\hgdcms\WEB-INF\classes\com\zhengyang\dao\ChargeDao.class]
[2016-11-30 10/:38/:19]DEBUG org.mybatis.spring.mapper.ClassPathMapperScanner(line/:286) -Identified candidate component class: file [E:\workspace2\.metadata\.plugins\org.eclipse.wst.server.core\tmp0\wtpwebapps\hgdcms\WEB-INF\classes\com\zhengyang\dao\LogDao.class]