#586·COLA

感觉cola5的Java和springboot版本有点混乱

作者: HuhaStephen创建于 2025年5月10日更新于 2025年12月16日

The version used in cola-components is as follows: <properties> <java.version>17</java.version> <maven.compiler.source>17</maven.compiler.source> <maven.compiler.target>17</maven.compiler.target> <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> <spring.boot.version>3.1.0</spring.boot.version> </properties> However, the generated project and the one used by craftsman are: <properties> <maven.compiler.source>1.8</maven.compiler.source> <maven.compiler.target>${maven.compiler.source}</maven.compiler.target> <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding> <maven.deploy.skip>true</maven.deploy.skip> <cola.components.version>5.0.0</cola.components.version> <spring-boot.version>2.7.5</spring-boot.version> <mybatis-starter.version>2.2.2</mybatis-starter.version> </properties> This causes the example project to fail to start. I had to upgrade my Java version to get the service up and running, and when I upgraded spring boot to 3.0+, the project crashed.