該当する依存性はありませんので
パッケージcom.taotao.config。 輸入org.mybatis.spring.annotation.MapperScan; 輸入org.springframework.boot.SpringApplication。 輸入org.springframework.boot.autoconfigure.SpringBootApplication。 輸入org.springframework.context.annotation.ComponentScan; // springboot项目唯一入口配置 @SpringBootApplication // 扫描整个com.zjdfwl.mall包 @ComponentScan(basePackages = "com.taotao" ) @MapperScan( "com.taotao.mapper" ) パブリック クラスアプリケーション{ 公共 静的 ボイドメイン(文字列[]引数){ System.out.printlnは("zouzhele" ); SpringApplication.run(アプリケーションクラス、引数)。 } }
<! - MyBatisの-PLUS - > < 依存> < groupIdを> com.baomidou </ groupIdを> < たartifactId > MyBatisの-PLUS-ブートスターター</ たartifactId > < バージョン> 2.3 </ バージョン> </ 依存関係> < ! - 次のデフォルトを使用して、コードジェネレータエンジンテンプレート- > < 依存> < groupIdを> org.apache.velocity </ groupIdを> < たartifactId >速度エンジンコア</ たartifactId > < バージョン> 2.0 </ バージョン> </ 依存>
対応する依存性と同様にプラス