# jpush-spring-boot-starter **Repository Path**: jews/jpush-spring-boot-starter ## Basic Information - **Project Name**: jpush-spring-boot-starter - **Description**: jpush-spring-boot-starter - **Primary Language**: Java - **License**: Apache-2.0 - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 1 - **Created**: 2024-04-15 - **Last Updated**: 2024-04-15 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # jpush-spring-boot-starter Spring Boot Starter For JPush ### 说明 > 基于 jpush-client 的 Spring Boot Starter 实现 1. 官网地址: https://www.jiguang.cn/push ### Maven ``` xml com.github.hiwepy jpush-spring-boot-starter ${project.version} ``` ### Sample ```java import java.io.IOException; import javax.annotation.PostConstruct; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.boot.SpringApplication; import org.springframework.boot.autoconfigure.SpringBootApplication; @EnableJPush @SpringBootApplication public class Application { @Autowired JPushTemplate template; @PostConstruct public void test() throws IOException { PushObject pushObject = new PushObject(); System.out.println(template.sendPush(pushObject)); } public static void main(String[] args) throws Exception { SpringApplication.run(Application.class, args); } } ``` yaml配置,参考如下: ```yaml jpush: master-secret: zzz app-key: xxx production: false ```