修改项目提示的文档构建错误

This commit is contained in:
YuCheng Hu 2023-01-11 16:04:39 -05:00
parent f288ef5bca
commit 007ce8124b
15 changed files with 49 additions and 5 deletions

45
pom.xml
View File

@ -86,11 +86,30 @@
</dependency> </dependency>
</dependencies> </dependencies>
<build> <build>
<pluginManagement>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-deploy-plugin</artifactId>
<version>3.0.0</version>
<executions>
<execution>
<id>default-deploy</id>
<phase>deploy</phase>
<goals>
<goal>deploy</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</pluginManagement>
<plugins> <plugins>
<plugin> <plugin>
<groupId>org.apache.maven.plugins</groupId> <groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-source-plugin</artifactId> <artifactId>maven-source-plugin</artifactId>
<version>2.2.1</version> <version>3.2.1</version>
<executions> <executions>
<execution> <execution>
<id>attach-sources</id> <id>attach-sources</id>
@ -100,6 +119,30 @@
</execution> </execution>
</executions> </executions>
</plugin> </plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-javadoc-plugin</artifactId>
<version>3.4.1</version>
<configuration>
<source>11</source>
</configuration>
<executions>
<execution>
<id>attach-javadocs</id>
<goals>
<goal>jar</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.10.1</version>
<configuration>
<release>11</release>
</configuration>
</plugin>
</plugins> </plugins>
</build> </build>
</project> </project>

View File

@ -10,7 +10,7 @@ import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.bind.annotation.RestController; import org.springframework.web.bind.annotation.RestController;
/** /**
* Batch Controller to response all batch process request * WeChatController to process WeChat request
* *
* @author YuCheng Hu * @author YuCheng Hu
*/ */
@ -19,13 +19,14 @@ import org.springframework.web.bind.annotation.RestController;
@Slf4j @Slf4j
public class WeChatController { public class WeChatController {
@Autowired @Autowired
private WxMpService mpService; private WxMpService mpService;
/** /**
* @return * Get weChat access token
*
* @return The access token
* @throws WxErrorException WeChat API Error
*/ */
@GetMapping("/token") @GetMapping("/token")
@ResponseBody @ResponseBody