目录
idea: Unable to parse template "class"
Spring Boot Application in default package
os.detected.classifier报红
具体提示信息:
Could not find artifact com.google.protobuf:protoc:exe:${os.detected.classifier}:3.3.0 in
解决方案:
看build标签的最后,加的就是这个东西
<build>
<plugins>
<plugin>
<groupId>org.xolstice.maven.plugins</groupId>
<artifactId>protobuf-maven-plugin</artifactId>
<version>0.6.1</version>
<configuration>
<protocArtifact>com.google.protobuf:protoc:3.3.0:exe:${os.detected.classifier}</protocArtifact>
<pluginId>grpc-java</pluginId>
<pluginArtifact>io.grpc:protoc-gen-grpc-java:1.6.1:exe:${os.detected.classifier}</pluginArtifact>
<protoSourceRoot>src/main/proto</protoSourceRoot>
<outputDirectory>src/main/java</outputDirectory>
<clearOutputDirectory>false</clearOutputDirectory>
</configuration>
<executions>
<execution>
<goals>
<goal>compile</goal>
<goal>compile-custom</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
<extensions>
<extension>
<groupId>kr.motd.maven</groupId>
<artifactId>os-maven-plugin</artifactId>
<version>1.6.2</version>
</extension>
</extensions>
</build>
idea: Unable to parse template "class"
无法解析class模板
网上一般都是选择模板的时候默认好像是text文件了,通过setting -> file type,找到对应的text类型的文件,拉到最后面就会看到你创建的文件名,删掉即可
而我出现的这个报错的原因是加了一个撒刁插件,害得我找了半天原因
Spring Boot Application in default package
把类的位置改一下就可以了