1.変更POMファイル
の変更は、戦争としてパッケージ化され、
範囲のTomcatアドオンは、外部からのリリース時に提供される意味は、組み込みのTomcatはにパッケージ化されることはありません提供しました
<groupId>com.school</groupId>
<artifactId>daniel</artifactId>
<version>0.0.1-SNAPSHOT</version>
<name>daniel</name>
<description>student information project for Spring Boot</description>
<!--打包方式,发布时使用此项-->
<packaging>war</packaging>
<properties>
<java.version>1.8</java.version>
</properties>
<dependencies>
<!--需要发布发war包时使用-->
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-tomcat</artifactId>
<scope>provided</scope>
</dependency>
2. Aの後継SpringBootServletInitializer必要が戦争パッケージの展開、継承など、書き換えconfigureメソッドへの必要性を戦うためにならば、クラスまたはクラスコンフィギュレーションを開始します。
@SpringBootApplication
public class DanielApplication extends SpringBootServletInitializer {
protected SpringApplicationBuilder configure(SpringApplicationBuilder builder) {
return builder.sources(DanielApplication.class);
}
public static void main(String[] args) {
SpringApplication.run(DanielApplication.class, args);
}
}
注:
あなたは、最新バージョンのspringbootが報告されます使用している場合は、私が使っていた
2.2.0.RELEASE、:springboot-スターター親
MyBatisの-springboot-スターター:2.1.1
解決し、以下のような問題点の修正版を情報を照会することにより、アップグレード後のバックは問題になりませんし、最新バージョンのspringbootのMyBatisの互換性を持つ、今問題がある見つけました。
「mybatis.configuration.mapped-下バインドプロパティに失敗しまし文[0] .parameter-map.parameter- ...
<parent>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-parent</artifactId>
<!--<version>2.2.0.RELEASE</version>-->
<version>2.1.5.RELEASE</version>
<relativePath/> <!-- lookup parent from repository -->
</parent>
<dependency>
<groupId>org.mybatis.spring.boot</groupId>
<artifactId>mybatis-spring-boot-starter</artifactId>
<!-- <version>2.1.1</version>-->
<version>2.0.1</version>
</dependency>
添付ファイル:外部Tomcatの展開は史郎を使用することができない場合は、上記の問題は解決されているが、私のプロジェクトがshiroフレームワークを使用しました。アイデアの変化なしバージョンが存在しない場合には、通常のを使用することです...