Using deprecated ‘-debug‘ fallback for parameter name resolution. Compile the affected code with ‘-p

升到Springboo3之后在启动时看到了以下Warning:

Using deprecated ‘-debug’ fallback for parameter name resolution. Compile the affected code with ‘-parameters’ instead or avoid its introspection: com.xxx

先列解决方案

			<plugin>
                <groupId>org.apache.maven.pluginsgroupId>
                <artifactId>maven-compiler-pluginartifactId>
                <version>${maven-compiler-plugin.version}version>
                <configuration>
                    <source>${maven.compiler.source}source>
                    <target>${maven.compiler.target}target>
                    <compilerArgs>
                        <compilerArg>
                            -parameters
                        compilerArg>
                    compilerArgs>
                configuration>
            plugin>

其实就是按照日志里面提示的,在compile的时候加一个参数 -parameters,加上之后问题就可以解决。

你可能感兴趣的:(Spingboot3,spring,boot)