在我创建的项目的子文件ownApplication.java中出现了一个报错:Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.1:compile (default-compile) on project own-framework: Unable to parse configuration of mojo org.apache.maven.plugins:maven-compiler-plugin:3.1:compile: Basic element 'source' must not contain child elements
然后解决办法是在pom文件中讲maven的一个编译插件带入进去
随后出现第二个错误:error:Kotlin:module was compiled with an incompatible version of kotlin the binary version of its metadata is。。。
这个错误是提示jar包的版本冲突,两种解决方案:
然后我在执行的过程中第二种没有成功,于是采用第三种,得到了想要 的结果。测试成功
这是因为在代码编写的过程中引入了Sequarity,被拦截了下来。想要取消这个界面只需要在pom文件中将Sequarity的依赖注销就可以了。