├── quick-container ├── src │ └── main │ │ ├── assembly │ │ ├── bin │ │ │ └── start.bat │ │ ├── Dockerfile │ │ └── conf │ │ │ └── application.properties │ │ ├── k3s │ │ ├── app-yaml │ │ │ └── index.html │ │ ├── ingress │ │ │ ├── nginx-service-a.yaml │ │ │ ├── nginx-service-b.yaml │ │ │ ├── cluster.yaml │ │ │ ├── nginx-ingress-a.yaml │ │ │ ├── nginx-ingress-b.yaml │ │ │ ├── nginx-a.yaml │ │ │ └── nginx-b.yaml │ │ └── nodeport │ │ │ ├── nginx-service.yaml │ │ │ ├── cluster.yaml │ │ │ └── nginx.yaml │ │ └── resources │ │ └── application.properties └── .DS_Store ├── quick-abstract-template ├── README.md ├── src │ └── main │ │ ├── resources │ │ └── application.yml │ │ └── java │ │ └── com │ │ └── quick │ │ └── abs │ │ ├── strategy │ │ ├── base │ │ │ ├── component │ │ │ │ ├── Water.java │ │ │ │ ├── Oxygen.java │ │ │ │ └── Wing.java │ │ │ ├── ability │ │ │ │ ├── BaseAbility.java │ │ │ │ ├── Fly.java │ │ │ │ └── Speak.java │ │ │ ├── Creature.java │ │ │ └── Animal.java │ │ ├── Duck.java │ │ ├── Penguin.java │ │ └── DonaldDuck.java │ │ └── AbstractTemplateApplication.java └── img.png ├── quick-profiles ├── README.md ├── api │ └── src │ │ └── main │ │ ├── resources │ │ └── application.yml │ │ └── java │ │ └── com │ │ └── profiles │ │ └── TestMain.java ├── base │ ├── src │ │ └── main │ │ │ └── java │ │ │ └── com │ │ │ └── profiles │ │ │ └── base │ │ │ └── HelloService.java │ └── pom.xml ├── module1 │ └── src │ │ └── main │ │ └── java │ │ └── com │ │ └── profiles │ │ └── module1 │ │ └── HelloServiceImpl.java └── module2 │ ├── src │ └── main │ │ └── java │ │ └── com │ │ └── profiles │ │ └── module2 │ │ └── HelloServiceImpl.java │ └── pom.xml ├── quick-graphQL └── src │ └── main │ ├── resources │ ├── application.properties │ └── schema.graphqls │ └── java │ └── com │ └── quick │ └── graphql │ └── GraphQLApplication.java ├── quick-dubbo-nacos ├── share-config │ ├── src │ │ └── main │ │ │ ├── assembly │ │ │ ├── bin │ │ │ │ └── start.bat │ │ │ └── conf │ │ │ │ └── application.properties │ │ │ ├── resources │ │ │ └── application.yml │ │ │ └── java │ │ │ └── com │ │ │ └── quick │ │ │ └── share │ │ │ └── config │ │ │ └── ShareConfigApplication.java │ ├── .DS_Store │ └── README.md ├── service │ └── src │ │ └── main │ │ ├── java │ │ ├── .DS_Store │ │ └── com │ │ │ └── quick │ │ │ └── nacos │ │ │ ├── config │ │ │ └── NacosConfig.java │ │ │ ├── service │ │ │ └── OtherService.java │ │ │ └── NacosServiceApp.java │ │ └── resources │ │ └── application.properties ├── provider │ ├── src │ │ └── main │ │ │ └── java │ │ │ └── com.quick.nacos.provider │ │ │ ├── HelloProvider.java │ │ │ └── OtherProvider.java │ └── pom.xml ├── README.md └── consumer │ └── src │ └── main │ ├── java │ └── com │ │ └── quick │ │ └── nacos │ │ └── consumer │ │ └── NacosConsumerApp.java │ └── resources │ └── application.properties ├── quick-platform └── README.md ├── quick-async └── src │ └── main │ ├── resources │ └── application.properties │ └── java │ └── com │ └── async │ └── AsyncApplication.java ├── quick-hmac └── src │ └── main │ ├── resources │ └── application.yml │ └── java │ └── com │ └── quick │ └── hmac │ └── HmacApplication.java ├── quick-rocketmq └── src │ └── main │ ├── resources │ └── application.properties │ └── java │ └── com │ └── rocketmq │ ├── TestMain.java │ ├── Application.java │ └── controller │ └── ApiController.java ├── quick-vue └── src │ └── main │ ├── resources │ ├── application.properties │ └── banner.txt │ └── java │ └── com │ └── vue │ ├── VueApplication.java │ └── controller │ └── ApiController.java ├── quick-rest-template └── src │ └── main │ ├── resources │ └── application.yml │ └── java │ └── com │ └── rest │ └── template │ ├── model │ └── TestDTO.java │ └── Application.java ├── .DS_Store ├── quick-i18n └── src │ └── main │ ├── resources │ ├── i18n │ │ ├── messages.properties │ │ ├── messages_zh.properties │ │ └── messages_en.properties │ └── application.properties │ └── java │ └── com │ └── quick │ └── source │ └── Application.java ├── quick-exception └── src │ └── main │ ├── resources │ └── application.properties │ └── java │ └── com │ └── quick │ └── exception │ └── ExceptionApplication.java ├── quick-shiro └── src │ ├── main │ ├── resources │ │ └── static │ │ │ └── getIndex.html │ └── java │ │ └── com │ │ └── shiro │ │ └── quick │ │ ├── service │ │ └── TestService.java │ │ ├── controller │ │ └── AnnoController.java │ │ ├── ShiroApplication.java │ │ ├── TestMain.java │ │ ├── shiro │ │ ├── utils │ │ │ └── ShiroUtil.java │ │ ├── token │ │ │ └── HeaderToken.java │ │ └── HeaderDefaultSubjectFactory.java │ │ ├── config │ │ └── WebConfig.java │ │ └── intecepter │ │ └── AccessInterceptor.java │ └── test │ └── java │ └── com │ └── quick │ └── AppTest.java ├── quick-starter-demo └── src │ ├── test │ └── resources │ │ └── application.yml │ └── main │ └── java │ └── com │ └── quick │ └── starter │ └── demo │ └── StarterApplication.java ├── images └── qiafan.png ├── quick-feign ├── src │ └── main │ │ ├── resources │ │ └── application.properties │ │ └── java │ │ └── com │ │ └── quick │ │ └── feign │ │ ├── service │ │ └── FeignService.java │ │ └── TestMain.java └── README.md ├── quick-log ├── img.png └── src │ └── main │ ├── resources │ ├── application.properties │ └── application-pro.properties │ └── java │ └── com │ └── quick │ └── log │ └── util │ └── LogExceptionUtil.java ├── .travis.yml ├── quick-mail └── src │ ├── .DS_Store │ └── main │ ├── .DS_Store │ ├── java │ ├── .DS_Store │ └── com │ │ ├── quick │ │ └── .DS_Store │ │ └── EmailApplication.java │ └── resources │ ├── bang.jpeg │ ├── templates │ └── wel.html │ └── application.properties ├── quick-oss └── src │ └── main │ └── resources │ ├── application.properties │ └── oss.properties ├── quick-config-encrypt ├── README.md └── src │ └── main │ ├── resources │ └── application.yml │ └── java │ └── com │ └── quick │ └── encrypt │ ├── service │ └── BizService.java │ └── EncryptApplication.java ├── quick-method-evaluate └── .DS_Store ├── quick-sample-server ├── sample-server │ ├── src │ │ └── main │ │ │ ├── resources │ │ │ ├── application.properties │ │ │ ├── templates │ │ │ │ ├── mapper.java.vm │ │ │ │ └── service.java.vm │ │ │ └── application-jdbc.properties │ │ │ └── java │ │ │ └── com │ │ │ └── quick │ │ │ ├── mapper │ │ │ └── SampleTableMapper.java │ │ │ ├── CustomApplication.java │ │ │ └── service │ │ │ └── SampleTableService.java │ └── pom.xml ├── archetype.properties └── sample-api │ ├── src │ └── main │ │ └── java │ │ └── com │ │ └── sample │ │ └── api │ │ └── SampleController.java │ └── pom.xml ├── quick-saturn └── src │ └── main │ ├── resources │ └── application.yml │ └── java │ └── com │ └── quick │ └── saturn │ └── SaturnApplication.java ├── quick-wx-public └── src │ └── main │ └── java │ └── com │ └── wx │ └── pn │ ├── api │ ├── utils │ │ ├── WXUtil.java │ │ └── WXTip.java │ ├── handler │ │ └── ApiConfigChangeHandle.java │ ├── enums │ │ ├── ChangeType.java │ │ └── MediaType.java │ ├── servlet │ │ └── WeixinSupport.java │ ├── model │ │ ├── Model.java │ │ ├── TextMessage.java │ │ ├── VoiceMessage.java │ │ ├── AccessToken.java │ │ ├── Voice.java │ │ └── ReqType.java │ ├── exception │ │ └── WeixinException.java │ └── response │ │ ├── SendTemplateResponse.java │ │ ├── AddTemplateResponse.java │ │ └── GetJsApiTicketResponse.java │ ├── model │ └── Test.java │ ├── utils │ └── LogExceptionUtil.java │ └── config │ └── CorsConfig.java ├── quick-img2txt └── src │ └── main │ ├── resources │ ├── code.jpg │ ├── code2.png │ ├── spider.jpg │ └── templates │ │ ├── 404.ftl │ │ ├── 500.ftl │ │ └── error.ftl │ └── java │ └── com │ └── quick │ ├── verificationCode │ └── Main.java │ └── controller │ └── HelloController.java ├── quick-multi-api-invoker └── src │ └── main │ └── java │ └── com │ └── quick │ ├── service │ ├── ApiService.java │ └── base │ │ ├── ApiVerify.java │ │ └── AbstractApiInvoker.java │ ├── dto │ ├── BaseRequestBody.java │ ├── BaseRequestParam.java │ └── BaseResponseBody.java │ └── ApiInvokerApp.java ├── quick-jwt └── src │ └── main │ └── java │ └── com │ └── quick │ ├── .DS_Store │ └── jwt │ ├── .DS_Store │ ├── model │ └── Role.java │ ├── repository │ └── UserRepository.java │ ├── controller │ └── AppController.java │ └── exception │ └── CustomException.java ├── quick-logback └── src │ └── main │ ├── resources │ └── application.properties │ └── java │ └── com │ └── logback │ └── Application.java ├── quick-modules ├── doc │ └── WX20180810-230910@2x.png ├── test │ └── src │ │ └── main │ │ └── java │ │ └── com │ │ └── multi │ │ └── test │ │ ├── service │ │ ├── CityService.java │ │ └── impl │ │ │ └── CityServiceImpl.java │ │ └── Application.java ├── service1 │ └── src │ │ └── main │ │ └── java │ │ └── com │ │ └── modules │ │ ├── service │ │ ├── CityService.java │ │ └── impl │ │ │ └── CityServiceImpl.java │ │ └── Application.java ├── service2 │ └── src │ │ └── main │ │ └── java │ │ └── com │ │ └── modules │ │ ├── service │ │ ├── CountryService.java │ │ └── impl │ │ │ └── CountryServiceImpl.java │ │ └── Application.java └── dao │ └── src │ └── main │ └── java │ └── com │ └── modules │ └── dao │ ├── CityMapper.java │ └── CountryMapper.java ├── quick-spring-shiro ├── src │ └── main │ │ ├── resources │ │ ├── application.yml │ │ └── .DS_Store │ │ └── java │ │ └── com │ │ └── shiro │ │ ├── constant │ │ └── Codes.java │ │ ├── ShiroApplication.java │ │ ├── controller │ │ └── BusController.java │ │ ├── entity │ │ ├── RolePerm.java │ │ └── UserRole.java │ │ └── service │ │ └── RoleService.java └── README.md ├── quick-cache └── src │ └── main │ └── java │ └── com │ └── quick │ ├── .DS_Store │ └── cache │ ├── repo │ └── BookRepository.java │ ├── CacheApplication.java │ └── config │ └── SelfCacheManager.java ├── quick-package-assembly └── src │ └── main │ ├── bin │ ├── start.sh │ └── stop.sh │ ├── resources │ ├── env │ │ ├── local │ │ │ └── application.properties │ │ ├── test │ │ │ └── application.properties │ │ └── product │ │ │ └── application.properties │ └── application.properties │ └── java │ └── com │ └── quick │ └── Application.java ├── quick-sse └── src │ └── main │ ├── resources │ └── application.yml │ └── java │ └── com │ └── quick │ ├── vo │ ├── SseEmitterResultVO.java │ └── Message.java │ ├── constant │ └── SseEmitterConstant.java │ ├── App.java │ └── exception │ └── BusinessException.java ├── nacos-common-config ├── README.md └── pom.xml ├── quick-kafka └── src │ └── main │ ├── java │ └── com │ │ └── quick │ │ └── kafka │ │ ├── .DS_Store │ │ ├── KafkaApplication.java │ │ ├── controller │ │ └── ApiController.java │ │ └── service │ │ └── simulation │ │ └── SimulationService.java │ └── resources │ ├── logback.xml │ └── application.yml ├── quick-package-assembly-multi-env └── src │ └── main │ ├── bin │ ├── start.sh │ └── stop.sh │ ├── java │ └── com │ │ └── quick │ │ └── Application.java │ └── resources │ ├── application.properties │ └── env │ ├── test │ └── application.properties │ ├── local │ └── application.properties │ └── product │ └── application.properties ├── quick-shiro-cas ├── src │ └── main │ │ ├── java │ │ └── com │ │ │ └── shiro │ │ │ ├── service │ │ │ └── UserService.java │ │ │ └── ShiroCasApplication.java │ │ └── resources │ │ ├── server.keystore │ │ └── application.properties └── README.md ├── quick-jsp └── src │ ├── main │ ├── resources │ │ └── application.properties │ ├── webapp │ │ └── WEB-INF │ │ │ └── jsp │ │ │ └── welcome.jsp │ └── java │ │ └── com │ │ └── quick │ │ └── QuickJspApplication.java │ └── test │ └── java │ └── com │ └── quick │ └── jsp │ └── QuickJspApplicationTests.java ├── quick-swagger └── src │ └── main │ ├── resources │ └── application.properties │ └── java │ └── com │ └── quick │ └── config │ └── CorsConfig.java ├── quick-dubbo ├── dubbo-api │ ├── src │ │ └── main │ │ │ └── java │ │ │ └── com │ │ │ └── dubbo │ │ │ └── api │ │ │ └── HelloService.java │ └── pom.xml ├── dubbo-producer │ └── src │ │ └── main │ │ ├── java │ │ └── com │ │ │ ├── dubbo │ │ │ └── producer │ │ │ │ └── service │ │ │ │ └── HelloServiceImpl.java │ │ │ └── DubboProviderApplication.java │ │ └── resources │ │ └── application.properties └── dubbo-consumer │ └── src │ └── main │ ├── java │ └── com │ │ ├── DubboConsumerApplication.java │ │ └── dubbo │ │ └── consumer │ │ ├── service │ │ └── HelloServiceImpl.java │ │ └── controller │ │ └── ApiController.java │ └── resources │ └── application.properties ├── quick-oauth2 ├── quick-github-oauth │ └── src │ │ └── main │ │ ├── webapp │ │ ├── css │ │ │ └── main.css │ │ └── images │ │ │ └── GitHub_Logo.png │ │ ├── resources │ │ ├── application.properties │ │ └── templates │ │ │ └── user │ │ │ └── info.html │ │ └── java │ │ └── com │ │ └── github │ │ └── oauth │ │ ├── user │ │ ├── IUserService.java │ │ ├── UserRepo.java │ │ └── UserController.java │ │ ├── controller │ │ ├── PublicController.java │ │ └── LoginController.java │ │ ├── config │ │ └── ServletInitializer.java │ │ └── common │ │ └── ICommonService.java ├── quick-oauth2-server │ └── src │ │ └── main │ │ ├── java │ │ └── com │ │ │ └── quick │ │ │ └── auth │ │ │ └── server │ │ │ └── mapper │ │ │ └── AccountRepository.java │ │ └── resources │ │ └── application.properties └── pom.xml ├── quick-starter └── src │ └── main │ ├── resources │ ├── META-INF │ │ └── spring.factories │ └── banner.txt │ └── java │ └── com │ └── quick │ └── starter │ └── autoconfigure │ ├── HelloService.java │ ├── BannerApplication.java │ └── QuickProperties.java ├── quick-flowable ├── 57501_178cba2c-31e7-42ee-a5d0-c8ca3e50f762.png ├── 57501_d588f9dc-9b54-44e0-b476-e3b18f62320f_.png └── src │ └── main │ ├── java │ └── com │ │ └── quick │ │ └── flowable │ │ ├── FlowableApplication.java │ │ └── listener │ │ ├── ForgetFightListener.java │ │ └── SendRejectionMail.java │ └── resources │ └── application.properties ├── quick-vw-crawler └── src │ └── main │ ├── resources │ ├── WX20180722-110714@2x.png │ ├── WX20180722-103513@2x的副本.png │ └── application.properties │ └── java │ └── com │ └── crawler │ └── vw │ └── CrawlerApplication.java ├── quick-mongodb ├── src │ └── main │ │ ├── resources │ │ └── application.yml │ │ └── java │ │ └── com │ │ └── quick │ │ └── mongodb │ │ └── repo │ │ └── CustomerRepository.java └── README.md ├── quick-platform-common └── src │ └── main │ └── java │ └── com │ └── quick │ └── common │ └── base │ ├── dto │ ├── BaseRespDto.java │ └── BaseReqDto.java │ ├── exception │ └── MessageException.java │ └── rest │ └── BaseController.java ├── quick-abstract-template2 └── src │ └── main │ └── java │ └── com │ └── quick │ └── tp2 │ └── Main.java ├── quick-hbase └── src │ └── main │ ├── resources │ └── application.yml │ └── java │ └── com │ └── quick │ └── hbase │ ├── HbaseApplication.java │ └── config │ └── HbaseProperties.java ├── quick-multi-rabbitmq └── src │ └── main │ ├── java │ └── com │ │ └── multi │ │ └── rabbitmq │ │ ├── config │ │ └── RabbitMqInstance.java │ │ └── Application.java │ └── resources │ └── application.yml ├── quick-jdbc └── src │ └── main │ └── resources │ └── application.properties ├── quick-api-invoker └── src │ └── main │ └── java │ └── com │ └── quick │ └── api │ └── invoker │ ├── service │ └── ServerInvokerService.java │ ├── transform │ ├── AbstractTransformAdapter.java │ ├── request │ │ └── DefaultRequestTransformAdapter.java │ └── response │ │ └── DefaultResponseTransformAdapter.java │ ├── Main.java │ ├── Adapter.java │ ├── executor │ ├── bo │ │ └── ExecutorConfig.java │ ├── OkhttpExecutorAdapter.java │ └── AbstractExecutorAdapter.java │ └── model │ └── AdapterClassModel.java ├── quick-zookeeper └── src │ └── main │ └── java │ └── com │ └── quick │ └── zookeeper │ └── config │ └── ZKConstants.java ├── quick-mybatis-druid ├── src │ └── main │ │ ├── resources │ │ ├── mapper │ │ │ └── sys │ │ │ │ └── UserMapper.xml │ │ └── application.yml │ │ └── java │ │ └── com │ │ └── quick │ │ └── druid │ │ └── sys │ │ ├── service │ │ ├── IUserService.java │ │ └── impl │ │ │ └── UserServiceImpl.java │ │ └── mapper │ │ └── UserMapper.java └── db │ └── user.sql ├── mybatis-crypt-plugin-test └── src │ └── main │ └── java │ └── com │ └── quick │ └── crypt │ └── test │ ├── base │ ├── BaseMapper.java │ └── MessageException.java │ ├── config │ └── CustomerCryptor.java │ └── entity │ └── User.java ├── quick-sharding-jdbc └── src │ └── main │ ├── resources │ └── mapper │ │ └── AddressMapper.xml │ └── java │ └── com │ └── quick │ └── shardingjdbc │ ├── mapper │ └── AddressMapper.java │ ├── service │ ├── IAddressService.java │ └── impl │ │ └── AddressServiceImpl.java │ └── ShardingJdbcApplication.java ├── mybatis-crypt-plugin └── src │ └── main │ └── java │ └── com │ └── quick │ └── db │ └── crypt │ ├── annotation │ ├── CryptEntity.java │ └── CryptField.java │ ├── intercept │ └── CryptInterceptor.java │ ├── encrypt │ ├── Encrypt.java │ └── BaseEncrypt.java │ └── util │ ├── TestMain.java │ └── PluginUtils.java ├── quick-activemq ├── src │ └── main │ │ ├── resources │ │ └── application.properties │ │ └── java │ │ └── com │ │ └── mq │ │ ├── service │ │ └── Consumer.java │ │ └── ActiveMqApplication.java └── README.md ├── quick-rabbitmq └── src │ └── main │ ├── resources │ └── application.properties │ └── java │ └── com │ └── quick │ └── mq │ ├── scenes │ ├── moreSendMoreRecever │ │ ├── HelloMoreReceiver1.java │ │ └── HelloMoreReceiver2.java │ ├── single │ │ ├── HelloReceiver1.java │ │ └── HelloSender1.java │ ├── onesendmultirecver │ │ ├── HelloMoreReceiver1.java │ │ └── HelloMoreReceiver2.java │ ├── delayTask │ │ └── DelayReceiver.java │ ├── fanoutExChange │ │ ├── FanoutReceiverA.java │ │ ├── FanoutReceiverB.java │ │ └── FanoutReceiverC.java │ └── topicExChange │ │ ├── TopicMessageReceiver.java │ │ └── TopicMessagesReceiver.java │ └── util │ └── ExpirationMessagePostProcessor.java ├── quick-jpa └── src │ └── main │ ├── resources │ └── application.properties │ └── java │ └── com │ └── quick │ └── jpa │ └── repository │ └── JpaTestRepository.java ├── quick-multi-data └── src │ └── main │ └── java │ └── com │ └── quick │ └── mulit │ ├── service │ ├── CityService.java │ ├── ReaderService.java │ └── impl │ │ ├── CityServiceImpl.java │ │ └── ReaderServiceImpl.java │ ├── config │ └── DruidStatFilter.java │ └── Application.java ├── quick-lombok └── src │ └── main │ └── java │ └── com │ └── lombok │ ├── entity │ ├── Teacher.java │ ├── Student.java │ └── Adult.java │ ├── ValueTestMain.java │ ├── DataTestMain.java │ ├── BuilderTestMain.java │ ├── ValTestMain.java │ ├── GetterTestMain.java │ └── SynchronizedTestMain.java ├── quick-batch └── src │ └── main │ ├── resources │ ├── application.properties │ └── logback.xml │ └── java │ └── com │ └── quick │ └── batch │ ├── Application.java │ └── db │ └── DatabaseConfig.java ├── quick-archetype └── src │ └── main │ └── java │ └── com │ └── quick │ ├── mapper │ ├── DepotMapper.java │ └── xml │ │ └── DepotMapper.xml │ ├── service │ ├── DepotService.java │ └── impl │ │ └── DepotServiceImp.java │ └── controller │ └── DepotController.java ├── quick-app └── src │ └── main │ └── java │ └── com │ └── app │ └── controller │ ├── Application.java │ └── AppController.java ├── quick-redies └── src │ └── main │ ├── resources │ └── application.properties │ └── java │ └── com │ └── quick │ └── redis │ ├── util │ └── KeyUtil.java │ ├── service │ └── CompanyService.java │ └── Application.java ├── quick-dynamic-bean └── src │ └── main │ ├── java │ └── com │ │ └── dynamic │ │ └── bean │ │ └── box │ │ ├── Person.java │ │ └── AnonymousComponent.java │ └── resources │ └── application.yml ├── quick-undertow └── src │ └── main │ └── java │ └── com │ └── quick │ └── undertow │ └── Application.java ├── quick-monitor-thread └── src │ └── main │ └── java │ └── com │ └── monitor │ └── thread │ ├── Application.java │ ├── service │ └── SpecialService.java │ └── controller │ └── ApiController.java ├── quick-platform-component ├── src │ └── main │ │ └── java │ │ └── com │ │ └── quick │ │ └── component │ │ ├── enables │ │ ├── QsEnableGlobalExceptionHandler.java │ │ └── QsEnableAroundLog.java │ │ └── config │ │ └── GlobalHandlerConfig.java └── .gitignore ├── quick-config-server ├── src │ └── main │ │ └── resources │ │ └── application.properties └── ReadMe.md ├── quick-framework ├── base-adapter │ └── src │ │ └── main │ │ └── java │ │ └── com │ │ └── base │ │ └── adapter │ │ └── annoation │ │ └── EnableShiroConfig.java └── pom.xml ├── .github ├── workflows │ └── github2gitee.yml └── FUNDING.yml ├── quick-activemq2 └── src │ └── main │ └── java │ └── com │ └── active2 │ ├── Activemq2Application.java │ └── mq │ └── SingleConsumer.java ├── .gitignore └── quick-camunda └── src └── main └── resources └── processes └── one-task-process.bpmn20.xml /quick-container/src/main/assembly/bin/start.bat: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /quick-abstract-template/README.md: -------------------------------------------------------------------------------- 1 | ![img.png](img.png) -------------------------------------------------------------------------------- /quick-profiles/README.md: -------------------------------------------------------------------------------- 1 | # 使用profile控制需要引入的依赖、插件等等 -------------------------------------------------------------------------------- /quick-graphQL/src/main/resources/application.properties: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /quick-dubbo-nacos/share-config/src/main/assembly/bin/start.bat: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /quick-dubbo-nacos/share-config/src/main/resources/application.yml: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /quick-platform/README.md: -------------------------------------------------------------------------------- 1 | ## 不使用 spring-boot-starter-parent 构建 2 | -------------------------------------------------------------------------------- /quick-async/src/main/resources/application.properties: -------------------------------------------------------------------------------- 1 | server.port=8080 -------------------------------------------------------------------------------- /quick-container/src/main/k3s/app-yaml/index.html: -------------------------------------------------------------------------------- 1 |

hello nginx!

-------------------------------------------------------------------------------- /quick-hmac/src/main/resources/application.yml: -------------------------------------------------------------------------------- 1 | server: 2 | port: 9082 -------------------------------------------------------------------------------- /quick-rocketmq/src/main/resources/application.properties: -------------------------------------------------------------------------------- 1 | server.port=8080 -------------------------------------------------------------------------------- /quick-vue/src/main/resources/application.properties: -------------------------------------------------------------------------------- 1 | server.port = 8000 -------------------------------------------------------------------------------- /quick-dubbo-nacos/share-config/src/main/assembly/conf/application.properties: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /quick-rest-template/src/main/resources/application.yml: -------------------------------------------------------------------------------- 1 | server: 2 | port: 8080 -------------------------------------------------------------------------------- /.DS_Store: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vector4wang/spring-boot-quick/HEAD/.DS_Store -------------------------------------------------------------------------------- /quick-abstract-template/src/main/resources/application.yml: -------------------------------------------------------------------------------- 1 | server: 2 | port: 8080 -------------------------------------------------------------------------------- /quick-i18n/src/main/resources/i18n/messages.properties: -------------------------------------------------------------------------------- 1 | faild=操作失败 2 | success=操作成功 -------------------------------------------------------------------------------- /quick-exception/src/main/resources/application.properties: -------------------------------------------------------------------------------- 1 | 2 | server.port=9090 3 | -------------------------------------------------------------------------------- /quick-i18n/src/main/resources/i18n/messages_zh.properties: -------------------------------------------------------------------------------- 1 | faild=操作失败 2 | success=操作成功 -------------------------------------------------------------------------------- /quick-shiro/src/main/resources/static/getIndex.html: -------------------------------------------------------------------------------- 1 | 2 |

hello

3 | -------------------------------------------------------------------------------- /quick-starter-demo/src/test/resources/application.yml: -------------------------------------------------------------------------------- 1 | 2 | 3 | quick: 4 | name: wxc -------------------------------------------------------------------------------- /quick-profiles/api/src/main/resources/application.yml: -------------------------------------------------------------------------------- 1 | #spring: 2 | # profiles: 3 | # active: m2 -------------------------------------------------------------------------------- /images/qiafan.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vector4wang/spring-boot-quick/HEAD/images/qiafan.png -------------------------------------------------------------------------------- /quick-feign/src/main/resources/application.properties: -------------------------------------------------------------------------------- 1 | server.port=9090 2 | 3 | logging.level.root=info -------------------------------------------------------------------------------- /quick-i18n/src/main/resources/i18n/messages_en.properties: -------------------------------------------------------------------------------- 1 | faild=action faild 2 | success=action success -------------------------------------------------------------------------------- /quick-log/img.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vector4wang/spring-boot-quick/HEAD/quick-log/img.png -------------------------------------------------------------------------------- /.travis.yml: -------------------------------------------------------------------------------- 1 | language: java 2 | 3 | jdk: 4 | - oraclejdk9 5 | 6 | install: true 7 | 8 | script: test -B -------------------------------------------------------------------------------- /quick-mail/src/.DS_Store: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vector4wang/spring-boot-quick/HEAD/quick-mail/src/.DS_Store -------------------------------------------------------------------------------- /quick-container/.DS_Store: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vector4wang/spring-boot-quick/HEAD/quick-container/.DS_Store -------------------------------------------------------------------------------- /quick-oss/src/main/resources/application.properties: -------------------------------------------------------------------------------- 1 | logging.config=classpath:log4j2.xml 2 | #logging.level.root=error -------------------------------------------------------------------------------- /quick-config-encrypt/README.md: -------------------------------------------------------------------------------- 1 | # 配置文件加解密 2 | 使用见测试用例 3 | 4 | 其他内容,参见https://github.com/ulisesbocchio/jasypt-spring-boot -------------------------------------------------------------------------------- /quick-mail/src/main/.DS_Store: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vector4wang/spring-boot-quick/HEAD/quick-mail/src/main/.DS_Store -------------------------------------------------------------------------------- /quick-abstract-template/img.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vector4wang/spring-boot-quick/HEAD/quick-abstract-template/img.png -------------------------------------------------------------------------------- /quick-method-evaluate/.DS_Store: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vector4wang/spring-boot-quick/HEAD/quick-method-evaluate/.DS_Store -------------------------------------------------------------------------------- /quick-mail/src/main/java/.DS_Store: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vector4wang/spring-boot-quick/HEAD/quick-mail/src/main/java/.DS_Store -------------------------------------------------------------------------------- /quick-sample-server/sample-server/src/main/resources/application.properties: -------------------------------------------------------------------------------- 1 | server.port=8080 2 | 3 | spring.profiles.include=jdbc -------------------------------------------------------------------------------- /quick-saturn/src/main/resources/application.yml: -------------------------------------------------------------------------------- 1 | server: 2 | port: 8080 3 | 4 | app: 5 | class: com.quick.saturn.SaturnApplication -------------------------------------------------------------------------------- /quick-wx-public/src/main/java/com/wx/pn/api/utils/WXUtil.java: -------------------------------------------------------------------------------- 1 | package com.wx.pn.api.utils; 2 | 3 | public class WXUtil { 4 | } 5 | -------------------------------------------------------------------------------- /quick-log/src/main/resources/application.properties: -------------------------------------------------------------------------------- 1 | logging.config=classpath:log4j2.xml 2 | #logging.level.root=error 3 | 4 | server.port=8084 -------------------------------------------------------------------------------- /quick-mail/src/main/resources/bang.jpeg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vector4wang/spring-boot-quick/HEAD/quick-mail/src/main/resources/bang.jpeg -------------------------------------------------------------------------------- /quick-dubbo-nacos/share-config/.DS_Store: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vector4wang/spring-boot-quick/HEAD/quick-dubbo-nacos/share-config/.DS_Store -------------------------------------------------------------------------------- /quick-i18n/src/main/resources/application.properties: -------------------------------------------------------------------------------- 1 | # 2 | # 3 | # 4 | #spring.messages.basename=i18n/messages 5 | #spring.messages.encoding=UTF-8 -------------------------------------------------------------------------------- /quick-img2txt/src/main/resources/code.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vector4wang/spring-boot-quick/HEAD/quick-img2txt/src/main/resources/code.jpg -------------------------------------------------------------------------------- /quick-log/src/main/resources/application-pro.properties: -------------------------------------------------------------------------------- 1 | logging.config=classpath:log4j2.xml 2 | #logging.level.root=error 3 | 4 | server.port=8081 -------------------------------------------------------------------------------- /quick-multi-api-invoker/src/main/java/com/quick/service/ApiService.java: -------------------------------------------------------------------------------- 1 | package com.quick.service; 2 | 3 | public interface ApiService { 4 | } 5 | -------------------------------------------------------------------------------- /quick-img2txt/src/main/resources/code2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vector4wang/spring-boot-quick/HEAD/quick-img2txt/src/main/resources/code2.png -------------------------------------------------------------------------------- /quick-img2txt/src/main/resources/spider.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vector4wang/spring-boot-quick/HEAD/quick-img2txt/src/main/resources/spider.jpg -------------------------------------------------------------------------------- /quick-jwt/src/main/java/com/quick/.DS_Store: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vector4wang/spring-boot-quick/HEAD/quick-jwt/src/main/java/com/quick/.DS_Store -------------------------------------------------------------------------------- /quick-logback/src/main/resources/application.properties: -------------------------------------------------------------------------------- 1 | server.port=8080 2 | 3 | # TRACE, DEBUG, INFO, WARN, ERROR, FATAL, OFF 4 | logging.level.*=INFO -------------------------------------------------------------------------------- /quick-mail/src/main/java/com/quick/.DS_Store: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vector4wang/spring-boot-quick/HEAD/quick-mail/src/main/java/com/quick/.DS_Store -------------------------------------------------------------------------------- /quick-modules/doc/WX20180810-230910@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vector4wang/spring-boot-quick/HEAD/quick-modules/doc/WX20180810-230910@2x.png -------------------------------------------------------------------------------- /quick-spring-shiro/src/main/resources/application.yml: -------------------------------------------------------------------------------- 1 | server: 2 | port: 8080 3 | 4 | spring: 5 | main: 6 | allow-bean-definition-overriding: true -------------------------------------------------------------------------------- /quick-cache/src/main/java/com/quick/.DS_Store: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vector4wang/spring-boot-quick/HEAD/quick-cache/src/main/java/com/quick/.DS_Store -------------------------------------------------------------------------------- /quick-package-assembly/src/main/bin/start.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | TARGET_JAR=$(ls *.jar); 4 | TJ=${TARGET_JAR[0]} 5 | nohup java -jar $TJ > log.log & 6 | 7 | -------------------------------------------------------------------------------- /quick-sse/src/main/resources/application.yml: -------------------------------------------------------------------------------- 1 | server: 2 | port: 8080 3 | 4 | proxy: 5 | hostname: 127.0.0.1 6 | port: 1080 7 | 8 | chatgpt: 9 | key: -------------------------------------------------------------------------------- /quick-dubbo-nacos/service/src/main/java/.DS_Store: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vector4wang/spring-boot-quick/HEAD/quick-dubbo-nacos/service/src/main/java/.DS_Store -------------------------------------------------------------------------------- /quick-jwt/src/main/java/com/quick/jwt/.DS_Store: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vector4wang/spring-boot-quick/HEAD/quick-jwt/src/main/java/com/quick/jwt/.DS_Store -------------------------------------------------------------------------------- /quick-spring-shiro/src/main/resources/.DS_Store: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vector4wang/spring-boot-quick/HEAD/quick-spring-shiro/src/main/resources/.DS_Store -------------------------------------------------------------------------------- /nacos-common-config/README.md: -------------------------------------------------------------------------------- 1 | 该模块只是quick-dubbo-nacos里的shareconfig依赖的bootstrap.yml 2 | 3 | 抽取公共配置文件 4 | 5 | 验证时,最好不要在当前idea里验证,放在单独的idea里,mvn install 到本地repo中再由其他模块引入 -------------------------------------------------------------------------------- /quick-kafka/src/main/java/com/quick/kafka/.DS_Store: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vector4wang/spring-boot-quick/HEAD/quick-kafka/src/main/java/com/quick/kafka/.DS_Store -------------------------------------------------------------------------------- /quick-package-assembly-multi-env/src/main/bin/start.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | TARGET_JAR=$(ls *.jar); 4 | TJ=${TARGET_JAR[0]} 5 | nohup java -jar $TJ > log.log & 6 | 7 | -------------------------------------------------------------------------------- /quick-shiro-cas/src/main/java/com/shiro/service/UserService.java: -------------------------------------------------------------------------------- 1 | package com.shiro.service; 2 | 3 | public interface UserService { 4 | String getUsername(); 5 | } -------------------------------------------------------------------------------- /quick-shiro-cas/src/main/resources/server.keystore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vector4wang/spring-boot-quick/HEAD/quick-shiro-cas/src/main/resources/server.keystore -------------------------------------------------------------------------------- /quick-abstract-template/src/main/java/com/quick/abs/strategy/base/component/Water.java: -------------------------------------------------------------------------------- 1 | package com.quick.abs.strategy.base.component; 2 | 3 | public class Water { 4 | } 5 | -------------------------------------------------------------------------------- /quick-feign/README.md: -------------------------------------------------------------------------------- 1 | # 使用Feign作为http请求客户端 2 | 3 | 使用feign完成调用api的基本功能 4 | http client 可以根据自己喜好更换httpclietn、okhttp... 5 | 添加hystrix 6 | 7 | 8 | 后续会了解Feign和hystrix高级功能 9 | -------------------------------------------------------------------------------- /quick-oss/src/main/resources/oss.properties: -------------------------------------------------------------------------------- 1 | endpoint=oss-cn-beijing.aliyuncs.com 2 | accessKeyId=LTAIkGpE1rKyZgnN 3 | accessKeySecret=baZi2EsX3Bp6lVFxpOymAuAGUkIVWY 4 | -------------------------------------------------------------------------------- /quick-abstract-template/src/main/java/com/quick/abs/strategy/base/component/Oxygen.java: -------------------------------------------------------------------------------- 1 | package com.quick.abs.strategy.base.component; 2 | 3 | public class Oxygen { 4 | } 5 | -------------------------------------------------------------------------------- /quick-jsp/src/main/resources/application.properties: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | spring.mvc.view.prefix=/WEB-INF/jsp/ 6 | spring.mvc.view.suffix=.jsp 7 | application.message=Hello Phil -------------------------------------------------------------------------------- /quick-profiles/base/src/main/java/com/profiles/base/HelloService.java: -------------------------------------------------------------------------------- 1 | package com.profiles.base; 2 | 3 | public interface HelloService { 4 | 5 | void sayHello(); 6 | } 7 | -------------------------------------------------------------------------------- /quick-swagger/src/main/resources/application.properties: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vector4wang/spring-boot-quick/HEAD/quick-swagger/src/main/resources/application.properties -------------------------------------------------------------------------------- /quick-dubbo/dubbo-api/src/main/java/com/dubbo/api/HelloService.java: -------------------------------------------------------------------------------- 1 | package com.dubbo.api; 2 | 3 | public interface HelloService { 4 | String sayHello(String name); 5 | } 6 | -------------------------------------------------------------------------------- /quick-oauth2/quick-github-oauth/src/main/webapp/css/main.css: -------------------------------------------------------------------------------- 1 | .login { 2 | height: 600px; 3 | display: flex; 4 | align-items: center; 5 | justify-content: center; 6 | } -------------------------------------------------------------------------------- /quick-starter/src/main/resources/META-INF/spring.factories: -------------------------------------------------------------------------------- 1 | org.springframework.boot.autoconfigure.EnableAutoConfiguration=\ 2 | com.quick.starter.autoconfigure.QuickAutoConfiguration -------------------------------------------------------------------------------- /quick-config-encrypt/src/main/resources/application.yml: -------------------------------------------------------------------------------- 1 | jasypt: 2 | encryptor: 3 | password: e!Jd&ljyJ^e4I5oU 4 | 5 | 6 | app: 7 | key: ENC(EeLEEUGhQ+bXIoVs9bItmA==) 8 | name: -------------------------------------------------------------------------------- /quick-flowable/57501_178cba2c-31e7-42ee-a5d0-c8ca3e50f762.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vector4wang/spring-boot-quick/HEAD/quick-flowable/57501_178cba2c-31e7-42ee-a5d0-c8ca3e50f762.png -------------------------------------------------------------------------------- /quick-vw-crawler/src/main/resources/WX20180722-110714@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vector4wang/spring-boot-quick/HEAD/quick-vw-crawler/src/main/resources/WX20180722-110714@2x.png -------------------------------------------------------------------------------- /quick-flowable/57501_d588f9dc-9b54-44e0-b476-e3b18f62320f_.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vector4wang/spring-boot-quick/HEAD/quick-flowable/57501_d588f9dc-9b54-44e0-b476-e3b18f62320f_.png -------------------------------------------------------------------------------- /quick-vw-crawler/src/main/resources/WX20180722-103513@2x的副本.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vector4wang/spring-boot-quick/HEAD/quick-vw-crawler/src/main/resources/WX20180722-103513@2x的副本.png -------------------------------------------------------------------------------- /quick-wx-public/src/main/java/com/wx/pn/model/Test.java: -------------------------------------------------------------------------------- 1 | package com.wx.pn.model; 2 | 3 | /** 4 | * @author vector 5 | * @date: 2019/2/15 0015 11:43 6 | */ 7 | public class Test { 8 | } 9 | -------------------------------------------------------------------------------- /quick-container/src/main/assembly/Dockerfile: -------------------------------------------------------------------------------- 1 | FROM java:8 2 | COPY *.zip /app/app.zip 3 | RUN unzip -o /app/app.zip -d /app/ && rm -rf /app/app.zip 4 | 5 | WORKDIR /app/ 6 | CMD ["sh","bin/start.sh"] -------------------------------------------------------------------------------- /quick-multi-api-invoker/src/main/java/com/quick/service/base/ApiVerify.java: -------------------------------------------------------------------------------- 1 | package com.quick.service.base; 2 | 3 | public interface ApiVerify { 4 | void verify() throws Exception; 5 | } 6 | -------------------------------------------------------------------------------- /quick-img2txt/src/main/resources/templates/404.ftl: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 404 6 | 7 | 8 | 404 9 | 10 | 11 | -------------------------------------------------------------------------------- /quick-img2txt/src/main/resources/templates/500.ftl: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 500 6 | 7 | 8 | 500 9 | 10 | 11 | -------------------------------------------------------------------------------- /quick-abstract-template/src/main/java/com/quick/abs/strategy/base/ability/BaseAbility.java: -------------------------------------------------------------------------------- 1 | package com.quick.abs.strategy.base.ability; 2 | 3 | public interface BaseAbility { 4 | void action(); 5 | } 6 | -------------------------------------------------------------------------------- /quick-mongodb/src/main/resources/application.yml: -------------------------------------------------------------------------------- 1 | spring: 2 | data: 3 | mongodb: 4 | uri: mongodb://admin:Www1hirede@192.168.1.35:27017/test-springboot?authSource=admin&authMechanism=SCRAM-SHA-1 -------------------------------------------------------------------------------- /quick-oauth2/quick-github-oauth/src/main/webapp/images/GitHub_Logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vector4wang/spring-boot-quick/HEAD/quick-oauth2/quick-github-oauth/src/main/webapp/images/GitHub_Logo.png -------------------------------------------------------------------------------- /quick-img2txt/src/main/resources/templates/error.ftl: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | Error 6 | 7 | 8 | 文件大小超出范围(2m) 9 | 10 | 11 | -------------------------------------------------------------------------------- /quick-oauth2/quick-github-oauth/src/main/resources/application.properties: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vector4wang/spring-boot-quick/HEAD/quick-oauth2/quick-github-oauth/src/main/resources/application.properties -------------------------------------------------------------------------------- /quick-package-assembly/src/main/resources/env/local/application.properties: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vector4wang/spring-boot-quick/HEAD/quick-package-assembly/src/main/resources/env/local/application.properties -------------------------------------------------------------------------------- /quick-package-assembly/src/main/resources/env/test/application.properties: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vector4wang/spring-boot-quick/HEAD/quick-package-assembly/src/main/resources/env/test/application.properties -------------------------------------------------------------------------------- /quick-package-assembly/src/main/resources/env/product/application.properties: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vector4wang/spring-boot-quick/HEAD/quick-package-assembly/src/main/resources/env/product/application.properties -------------------------------------------------------------------------------- /quick-platform-common/src/main/java/com/quick/common/base/dto/BaseRespDto.java: -------------------------------------------------------------------------------- 1 | package com.quick.common.base.dto; 2 | 3 | import java.io.Serializable; 4 | 5 | public class BaseRespDto implements Serializable { 6 | } -------------------------------------------------------------------------------- /quick-multi-api-invoker/src/main/java/com/quick/service/base/AbstractApiInvoker.java: -------------------------------------------------------------------------------- 1 | package com.quick.service.base; 2 | 3 | public abstract class AbstractApiInvoker implements ApiInvoker, ApiVerify { 4 | 5 | 6 | } 7 | -------------------------------------------------------------------------------- /quick-platform-common/src/main/java/com/quick/common/base/dto/BaseReqDto.java: -------------------------------------------------------------------------------- 1 | package com.quick.common.base.dto; 2 | 3 | import java.io.Serializable; 4 | 5 | public class BaseReqDto implements Serializable { 6 | } 7 | -------------------------------------------------------------------------------- /quick-abstract-template2/src/main/java/com/quick/tp2/Main.java: -------------------------------------------------------------------------------- 1 | package com.quick.tp2; 2 | 3 | public class Main { 4 | public static void main(String[] args) { 5 | System.out.println("Hello world!"); 6 | } 7 | } -------------------------------------------------------------------------------- /quick-wx-public/src/main/java/com/wx/pn/api/handler/ApiConfigChangeHandle.java: -------------------------------------------------------------------------------- 1 | package com.wx.pn.api.handler; 2 | 3 | import java.util.Observer; 4 | 5 | public interface ApiConfigChangeHandle extends Observer { 6 | 7 | } 8 | -------------------------------------------------------------------------------- /quick-abstract-template/src/main/java/com/quick/abs/strategy/base/ability/Fly.java: -------------------------------------------------------------------------------- 1 | package com.quick.abs.strategy.base.ability; 2 | 3 | public interface Fly extends BaseAbility { 4 | @Override 5 | void action(); 6 | } 7 | -------------------------------------------------------------------------------- /quick-hbase/src/main/resources/application.yml: -------------------------------------------------------------------------------- 1 | hbase: 2 | config: 3 | hbase.zookeeper.quorum: myhbase 4 | hbase.zookeeper.port: 2181 5 | hbase.zookeeper.znode: /hbase 6 | hbase.client.keyvalue.maxsize: 1572864000 -------------------------------------------------------------------------------- /quick-sample-server/archetype.properties: -------------------------------------------------------------------------------- 1 | excludePatterns=.idea/**,README.md,.mvn/wrapper/*,.gitignore 2 | archetype.filteredExtensions=java,yml,yaml,xml,txt,groovy,cs,mdo,aj,jsp,gsp,vm,html,xhtml,properties,.classpath,.project 3 | -------------------------------------------------------------------------------- /quick-abstract-template/src/main/java/com/quick/abs/strategy/base/ability/Speak.java: -------------------------------------------------------------------------------- 1 | package com.quick.abs.strategy.base.ability; 2 | 3 | public interface Speak extends BaseAbility { 4 | @Override 5 | void action(); 6 | } 7 | -------------------------------------------------------------------------------- /quick-multi-rabbitmq/src/main/java/com/multi/rabbitmq/config/RabbitMqInstance.java: -------------------------------------------------------------------------------- 1 | package com.multi.rabbitmq.config; 2 | 3 | /** 4 | * @author vector 5 | * @date: 2019/4/11 0011 11:03 6 | */ 7 | public class RabbitMqInstance { 8 | } 9 | -------------------------------------------------------------------------------- /quick-oauth2/quick-github-oauth/src/main/java/com/github/oauth/user/IUserService.java: -------------------------------------------------------------------------------- 1 | package com.github.oauth.user; 2 | 3 | import com.github.oauth.common.ICommonService; 4 | 5 | public interface IUserService extends ICommonService { 6 | } -------------------------------------------------------------------------------- /quick-sse/src/main/java/com/quick/vo/SseEmitterResultVO.java: -------------------------------------------------------------------------------- 1 | package com.quick.vo; 2 | 3 | import lombok.Data; 4 | 5 | import java.io.Serializable; 6 | 7 | @Data 8 | public class SseEmitterResultVO implements Serializable { 9 | } 10 | -------------------------------------------------------------------------------- /quick-jdbc/src/main/resources/application.properties: -------------------------------------------------------------------------------- 1 | spring.datasource.url=jdbc:mysql://localhost:3306/world 2 | spring.datasource.username=root 3 | spring.datasource.password=root 4 | spring.datasource.driver-class-name=com.mysql.jdbc.Driver 5 | 6 | 7 | -------------------------------------------------------------------------------- /quick-multi-api-invoker/src/main/java/com/quick/dto/BaseRequestBody.java: -------------------------------------------------------------------------------- 1 | package com.quick.dto; 2 | 3 | import lombok.Data; 4 | 5 | import java.io.Serializable; 6 | 7 | @Data 8 | public class BaseRequestBody implements Serializable { 9 | } 10 | -------------------------------------------------------------------------------- /quick-multi-api-invoker/src/main/java/com/quick/dto/BaseRequestParam.java: -------------------------------------------------------------------------------- 1 | package com.quick.dto; 2 | 3 | import lombok.Data; 4 | 5 | import java.io.Serializable; 6 | 7 | @Data 8 | public class BaseRequestParam implements Serializable { 9 | } 10 | -------------------------------------------------------------------------------- /quick-multi-api-invoker/src/main/java/com/quick/dto/BaseResponseBody.java: -------------------------------------------------------------------------------- 1 | package com.quick.dto; 2 | 3 | import lombok.Data; 4 | 5 | import java.io.Serializable; 6 | 7 | @Data 8 | public class BaseResponseBody implements Serializable { 9 | } 10 | -------------------------------------------------------------------------------- /quick-dubbo-nacos/service/src/main/java/com/quick/nacos/config/NacosConfig.java: -------------------------------------------------------------------------------- 1 | package com.quick.nacos.config; 2 | 3 | /** 4 | * 5 | * @author wangxc 6 | * @date: 2022/3/21 6:14 PM 7 | * 8 | */ 9 | public class NacosConfig { 10 | 11 | 12 | } 13 | -------------------------------------------------------------------------------- /quick-api-invoker/src/main/java/com/quick/api/invoker/service/ServerInvokerService.java: -------------------------------------------------------------------------------- 1 | package com.quick.api.invoker.service; 2 | 3 | import org.springframework.stereotype.Service; 4 | 5 | @Service 6 | public class ServerInvokerService { 7 | 8 | 9 | 10 | } 11 | -------------------------------------------------------------------------------- /quick-sse/src/main/java/com/quick/constant/SseEmitterConstant.java: -------------------------------------------------------------------------------- 1 | package com.quick.constant; 2 | 3 | public class SseEmitterConstant { 4 | 5 | public static final String TASK_RESULT = "yicode"; 6 | public static final String CLIENT_ID = "CLIENT_ID"; 7 | 8 | } 9 | -------------------------------------------------------------------------------- /quick-wx-public/src/main/java/com/wx/pn/api/enums/ChangeType.java: -------------------------------------------------------------------------------- 1 | package com.wx.pn.api.enums; 2 | 3 | public enum ChangeType { 4 | /** 5 | * 微信token 6 | */ 7 | ACCESS_TOKEN, 8 | 9 | /** 10 | * 微信js token 11 | */ 12 | JS_TOKEN 13 | } 14 | -------------------------------------------------------------------------------- /quick-wx-public/src/main/java/com/wx/pn/api/servlet/WeixinSupport.java: -------------------------------------------------------------------------------- 1 | package com.wx.pn.api.servlet; 2 | 3 | /** 4 | * @author vector 5 | * @date: 2018/11/9 0009 11:37 6 | */ 7 | public abstract class WeixinSupport { 8 | protected abstract String getToken(); 9 | } 10 | -------------------------------------------------------------------------------- /quick-abstract-template/src/main/java/com/quick/abs/strategy/base/component/Wing.java: -------------------------------------------------------------------------------- 1 | package com.quick.abs.strategy.base.component; 2 | 3 | /** 4 | * 翅膀 5 | */ 6 | public class Wing { 7 | public void action() { 8 | System.out.println("挥动翅膀"); 9 | } 10 | } 11 | -------------------------------------------------------------------------------- /quick-img2txt/src/main/java/com/quick/verificationCode/Main.java: -------------------------------------------------------------------------------- 1 | package com.quick.verificationCode; 2 | 3 | /** 4 | * Created by Administrator on 2017/6/11 0011. 5 | */ 6 | public class Main { 7 | public static void main(String[] args) { 8 | 9 | } 10 | } 11 | -------------------------------------------------------------------------------- /quick-zookeeper/src/main/java/com/quick/zookeeper/config/ZKConstants.java: -------------------------------------------------------------------------------- 1 | package com.quick.zookeeper.config; 2 | 3 | public class ZKConstants { 4 | public final static String ZK_HOST = "192.168.1.2"; 5 | 6 | public final static String ZK_FIRST_PATH = "/MyFirstZnode"; 7 | 8 | } 9 | -------------------------------------------------------------------------------- /quick-graphQL/src/main/resources/schema.graphqls: -------------------------------------------------------------------------------- 1 | type Query { 2 | bookById(id: ID): Book 3 | } 4 | 5 | type Book { 6 | id: ID 7 | name: String 8 | pageCount: Int 9 | author: Author 10 | } 11 | 12 | type Author { 13 | id: ID 14 | firstName: String 15 | lastName: String 16 | } -------------------------------------------------------------------------------- /quick-mybatis-druid/src/main/resources/mapper/sys/UserMapper.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /mybatis-crypt-plugin-test/src/main/java/com/quick/crypt/test/base/BaseMapper.java: -------------------------------------------------------------------------------- 1 | package com.quick.crypt.test.base; 2 | 3 | import tk.mybatis.mapper.common.Mapper; 4 | import tk.mybatis.mapper.common.MySqlMapper; 5 | 6 | public interface BaseMapper extends Mapper, MySqlMapper { 7 | 8 | } 9 | -------------------------------------------------------------------------------- /quick-dubbo-nacos/provider/src/main/java/com.quick.nacos.provider/HelloProvider.java: -------------------------------------------------------------------------------- 1 | package com.quick.nacos.provider; 2 | 3 | /** 4 | * 5 | * @author wangxc 6 | * @date: 2022/3/5 10:17 PM 7 | * 8 | */ 9 | public interface HelloProvider { 10 | 11 | String hello(String param); 12 | } 13 | -------------------------------------------------------------------------------- /quick-dubbo-nacos/provider/src/main/java/com.quick.nacos.provider/OtherProvider.java: -------------------------------------------------------------------------------- 1 | package com.quick.nacos.provider; 2 | 3 | /** 4 | * 5 | * @author wangxc 6 | * @date: 2022/3/6 10:49 AM 7 | * 8 | */ 9 | public interface OtherProvider { 10 | String otherHello(String param); 11 | } 12 | -------------------------------------------------------------------------------- /quick-sharding-jdbc/src/main/resources/mapper/AddressMapper.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /quick-dubbo-nacos/share-config/README.md: -------------------------------------------------------------------------------- 1 | # 共享配置 2 | https://github.com/alibaba/spring-cloud-alibaba/wiki/Nacos-config 3 | https://github.com/alibaba/spring-cloud-alibaba/issues/141 4 | 5 | 6 | https://www.cnblogs.com/larscheng/p/11416392.html 7 | 8 | https://baijiahao.baidu.com/s?id=1720638939882107917&wfr=spider&for=pc -------------------------------------------------------------------------------- /quick-jwt/src/main/java/com/quick/jwt/model/Role.java: -------------------------------------------------------------------------------- 1 | package com.quick.jwt.model; 2 | 3 | import org.springframework.security.core.GrantedAuthority; 4 | 5 | public enum Role implements GrantedAuthority { 6 | ROLE_ADMIN, ROLE_CLIENT; 7 | 8 | public String getAuthority() { 9 | return name(); 10 | } 11 | } -------------------------------------------------------------------------------- /quick-rest-template/src/main/java/com/rest/template/model/TestDTO.java: -------------------------------------------------------------------------------- 1 | package com.rest.template.model; 2 | 3 | import lombok.Data; 4 | 5 | /** 6 | * @author vector 7 | * @date: 2019/3/15 0015 9:22 8 | */ 9 | @Data 10 | public class TestDTO { 11 | private int id; 12 | private String name; 13 | } 14 | -------------------------------------------------------------------------------- /quick-api-invoker/src/main/java/com/quick/api/invoker/transform/AbstractTransformAdapter.java: -------------------------------------------------------------------------------- 1 | package com.quick.api.invoker.transform; 2 | 3 | import com.quick.api.invoker.Adapter; 4 | 5 | public abstract class AbstractTransformAdapter implements Adapter { 6 | protected abstract String conversion(String source); 7 | } 8 | -------------------------------------------------------------------------------- /quick-config-encrypt/src/main/java/com/quick/encrypt/service/BizService.java: -------------------------------------------------------------------------------- 1 | package com.quick.encrypt.service; 2 | 3 | import org.springframework.stereotype.Service; 4 | 5 | /** 6 | * @author vector 7 | * @date: 2018/11/9 0009 16:33 8 | */ 9 | @Service 10 | public class BizService { 11 | 12 | 13 | 14 | } 15 | -------------------------------------------------------------------------------- /quick-container/src/main/k3s/ingress/nginx-service-a.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: v1 2 | kind: Service 3 | metadata: 4 | labels: 5 | app: web-service-a 6 | name: app-service-a 7 | spec: 8 | ports: 9 | - name: 10 | port: 80 11 | protocol: TCP 12 | targetPort: 80 13 | selector: 14 | app: web-a 15 | -------------------------------------------------------------------------------- /quick-container/src/main/k3s/ingress/nginx-service-b.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: v1 2 | kind: Service 3 | metadata: 4 | labels: 5 | app: web-service-b 6 | name: app-service-b 7 | spec: 8 | ports: 9 | - name: 10 | port: 80 11 | protocol: TCP 12 | targetPort: 80 13 | selector: 14 | app: web-b 15 | -------------------------------------------------------------------------------- /quick-modules/test/src/main/java/com/multi/test/service/CityService.java: -------------------------------------------------------------------------------- 1 | package com.multi.test.service; 2 | 3 | import com.modules.entity.City; 4 | 5 | /** 6 | * @author vector 7 | * @Data 2018/8/10 0010 8 | * @Description TODO 9 | */ 10 | public interface CityService { 11 | City getCity(int id); 12 | } 13 | -------------------------------------------------------------------------------- /quick-mybatis-druid/db/user.sql: -------------------------------------------------------------------------------- 1 | CREATE TABLE `user` ( 2 | `id` bigint(20) NOT NULL COMMENT '主键ID', 3 | `name` varchar(30) DEFAULT NULL COMMENT '姓名', 4 | `age` int(11) DEFAULT NULL COMMENT '年龄', 5 | `email` varchar(50) DEFAULT NULL COMMENT '邮箱', 6 | PRIMARY KEY (`id`) 7 | ) ENGINE=InnoDB DEFAULT CHARSET=utf8; 8 | 9 | -------------------------------------------------------------------------------- /quick-wx-public/src/main/java/com/wx/pn/api/model/Model.java: -------------------------------------------------------------------------------- 1 | package com.wx.pn.api.model; 2 | 3 | import java.io.Serializable; 4 | 5 | public interface Model extends Serializable { 6 | 7 | /** 8 | * 将model转成json字符串 9 | * 10 | * @return json字符串 11 | */ 12 | String toJsonString(); 13 | } -------------------------------------------------------------------------------- /mybatis-crypt-plugin/src/main/java/com/quick/db/crypt/annotation/CryptEntity.java: -------------------------------------------------------------------------------- 1 | package com.quick.db.crypt.annotation; 2 | 3 | import java.lang.annotation.*; 4 | 5 | @Target(value = ElementType.TYPE) 6 | @Inherited 7 | @Documented 8 | @Retention(RetentionPolicy.RUNTIME) 9 | public @interface CryptEntity { 10 | } 11 | -------------------------------------------------------------------------------- /mybatis-crypt-plugin/src/main/java/com/quick/db/crypt/annotation/CryptField.java: -------------------------------------------------------------------------------- 1 | package com.quick.db.crypt.annotation; 2 | 3 | import java.lang.annotation.*; 4 | 5 | @Target(value = ElementType.FIELD) 6 | @Inherited 7 | @Documented 8 | @Retention(RetentionPolicy.RUNTIME) 9 | public @interface CryptField { 10 | 11 | } -------------------------------------------------------------------------------- /quick-activemq/src/main/resources/application.properties: -------------------------------------------------------------------------------- 1 | server.port=8080 2 | 3 | spring.activemq.broker-url=tcp://localhost:61616 4 | spring.activemq.user=admin 5 | spring.activemq.password=123456 6 | spring.activemq.in-memory=true 7 | spring.activemq.pool.enabled=false 8 | 9 | jsa.activemq.queue.name=test_queue 10 | -------------------------------------------------------------------------------- /quick-cache/src/main/java/com/quick/cache/repo/BookRepository.java: -------------------------------------------------------------------------------- 1 | package com.quick.cache.repo; 2 | 3 | import com.quick.cache.entity.Book; 4 | 5 | import java.util.List; 6 | 7 | public interface BookRepository { 8 | 9 | Book getByIsbn(String isbn); 10 | 11 | Book update(Book book); 12 | 13 | void clear(); 14 | 15 | } -------------------------------------------------------------------------------- /quick-modules/service1/src/main/java/com/modules/service/CityService.java: -------------------------------------------------------------------------------- 1 | package com.modules.service; 2 | 3 | import com.modules.entity.City; 4 | 5 | /** 6 | * Created with IDEA 7 | * User: vector 8 | * Data: 2017/4/1 9 | * Time: 8:38 10 | */ 11 | public interface CityService { 12 | City selectById(int id); 13 | } 14 | -------------------------------------------------------------------------------- /quick-rabbitmq/src/main/resources/application.properties: -------------------------------------------------------------------------------- 1 | server.port=8080 2 | 3 | spring.application.name=spring-boot-rabbitmq 4 | 5 | 6 | rabbitmq.host=60.205.191.82 7 | rabbitmq.port=5673 8 | rabbitmq.username=guest 9 | rabbitmq.password=guest 10 | rabbitmq.publisher-confirms=true 11 | rabbitmq.virtual-host=/ 12 | 13 | 14 | -------------------------------------------------------------------------------- /quick-sse/src/main/java/com/quick/vo/Message.java: -------------------------------------------------------------------------------- 1 | package com.quick.vo; 2 | 3 | import lombok.AllArgsConstructor; 4 | import lombok.Data; 5 | import lombok.NoArgsConstructor; 6 | 7 | @Data 8 | @AllArgsConstructor 9 | @NoArgsConstructor 10 | public class Message { 11 | private String content; 12 | private String role; 13 | } -------------------------------------------------------------------------------- /quick-modules/service2/src/main/java/com/modules/service/CountryService.java: -------------------------------------------------------------------------------- 1 | package com.modules.service; 2 | 3 | import com.modules.entity.Country; 4 | 5 | /** 6 | * Created with IDEA 7 | * User: vector 8 | * Data: 2017/4/1 9 | * Time: 8:38 10 | */ 11 | public interface CountryService { 12 | Country selectByCode(String code); 13 | } 14 | -------------------------------------------------------------------------------- /quick-wx-public/src/main/java/com/wx/pn/api/model/TextMessage.java: -------------------------------------------------------------------------------- 1 | package com.wx.pn.api.model; 2 | 3 | public class TextMessage extends BaseMessage { 4 | private String Content; 5 | 6 | public String getContent() { 7 | return Content; 8 | } 9 | 10 | public void setContent(String content) { 11 | Content = content; 12 | } 13 | 14 | } 15 | -------------------------------------------------------------------------------- /quick-container/src/main/assembly/conf/application.properties: -------------------------------------------------------------------------------- 1 | server.port=8080 2 | 3 | spring.redis.database=1 4 | spring.redis.host=redis 5 | spring.redis.port=6379 6 | spring.redis.password= 7 | spring.redis.pool.max-active=8 8 | spring.redis.pool.max-wait=-1 9 | spring.redis.pool.max-idle=8 10 | spring.redis.pool.min-idle=0 11 | spring.redis.timeout=500 -------------------------------------------------------------------------------- /quick-container/src/main/k3s/nodeport/nginx-service.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: v1 2 | kind: Service 3 | metadata: 4 | labels: 5 | app: web-service 6 | name: app-service 7 | spec: 8 | ports: 9 | - name: 10 | nodePort: 30080 11 | port: 80 12 | protocol: TCP 13 | targetPort: 80 14 | selector: 15 | app: web 16 | type: NodePort 17 | -------------------------------------------------------------------------------- /quick-jpa/src/main/resources/application.properties: -------------------------------------------------------------------------------- 1 | spring.datasource.url=jdbc:mysql://localhost:3306/world 2 | spring.datasource.username=root 3 | spring.datasource.password=root 4 | spring.datasource.driver-class-name=com.mysql.jdbc.Driver 5 | 6 | spring.jpa.hibernate.ddl-auto=update 7 | spring.jpa.show-sql=true 8 | spring.jackson.serialization.indent_output=true -------------------------------------------------------------------------------- /quick-oauth2/quick-github-oauth/src/main/java/com/github/oauth/user/UserRepo.java: -------------------------------------------------------------------------------- 1 | package com.github.oauth.user; 2 | 3 | import org.springframework.data.jpa.repository.JpaRepository; 4 | import org.springframework.data.jpa.repository.JpaSpecificationExecutor; 5 | 6 | public interface UserRepo extends JpaRepository, JpaSpecificationExecutor { 7 | } -------------------------------------------------------------------------------- /quick-oauth2/quick-github-oauth/src/main/resources/templates/user/info.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 |
7 | Welcome, 8 | 9 |
10 | 11 | -------------------------------------------------------------------------------- /quick-wx-public/src/main/java/com/wx/pn/api/model/VoiceMessage.java: -------------------------------------------------------------------------------- 1 | package com.wx.pn.api.model; 2 | 3 | public class VoiceMessage extends BaseMessage { 4 | private Voice Voice; 5 | 6 | public Voice getVoice() { 7 | return Voice; 8 | } 9 | 10 | public void setVoice(Voice voice) { 11 | Voice = voice; 12 | } 13 | } 14 | -------------------------------------------------------------------------------- /quick-mybatis-druid/src/main/resources/application.yml: -------------------------------------------------------------------------------- 1 | # DataSource Config 2 | spring: 3 | datasource: 4 | driver-class-name: com.mysql.jdbc.Driver 5 | url: jdbc:mysql://192.168.12.128:3306/world 6 | username: root 7 | password: 123456 8 | 9 | mybatis-plus: 10 | configuration: 11 | log-impl: org.apache.ibatis.logging.stdout.StdOutImpl -------------------------------------------------------------------------------- /quick-multi-data/src/main/java/com/quick/mulit/service/CityService.java: -------------------------------------------------------------------------------- 1 | package com.quick.mulit.service; 2 | 3 | import com.quick.mulit.entity.primary.City; 4 | 5 | /** 6 | * Created with IDEA 7 | * User: vector 8 | * Data: 2017/8/22 9 | * Time: 19:13 10 | * Description: 11 | */ 12 | public interface CityService { 13 | City getCity(short i); 14 | } 15 | -------------------------------------------------------------------------------- /quick-lombok/src/main/java/com/lombok/entity/Teacher.java: -------------------------------------------------------------------------------- 1 | package com.lombok.entity; 2 | 3 | import lombok.Value; 4 | 5 | /** 6 | * @Value:用在类上,是@Data的不可变形式,相当于为属性添加final声明,只提供getter方法,而不提供setter方法 7 | * @author vector 8 | * @date: 2019/2/27 0027 10:40 9 | */ 10 | @Value 11 | public class Teacher extends Person { 12 | private String salary; 13 | 14 | } 15 | -------------------------------------------------------------------------------- /quick-spring-shiro/src/main/java/com/shiro/constant/Codes.java: -------------------------------------------------------------------------------- 1 | package com.shiro.constant; 2 | 3 | public interface Codes { 4 | 5 | /** 未登录 */ 6 | int UNAUTHEN = 4401; 7 | 8 | /** 未授权,拒绝访问 */ 9 | int UNAUTHZ = 4403; 10 | 11 | /** shiro相关的错误 */ 12 | int SHIRO_ERR = 4444; 13 | 14 | /** 服务端异常 */ 15 | int SERVER_ERR = 5500; 16 | 17 | } -------------------------------------------------------------------------------- /quick-multi-data/src/main/java/com/quick/mulit/service/ReaderService.java: -------------------------------------------------------------------------------- 1 | package com.quick.mulit.service; 2 | 3 | import com.quick.mulit.entity.secondary.Reader; 4 | 5 | /** 6 | * Created with IDEA 7 | * User: vector 8 | * Data: 2017/8/22 9 | * Time: 19:14 10 | * Description: 11 | */ 12 | public interface ReaderService { 13 | Reader getReader(int i); 14 | } 15 | -------------------------------------------------------------------------------- /quick-lombok/src/main/java/com/lombok/entity/Student.java: -------------------------------------------------------------------------------- 1 | package com.lombok.entity; 2 | 3 | import lombok.Data; 4 | import lombok.ToString; 5 | 6 | /** 7 | * @author vector 8 | * @date: 2019/2/27 0027 10:30 9 | */ 10 | @Data 11 | @ToString(callSuper = true) 12 | public class Student extends Person { 13 | private String stuNo; 14 | private String classNo; 15 | } 16 | -------------------------------------------------------------------------------- /quick-container/src/main/resources/application.properties: -------------------------------------------------------------------------------- 1 | server.port=8080 2 | 3 | spring.redis.database=1 4 | spring.redis.host=localhost 5 | spring.redis.port=6379 6 | spring.redis.password= 7 | spring.redis.pool.max-active=8 8 | spring.redis.pool.max-wait=-1 9 | spring.redis.pool.max-idle=8 10 | spring.redis.pool.min-idle=0 11 | spring.redis.timeout=500 12 | 13 | test.value=???? -------------------------------------------------------------------------------- /quick-batch/src/main/resources/application.properties: -------------------------------------------------------------------------------- 1 | spring.datasource.driverClassName=com.mysql.cj.jdbc.Driver 2 | spring.datasource.url=jdbc:mysql://localhost:3306/world 3 | spring.datasource.username=root 4 | spring.datasource.password=root123 5 | spring.jpa.database-platform=org.hibernate.dialect.MySQLDialect 6 | #spring.jpa.show-sql=false 7 | #spring.jpa.hibernate.ddl-auto=create-drop 8 | 9 | -------------------------------------------------------------------------------- /quick-package-assembly/src/main/bin/stop.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | TARGET_NAME=`pwd|awk -F "/" '{print $(NF)}'` 4 | TARGET_PROCESS=`ps -ef | grep "${TARGET_NAME}"| grep -v 'grep' | awk '{print $2}'` 5 | if [ ! $TARGET_PROCESS ]; then 6 | echo "process has stop" 7 | else 8 | echo "start kill process" 9 | kill -9 $TARGET_PROCESS 10 | echo "process has killed" 11 | fi -------------------------------------------------------------------------------- /quick-profiles/module1/src/main/java/com/profiles/module1/HelloServiceImpl.java: -------------------------------------------------------------------------------- 1 | package com.profiles.module1; 2 | 3 | import com.profiles.base.HelloService; 4 | import org.springframework.stereotype.Service; 5 | 6 | @Service 7 | public class HelloServiceImpl implements HelloService { 8 | public void sayHello() { 9 | System.out.println("say module1 hello"); 10 | } 11 | } 12 | -------------------------------------------------------------------------------- /quick-api-invoker/src/main/java/com/quick/api/invoker/Main.java: -------------------------------------------------------------------------------- 1 | package com.quick.api.invoker; 2 | 3 | import org.springframework.boot.SpringApplication; 4 | import org.springframework.boot.autoconfigure.SpringBootApplication; 5 | 6 | @SpringBootApplication 7 | public class Main { 8 | 9 | public static void main(String[] args) { 10 | SpringApplication.run(Main.class); 11 | } 12 | } -------------------------------------------------------------------------------- /quick-package-assembly-multi-env/src/main/bin/stop.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | TARGET_NAME=`pwd|awk -F "/" '{print $(NF)}'` 4 | TARGET_PROCESS=`ps -ef | grep "${TARGET_NAME}"| grep -v 'grep' | awk '{print $2}'` 5 | if [ ! $TARGET_PROCESS ]; then 6 | echo "process has stop" 7 | else 8 | echo "start kill process" 9 | kill -9 $TARGET_PROCESS 10 | echo "process has killed" 11 | fi -------------------------------------------------------------------------------- /quick-profiles/module2/src/main/java/com/profiles/module2/HelloServiceImpl.java: -------------------------------------------------------------------------------- 1 | package com.profiles.module2; 2 | 3 | import com.profiles.base.HelloService; 4 | import org.springframework.stereotype.Service; 5 | 6 | @Service 7 | public class HelloServiceImpl implements HelloService { 8 | 9 | public void sayHello() { 10 | System.out.println("say module2 hello"); 11 | } 12 | } 13 | -------------------------------------------------------------------------------- /quick-rocketmq/src/main/java/com/rocketmq/TestMain.java: -------------------------------------------------------------------------------- 1 | package com.rocketmq; 2 | 3 | import java.util.UUID; 4 | 5 | /** 6 | * Created with IDEA 7 | * User: vector 8 | * Data: 2017/12/5 9 | * Time: 20:18 10 | * Description: 11 | */ 12 | public class TestMain { 13 | public static void main(String[] args) { 14 | System.out.println(UUID.randomUUID().toString()); 15 | } 16 | } 17 | -------------------------------------------------------------------------------- /quick-archetype/src/main/java/com/quick/mapper/DepotMapper.java: -------------------------------------------------------------------------------- 1 | package com.quick.mapper; 2 | 3 | import com.quick.entity.DepotEntity; 4 | import com.baomidou.mybatisplus.core.mapper.BaseMapper; 5 | 6 | /** 7 | *

8 | * Mapper 接口 9 | *

10 | * 11 | * @author vector4wang 12 | * @since 2023-10-17 13 | */ 14 | public interface DepotMapper extends BaseMapper { 15 | 16 | } 17 | -------------------------------------------------------------------------------- /quick-archetype/src/main/java/com/quick/service/DepotService.java: -------------------------------------------------------------------------------- 1 | package com.quick.service; 2 | 3 | import com.quick.entity.DepotEntity; 4 | import com.baomidou.mybatisplus.extension.service.IService; 5 | 6 | /** 7 | *

8 | * 服务类 9 | *

10 | * 11 | * @author vector4wang 12 | * @since 2023-10-17 13 | */ 14 | public interface DepotService extends IService { 15 | 16 | } 17 | -------------------------------------------------------------------------------- /quick-shiro/src/main/java/com/shiro/quick/service/TestService.java: -------------------------------------------------------------------------------- 1 | package com.shiro.quick.service; 2 | 3 | import org.apache.shiro.authz.annotation.RequiresRoles; 4 | import org.springframework.stereotype.Service; 5 | 6 | @Service 7 | public class TestService { 8 | 9 | 10 | @RequiresRoles({"admin"}) 11 | public String vipPrint() { 12 | return "i am vip"; 13 | } 14 | 15 | } 16 | -------------------------------------------------------------------------------- /quick-sse/src/main/java/com/quick/App.java: -------------------------------------------------------------------------------- 1 | package com.quick; 2 | 3 | import org.springframework.boot.SpringApplication; 4 | import org.springframework.boot.autoconfigure.SpringBootApplication; 5 | 6 | /** 7 | * Hello world! 8 | */ 9 | @SpringBootApplication 10 | public class App { 11 | public static void main(String[] args) { 12 | 13 | SpringApplication.run(App.class); 14 | } 15 | } -------------------------------------------------------------------------------- /quick-hmac/src/main/java/com/quick/hmac/HmacApplication.java: -------------------------------------------------------------------------------- 1 | package com.quick.hmac; 2 | 3 | import org.springframework.boot.SpringApplication; 4 | import org.springframework.boot.autoconfigure.SpringBootApplication; 5 | 6 | @SpringBootApplication 7 | public class HmacApplication { 8 | public static void main(String[] args) { 9 | SpringApplication.run(HmacApplication.class); 10 | } 11 | } 12 | -------------------------------------------------------------------------------- /quick-mongodb/README.md: -------------------------------------------------------------------------------- 1 | 2 | 参考: 3 | - https://spring.io/guides/gs/accessing-data-mongodb/ 4 | - https://github.com/spring-guides/gs-accessing-data-mongodb/blob/master/complete/src/main/java/com/example/accessingdatamongodb/AccessingDataMongodbApplication.java#L24-L31 5 | 6 | 7 | 8 | 注意uri的写法和密码加密的方式 9 | `uri: mongodb://admin:Www1hirede@192.168.1.35:27017/test-springboot?authSource=admin&authMechanism=SCRAM-SHA-1` -------------------------------------------------------------------------------- /quick-shiro/src/test/java/com/quick/AppTest.java: -------------------------------------------------------------------------------- 1 | package com.quick; 2 | 3 | import static org.junit.Assert.assertTrue; 4 | 5 | import org.junit.Test; 6 | 7 | /** 8 | * Unit test for simple App. 9 | */ 10 | public class AppTest 11 | { 12 | /** 13 | * Rigorous Test :-) 14 | */ 15 | @Test 16 | public void shouldAnswerWithTrue() 17 | { 18 | assertTrue( true ); 19 | } 20 | } 21 | -------------------------------------------------------------------------------- /quick-vw-crawler/src/main/java/com/crawler/vw/CrawlerApplication.java: -------------------------------------------------------------------------------- 1 | package com.crawler.vw; 2 | 3 | import org.springframework.boot.SpringApplication; 4 | import org.springframework.boot.autoconfigure.SpringBootApplication; 5 | 6 | @SpringBootApplication 7 | public class CrawlerApplication { 8 | public static void main(String[] args) { 9 | SpringApplication.run(CrawlerApplication.class, args); 10 | } 11 | } 12 | -------------------------------------------------------------------------------- /quick-abstract-template/src/main/java/com/quick/abs/strategy/base/Creature.java: -------------------------------------------------------------------------------- 1 | package com.quick.abs.strategy.base; 2 | 3 | import org.springframework.beans.factory.InitializingBean; 4 | 5 | /** 6 | * 生物 7 | */ 8 | public interface Creature extends InitializingBean { 9 | 10 | /** 11 | * 生物 12 | * @return 13 | */ 14 | default boolean iThinkIam(){ 15 | return true; 16 | } 17 | } 18 | -------------------------------------------------------------------------------- /quick-mybatis-druid/src/main/java/com/quick/druid/sys/service/IUserService.java: -------------------------------------------------------------------------------- 1 | package com.quick.druid.sys.service; 2 | 3 | import com.quick.druid.sys.entity.User; 4 | import com.baomidou.mybatisplus.extension.service.IService; 5 | 6 | /** 7 | *

8 | * 服务类 9 | *

10 | * 11 | * @author vector4wang 12 | * @since 2019-12-19 13 | */ 14 | public interface IUserService extends IService { 15 | 16 | } 17 | -------------------------------------------------------------------------------- /quick-saturn/src/main/java/com/quick/saturn/SaturnApplication.java: -------------------------------------------------------------------------------- 1 | package com.quick.saturn; 2 | 3 | import org.springframework.boot.SpringApplication; 4 | import org.springframework.boot.autoconfigure.SpringBootApplication; 5 | 6 | @SpringBootApplication 7 | public class SaturnApplication { 8 | public static void main(String[] args) { 9 | SpringApplication.run(SaturnApplication.class); 10 | } 11 | } 12 | -------------------------------------------------------------------------------- /mybatis-crypt-plugin/src/main/java/com/quick/db/crypt/intercept/CryptInterceptor.java: -------------------------------------------------------------------------------- 1 | package com.quick.db.crypt.intercept; 2 | 3 | import com.quick.db.crypt.encrypt.Encrypt; 4 | import lombok.extern.slf4j.Slf4j; 5 | 6 | @Slf4j 7 | public abstract class CryptInterceptor { 8 | 9 | protected Encrypt encrypt; 10 | 11 | public CryptInterceptor(Encrypt encrypt) { 12 | this.encrypt = encrypt; 13 | } 14 | } 15 | -------------------------------------------------------------------------------- /quick-oauth2/quick-github-oauth/src/main/java/com/github/oauth/controller/PublicController.java: -------------------------------------------------------------------------------- 1 | package com.github.oauth.controller; 2 | 3 | import org.springframework.stereotype.Controller; 4 | import org.springframework.web.bind.annotation.RequestMapping; 5 | 6 | @Controller 7 | public class PublicController { 8 | 9 | @RequestMapping("/") 10 | public String index() { 11 | 12 | return "index"; 13 | } 14 | } -------------------------------------------------------------------------------- /quick-sample-server/sample-api/src/main/java/com/sample/api/SampleController.java: -------------------------------------------------------------------------------- 1 | package com.sample.api; 2 | 3 | 4 | import org.springframework.web.bind.annotation.RequestMapping; 5 | import org.springframework.web.bind.annotation.RestController; 6 | 7 | @RestController("/api") 8 | public class SampleController { 9 | 10 | @RequestMapping 11 | public String hello() { 12 | return "hello"; 13 | } 14 | } 15 | -------------------------------------------------------------------------------- /quick-shiro/src/main/java/com/shiro/quick/controller/AnnoController.java: -------------------------------------------------------------------------------- 1 | package com.shiro.quick.controller; 2 | 3 | import org.springframework.web.bind.annotation.GetMapping; 4 | import org.springframework.web.bind.annotation.RestController; 5 | 6 | @RestController 7 | public class AnnoController { 8 | 9 | @GetMapping("/anno/hello1") 10 | public String hello() { 11 | return "anno hello"; 12 | } 13 | } 14 | -------------------------------------------------------------------------------- /quick-dubbo/dubbo-producer/src/main/java/com/dubbo/producer/service/HelloServiceImpl.java: -------------------------------------------------------------------------------- 1 | package com.dubbo.producer.service; 2 | 3 | import com.alibaba.dubbo.config.annotation.Service; 4 | import com.dubbo.api.HelloService; 5 | 6 | @Service 7 | public class HelloServiceImpl implements HelloService { 8 | 9 | @Override 10 | public String sayHello(String name) { 11 | return "Hello " + name; 12 | } 13 | 14 | } 15 | -------------------------------------------------------------------------------- /quick-graphQL/src/main/java/com/quick/graphql/GraphQLApplication.java: -------------------------------------------------------------------------------- 1 | package com.quick.graphql; 2 | 3 | import org.springframework.boot.SpringApplication; 4 | import org.springframework.boot.autoconfigure.SpringBootApplication; 5 | 6 | @SpringBootApplication 7 | public class GraphQLApplication { 8 | public static void main(String[] args) { 9 | SpringApplication.run(GraphQLApplication.class, args); 10 | } 11 | } 12 | -------------------------------------------------------------------------------- /quick-shiro-cas/src/main/resources/application.properties: -------------------------------------------------------------------------------- 1 | server.port=8080 2 | 3 | #server.ssl.protocol: TLS 4 | #server.ssl.key-store: classpath:server.keystore 5 | #server.ssl.key-alias: tomcat 6 | #server.ssl.enabled:true 7 | #server.ssl.key-store-password: changeit 8 | #server.ssl.key-store-type: JKS 9 | 10 | 11 | 12 | cas.client-name=app 13 | cas.server.url=https://127.0.0.1:8443/cas 14 | cas.project.url=http://127.0.0.1:8080 -------------------------------------------------------------------------------- /quick-dubbo/dubbo-consumer/src/main/java/com/DubboConsumerApplication.java: -------------------------------------------------------------------------------- 1 | package com; 2 | 3 | import org.springframework.boot.SpringApplication; 4 | import org.springframework.boot.autoconfigure.SpringBootApplication; 5 | 6 | @SpringBootApplication 7 | public class DubboConsumerApplication { 8 | public static void main(String[] args) { 9 | SpringApplication.run(DubboConsumerApplication.class, args); 10 | } 11 | } 12 | -------------------------------------------------------------------------------- /quick-dubbo/dubbo-producer/src/main/java/com/DubboProviderApplication.java: -------------------------------------------------------------------------------- 1 | package com; 2 | 3 | import org.springframework.boot.SpringApplication; 4 | import org.springframework.boot.autoconfigure.SpringBootApplication; 5 | 6 | @SpringBootApplication 7 | public class DubboProviderApplication { 8 | public static void main(String[] args) { 9 | SpringApplication.run(DubboProviderApplication.class, args); 10 | } 11 | } 12 | -------------------------------------------------------------------------------- /quick-mail/src/main/resources/templates/wel.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | Email 6 | 7 | 8 | 9 |

Craig Walls says...

10 | Hello Boot! 11 | Hello Boot! 12 | 13 | -------------------------------------------------------------------------------- /quick-sharding-jdbc/src/main/java/com/quick/shardingjdbc/mapper/AddressMapper.java: -------------------------------------------------------------------------------- 1 | package com.quick.shardingjdbc.mapper; 2 | 3 | import com.quick.shardingjdbc.entity.Address; 4 | import com.baomidou.mybatisplus.core.mapper.BaseMapper; 5 | 6 | /** 7 | *

8 | * Mapper 接口 9 | *

10 | * 11 | * @author vector 12 | * @since 2022-08-16 13 | */ 14 | public interface AddressMapper extends BaseMapper
{ 15 | 16 | } 17 | -------------------------------------------------------------------------------- /quick-sharding-jdbc/src/main/java/com/quick/shardingjdbc/service/IAddressService.java: -------------------------------------------------------------------------------- 1 | package com.quick.shardingjdbc.service; 2 | 3 | import com.quick.shardingjdbc.entity.Address; 4 | import com.baomidou.mybatisplus.extension.service.IService; 5 | 6 | /** 7 | *

8 | * 服务类 9 | *

10 | * 11 | * @author vector 12 | * @since 2022-08-16 13 | */ 14 | public interface IAddressService extends IService
{ 15 | 16 | } 17 | -------------------------------------------------------------------------------- /mybatis-crypt-plugin-test/src/main/java/com/quick/crypt/test/base/MessageException.java: -------------------------------------------------------------------------------- 1 | package com.quick.crypt.test.base; 2 | 3 | public class MessageException extends Exception { 4 | 5 | private static final long serialVersionUID = 1L; 6 | 7 | public MessageException(Exception exception) { 8 | super(exception.getMessage(), exception.getCause()); 9 | } 10 | 11 | public MessageException(String message) { 12 | super(message); 13 | } 14 | } -------------------------------------------------------------------------------- /quick-container/src/main/k3s/ingress/cluster.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: k3d.io/v1alpha2 2 | kind: Simple 3 | name: mycluster 4 | servers: 1 5 | agents: 2 6 | kubeAPI: 7 | hostPort: "6443" # same as `--api-port '6443'` 8 | ports: 9 | - port: 9001:80 # same as `--port '8080:80@loadbalancer'` 10 | nodeFilters: 11 | - loadbalancer 12 | - port: 8443:443 # same as `--port '8443:443@loadbalancer'` 13 | nodeFilters: 14 | - loadbalancer 15 | -------------------------------------------------------------------------------- /quick-container/src/main/k3s/ingress/nginx-ingress-a.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: networking.k8s.io/v1 2 | kind: Ingress 3 | metadata: 4 | name: app-ingress-a 5 | spec: 6 | rules: 7 | - host: localhost 8 | http: 9 | paths: 10 | - path: / 11 | pathType: Prefix 12 | backend: 13 | service: 14 | name: app-service-a # 链接的是上面svc的名字 15 | port: 16 | number: 80 17 | -------------------------------------------------------------------------------- /quick-app/src/main/java/com/app/controller/Application.java: -------------------------------------------------------------------------------- 1 | package com.app.controller; 2 | 3 | import org.springframework.boot.SpringApplication; 4 | import org.springframework.boot.autoconfigure.SpringBootApplication; 5 | 6 | @SpringBootApplication(scanBasePackages = {"com.app"}) 7 | //@EnableShiroConfig 8 | public class Application { 9 | public static void main(String[] args) { 10 | SpringApplication.run(Application.class); 11 | } 12 | } 13 | -------------------------------------------------------------------------------- /quick-container/src/main/k3s/nodeport/cluster.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: k3d.io/v1alpha2 2 | kind: Simple 3 | name: mycluster 4 | servers: 1 5 | agents: 2 6 | kubeAPI: 7 | hostPort: "6443" # same as `--api-port '6443'` 8 | ports: 9 | - port: 8087:30080 # same as `--port '8080:80@loadbalancer'` 10 | nodeFilters: 11 | - loadbalancer 12 | - port: 8443:443 # same as `--port '8443:443@loadbalancer'` 13 | nodeFilters: 14 | - loadbalancer 15 | -------------------------------------------------------------------------------- /quick-multi-api-invoker/src/main/java/com/quick/ApiInvokerApp.java: -------------------------------------------------------------------------------- 1 | package com.quick; 2 | 3 | import org.springframework.boot.SpringApplication; 4 | import org.springframework.boot.autoconfigure.SpringBootApplication; 5 | 6 | /** 7 | * Hello world! 8 | */ 9 | @SpringBootApplication 10 | public class ApiInvokerApp { 11 | public static void main(String[] args) { 12 | SpringApplication.run(ApiInvokerApp.class, args); 13 | } 14 | } 15 | -------------------------------------------------------------------------------- /quick-shiro/src/main/java/com/shiro/quick/ShiroApplication.java: -------------------------------------------------------------------------------- 1 | package com.shiro.quick; 2 | 3 | import org.springframework.boot.SpringApplication; 4 | import org.springframework.boot.autoconfigure.SpringBootApplication; 5 | 6 | /** 7 | * Hello world! 8 | */ 9 | @SpringBootApplication 10 | public class ShiroApplication { 11 | public static void main(String[] args) { 12 | SpringApplication.run(ShiroApplication.class); 13 | } 14 | } 15 | -------------------------------------------------------------------------------- /quick-dubbo-nacos/README.md: -------------------------------------------------------------------------------- 1 | # springboot dubbo nacos整合记录 2 | 3 | [nacos与dubbo是否重叠](https://www.zhihu.com/question/451932038) 4 | 5 | ### 部署nacos服务 6 | [使用docker快速启动nacos服务](https://hub.docker.com/r/nacos/nacos-server) 7 | ``` 8 | docker pull nacos/nacos-server 9 | ``` 10 | 11 | ```docker 12 | # 参照官方文档,这里使用的 Standalone Mysql 13 | docker-compose -f example/standalone-mysql-5.7.yaml up 14 | ``` 15 | 启动成功访问http://localhost:8848/nacos/ 16 | 17 | 用户名和密码都是nacos -------------------------------------------------------------------------------- /quick-dubbo/dubbo-producer/src/main/resources/application.properties: -------------------------------------------------------------------------------- 1 | server.port = 8081 2 | 3 | spring.dubbo.application.name=service-provider 4 | 5 | # dubbo服务发布者实现类注解@service所在的包 6 | spring.dubbo.base-package=com.dubbo.producer 7 | spring.dubbo.registry.address=zookeeper://127.0.0.1 8 | spring.dubbo.registry.port=2181 9 | 10 | spring.dubbo.protocol.name=dubbo 11 | spring.dubbo.protocol.serialization=hessian2 12 | 13 | spring.dubbo.provider.retries=0 14 | -------------------------------------------------------------------------------- /quick-platform-common/src/main/java/com/quick/common/base/exception/MessageException.java: -------------------------------------------------------------------------------- 1 | package com.quick.common.base.exception; 2 | 3 | public class MessageException extends Exception { 4 | 5 | private static final long serialVersionUID = 1L; 6 | 7 | public MessageException(Exception exception) { 8 | super(exception.getMessage(), exception.getCause()); 9 | } 10 | 11 | public MessageException(String message) { 12 | super(message); 13 | } 14 | } -------------------------------------------------------------------------------- /quick-starter/src/main/resources/banner.txt: -------------------------------------------------------------------------------- 1 | 2 | ____ _ _ _____ _ _ 3 | / __ \ (_) | | / ____| | | | 4 | | | | |_ _ _ ___| | _______| (___ | |_ __ _ _ __| |_ ___ _ __ 5 | | | | | | | | |/ __| |/ /______\___ \| __/ _` | '__| __/ _ \ '__| 6 | | |__| | |_| | | (__| < ____) | || (_| | | | || __/ | 7 | \___\_\\__,_|_|\___|_|\_\ |_____/ \__\__,_|_| \__\___|_| 8 | 9 | 10 | -------------------------------------------------------------------------------- /quick-container/src/main/k3s/ingress/nginx-ingress-b.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: networking.k8s.io/v1 2 | kind: Ingress 3 | metadata: 4 | name: nginx-ingress-b 5 | spec: 6 | rules: 7 | - host: localhost.k3d.ingress 8 | http: 9 | paths: 10 | - path: / 11 | pathType: Prefix 12 | backend: 13 | service: 14 | name: app-service-b # 链接的是上面svc的名字 15 | port: 16 | number: 80 17 | -------------------------------------------------------------------------------- /quick-kafka/src/main/resources/logback.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | %d{HH:mm:ss.SSS} [%thread] %-5level %logger{36} - %msg%n 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /quick-lombok/src/main/java/com/lombok/entity/Adult.java: -------------------------------------------------------------------------------- 1 | package com.lombok.entity; 2 | 3 | import lombok.Builder; 4 | import lombok.Singular; 5 | import lombok.ToString; 6 | 7 | import java.util.List; 8 | 9 | /** 10 | * @author vector 11 | * @date: 2019/2/27 0027 10:50 12 | */ 13 | @Builder 14 | @ToString 15 | public class Adult { 16 | private String name; 17 | private int age; 18 | 19 | @Singular 20 | private List cds; 21 | } 22 | -------------------------------------------------------------------------------- /quick-modules/dao/src/main/java/com/modules/dao/CityMapper.java: -------------------------------------------------------------------------------- 1 | package com.modules.dao; 2 | 3 | import com.modules.entity.City; 4 | 5 | public interface CityMapper { 6 | int deleteByPrimaryKey(Integer id); 7 | 8 | int insert(City record); 9 | 10 | int insertSelective(City record); 11 | 12 | City selectByPrimaryKey(Integer id); 13 | 14 | int updateByPrimaryKeySelective(City record); 15 | 16 | int updateByPrimaryKey(City record); 17 | } -------------------------------------------------------------------------------- /quick-mybatis-druid/src/main/java/com/quick/druid/sys/mapper/UserMapper.java: -------------------------------------------------------------------------------- 1 | package com.quick.druid.sys.mapper; 2 | 3 | import com.quick.druid.sys.entity.User; 4 | import com.baomidou.mybatisplus.core.mapper.BaseMapper; 5 | import org.apache.ibatis.annotations.Select; 6 | 7 | /** 8 | *

9 | * Mapper 接口 10 | *

11 | * 12 | * @author vector4wang 13 | * @since 2019-12-19 14 | */ 15 | public interface UserMapper extends BaseMapper { 16 | } 17 | -------------------------------------------------------------------------------- /quick-redies/src/main/resources/application.properties: -------------------------------------------------------------------------------- 1 | logging.config=classpath:log4j2.xml 2 | #logging.level.root=error 3 | 4 | server.port=80 5 | 6 | 7 | # REDIS (RedisProperties) 8 | spring.redis.database=1 9 | spring.redis.host=localhost 10 | spring.redis.port=6379 11 | spring.redis.password= 12 | spring.redis.pool.max-active=8 13 | spring.redis.pool.max-wait=-1 14 | spring.redis.pool.max-idle=8 15 | spring.redis.pool.min-idle=0 16 | spring.redis.timeout=500 -------------------------------------------------------------------------------- /quick-shiro-cas/src/main/java/com/shiro/ShiroCasApplication.java: -------------------------------------------------------------------------------- 1 | package com.shiro; 2 | 3 | import org.springframework.boot.SpringApplication; 4 | import org.springframework.boot.autoconfigure.SpringBootApplication; 5 | 6 | /** 7 | * Hello world! 8 | * 9 | */ 10 | @SpringBootApplication 11 | public class ShiroCasApplication { 12 | 13 | public static void main(String[] args) { 14 | SpringApplication.run(ShiroCasApplication.class, args); 15 | } 16 | } 17 | -------------------------------------------------------------------------------- /quick-jsp/src/test/java/com/quick/jsp/QuickJspApplicationTests.java: -------------------------------------------------------------------------------- 1 | package com.quick.jsp; 2 | 3 | import org.junit.Test; 4 | import org.junit.runner.RunWith; 5 | import org.springframework.boot.test.context.SpringBootTest; 6 | import org.springframework.test.context.junit4.SpringRunner; 7 | 8 | @RunWith(SpringRunner.class) 9 | @SpringBootTest 10 | public class QuickJspApplicationTests { 11 | 12 | @Test 13 | public void contextLoads() { 14 | } 15 | 16 | } 17 | -------------------------------------------------------------------------------- /quick-mail/src/main/java/com/EmailApplication.java: -------------------------------------------------------------------------------- 1 | package com; 2 | 3 | import org.springframework.boot.SpringApplication; 4 | import org.springframework.boot.autoconfigure.SpringBootApplication; 5 | 6 | /** 7 | * 8 | * @author wangxc 9 | * @date: 2020/5/6 下午9:50 10 | * 11 | */ 12 | @SpringBootApplication 13 | public class EmailApplication { 14 | public static void main(String[] args) { 15 | SpringApplication.run(EmailApplication.class); 16 | } 17 | } 18 | -------------------------------------------------------------------------------- /quick-dynamic-bean/src/main/java/com/dynamic/bean/box/Person.java: -------------------------------------------------------------------------------- 1 | package com.dynamic.bean.box; 2 | 3 | import lombok.Getter; 4 | import lombok.Setter; 5 | 6 | import java.util.Date; 7 | 8 | /** 9 | * 10 | * @author wangxc 11 | * @date: 2019/3/12 下午10:41 12 | * 13 | */ 14 | @Getter 15 | @Setter 16 | public class Person { 17 | private String id; 18 | private String name; 19 | private String address; 20 | private int age; 21 | private Date birthday; 22 | } 23 | -------------------------------------------------------------------------------- /quick-lombok/src/main/java/com/lombok/ValueTestMain.java: -------------------------------------------------------------------------------- 1 | package com.lombok; 2 | 3 | import com.lombok.entity.Teacher; 4 | 5 | /** 6 | * @Value:用在类上,是@Data的不可变形式,相当于为属性添加final声明,只提供getter方法,而不提供setter方法 7 | * @author vector 8 | * @date: 2019/2/27 0027 10:40 9 | */ 10 | public class ValueTestMain { 11 | public static void main(String[] args) { 12 | Teacher teacher = new Teacher("wxc"); 13 | // teacher.setSalary() 没有setter方法 14 | } 15 | } 16 | -------------------------------------------------------------------------------- /quick-package-assembly/src/main/java/com/quick/Application.java: -------------------------------------------------------------------------------- 1 | package com.quick; 2 | 3 | 4 | import org.springframework.boot.SpringApplication; 5 | import org.springframework.boot.autoconfigure.SpringBootApplication; 6 | 7 | /** 8 | * Created by wangxc on 2017/3/9. 9 | */ 10 | @SpringBootApplication 11 | public class Application { 12 | 13 | public static void main(String[] args) { 14 | SpringApplication.run(Application.class, args); 15 | } 16 | } 17 | -------------------------------------------------------------------------------- /quick-i18n/src/main/java/com/quick/source/Application.java: -------------------------------------------------------------------------------- 1 | package com.quick.source; 2 | 3 | import org.springframework.boot.SpringApplication; 4 | import org.springframework.boot.autoconfigure.SpringBootApplication; 5 | 6 | /** 7 | * 8 | * @author wangxc 9 | * @date: 2020/2/18 下午2:46 10 | * 11 | */ 12 | @SpringBootApplication 13 | public class Application { 14 | public static void main(String[] args) { 15 | SpringApplication.run(Application.class); 16 | } 17 | } 18 | -------------------------------------------------------------------------------- /quick-package-assembly-multi-env/src/main/java/com/quick/Application.java: -------------------------------------------------------------------------------- 1 | package com.quick; 2 | 3 | 4 | import org.springframework.boot.SpringApplication; 5 | import org.springframework.boot.autoconfigure.SpringBootApplication; 6 | 7 | /** 8 | * Created by wangxc on 2017/3/9. 9 | */ 10 | @SpringBootApplication 11 | public class Application { 12 | 13 | public static void main(String[] args) { 14 | SpringApplication.run(Application.class, args); 15 | } 16 | } 17 | -------------------------------------------------------------------------------- /quick-package-assembly/src/main/resources/application.properties: -------------------------------------------------------------------------------- 1 | ## 2 | server.port=9090 3 | 4 | logging.level.root=INFO 5 | 6 | spring.datasource.driver-class-name=com.mysql.cj.jdbc.Driver 7 | spring.datasource.url=jdbc:mysql://localhost:3306/world?characterEncoding=UTF-8 8 | spring.datasource.username=root 9 | spring.datasource.password=root 10 | 11 | ## Mybatis 配置 12 | mybatis.typeAliasesPackage=com.quick.entity 13 | ## 需要注意的地方 14 | mybatis.mapperLocations=classpath:mapper/*.xml -------------------------------------------------------------------------------- /quick-redies/src/main/java/com/quick/redis/util/KeyUtil.java: -------------------------------------------------------------------------------- 1 | package com.quick.redis.util; 2 | 3 | /** 4 | * @Author: wangxc 5 | * @GitHub: https://github.com/vector4wang 6 | * @CSDN: http://blog.csdn.net/qqhjqs?viewmode=contents 7 | * @BLOG: http://vector4wang.tk 8 | * @wxid: BMHJQS 9 | */ 10 | public class KeyUtil { 11 | public final static String COMPANY_KEY = "ResumeZero:company:"; 12 | 13 | public final static String SCHOOL_KEY = "ResumeZero:school:"; 14 | } 15 | -------------------------------------------------------------------------------- /quick-abstract-template/src/main/java/com/quick/abs/strategy/Duck.java: -------------------------------------------------------------------------------- 1 | package com.quick.abs.strategy; 2 | 3 | import com.quick.abs.factory.AbstractBirdFactory; 4 | import com.quick.abs.strategy.base.AbstractBird; 5 | import org.springframework.stereotype.Component; 6 | 7 | @Component 8 | public class Duck extends AbstractBird { 9 | @Override 10 | public void afterPropertiesSet() throws Exception { 11 | AbstractBirdFactory.register("Duck", this); 12 | } 13 | } 14 | -------------------------------------------------------------------------------- /quick-api-invoker/src/main/java/com/quick/api/invoker/Adapter.java: -------------------------------------------------------------------------------- 1 | package com.quick.api.invoker; 2 | 3 | import org.springframework.beans.factory.InitializingBean; 4 | 5 | public interface Adapter extends InitializingBean { 6 | default String getType() { 7 | return this.getClass().getSimpleName(); 8 | } 9 | 10 | @Override 11 | default void afterPropertiesSet() throws Exception { 12 | AdapterContextFactor.register(getType(), this); 13 | } 14 | } 15 | -------------------------------------------------------------------------------- /quick-archetype/src/main/java/com/quick/controller/DepotController.java: -------------------------------------------------------------------------------- 1 | package com.quick.controller; 2 | 3 | 4 | import org.springframework.web.bind.annotation.RequestMapping; 5 | 6 | import org.springframework.web.bind.annotation.RestController; 7 | 8 | /** 9 | *

10 | * 前端控制器 11 | *

12 | * 13 | * @author vector4wang 14 | * @since 2023-10-17 15 | */ 16 | @RestController 17 | @RequestMapping("/depot-entity") 18 | public class DepotController { 19 | 20 | } 21 | 22 | -------------------------------------------------------------------------------- /quick-dubbo/dubbo-api/pom.xml: -------------------------------------------------------------------------------- 1 | 2 | 5 | dubbo-api 6 | com.quick 7 | 1.0-SNAPSHOT 8 | 4.0.0 9 | 10 | 11 | -------------------------------------------------------------------------------- /quick-dynamic-bean/src/main/java/com/dynamic/bean/box/AnonymousComponent.java: -------------------------------------------------------------------------------- 1 | package com.dynamic.bean.box; 2 | 3 | import lombok.Getter; 4 | import lombok.Setter; 5 | import org.springframework.context.annotation.Description; 6 | 7 | /** 8 | * 9 | * @author wangxc 10 | * @date: 2019/3/13 上午12:04 11 | * 12 | */ 13 | @Getter 14 | @Setter 15 | @Description(value = "${dynamic.annotate.unpredictable.key}") 16 | public class AnonymousComponent { 17 | private String other; 18 | } 19 | -------------------------------------------------------------------------------- /quick-spring-shiro/src/main/java/com/shiro/ShiroApplication.java: -------------------------------------------------------------------------------- 1 | package com.shiro; 2 | 3 | import org.springframework.boot.SpringApplication; 4 | import org.springframework.boot.autoconfigure.SpringBootApplication; 5 | 6 | /** 7 | * 8 | * @author wangxc 9 | * @date: 2019-12-01 19:54 10 | * 11 | */ 12 | @SpringBootApplication 13 | public class ShiroApplication { 14 | public static void main(String[] args) { 15 | SpringApplication.run(ShiroApplication.class); 16 | } 17 | } 18 | -------------------------------------------------------------------------------- /quick-undertow/src/main/java/com/quick/undertow/Application.java: -------------------------------------------------------------------------------- 1 | package com.quick.undertow; 2 | 3 | import org.springframework.boot.SpringApplication; 4 | import org.springframework.boot.autoconfigure.SpringBootApplication; 5 | 6 | /** 7 | * 8 | * @author wangxc 9 | * @date: 2020/2/24 下午5:45 10 | * 11 | */ 12 | @SpringBootApplication 13 | public class Application { 14 | public static void main(String[] args) { 15 | SpringApplication.run(Application.class); 16 | } 17 | } 18 | -------------------------------------------------------------------------------- /quick-cache/src/main/java/com/quick/cache/CacheApplication.java: -------------------------------------------------------------------------------- 1 | package com.quick.cache; 2 | 3 | import org.springframework.boot.SpringApplication; 4 | import org.springframework.boot.autoconfigure.SpringBootApplication; 5 | import org.springframework.cache.annotation.EnableCaching; 6 | 7 | @SpringBootApplication 8 | @EnableCaching 9 | public class CacheApplication { 10 | public static void main(String[] args) { 11 | SpringApplication.run(CacheApplication.class, args); 12 | } 13 | } 14 | -------------------------------------------------------------------------------- /quick-kafka/src/main/java/com/quick/kafka/KafkaApplication.java: -------------------------------------------------------------------------------- 1 | package com.quick.kafka; 2 | 3 | import org.springframework.boot.SpringApplication; 4 | import org.springframework.boot.autoconfigure.SpringBootApplication; 5 | 6 | /** 7 | * @author vector 8 | * @date: 2019/7/18 0018 10:28 9 | */ 10 | @SpringBootApplication 11 | public class KafkaApplication { 12 | public static void main(String[] args) { 13 | SpringApplication.run(KafkaApplication.class); 14 | } 15 | } 16 | -------------------------------------------------------------------------------- /quick-modules/dao/src/main/java/com/modules/dao/CountryMapper.java: -------------------------------------------------------------------------------- 1 | package com.modules.dao; 2 | 3 | import com.modules.entity.Country; 4 | 5 | public interface CountryMapper { 6 | int deleteByPrimaryKey(String code); 7 | 8 | int insert(Country record); 9 | 10 | int insertSelective(Country record); 11 | 12 | Country selectByPrimaryKey(String code); 13 | 14 | int updateByPrimaryKeySelective(Country record); 15 | 16 | int updateByPrimaryKey(Country record); 17 | } -------------------------------------------------------------------------------- /quick-package-assembly-multi-env/src/main/resources/application.properties: -------------------------------------------------------------------------------- 1 | ## 2 | server.port=9090 3 | 4 | logging.level.root=INFO 5 | 6 | spring.datasource.driver-class-name=com.mysql.cj.jdbc.Driver 7 | spring.datasource.url=jdbc:mysql://localhost:3306/world?characterEncoding=UTF-8 8 | spring.datasource.username=root 9 | spring.datasource.password=root 10 | 11 | ## Mybatis 配置 12 | mybatis.typeAliasesPackage=com.quick.entity 13 | ## 需要注意的地方 14 | mybatis.mapperLocations=classpath:mapper/*.xml -------------------------------------------------------------------------------- /quick-rest-template/src/main/java/com/rest/template/Application.java: -------------------------------------------------------------------------------- 1 | package com.rest.template; 2 | 3 | import org.springframework.boot.SpringApplication; 4 | import org.springframework.boot.autoconfigure.SpringBootApplication; 5 | 6 | /** 7 | * @author vector 8 | * @date: 2019/3/15 0015 9:19 9 | */ 10 | @SpringBootApplication 11 | public class Application { 12 | public static void main(String[] args) { 13 | SpringApplication.run(Application.class); 14 | } 15 | } 16 | 17 | -------------------------------------------------------------------------------- /quick-cache/src/main/java/com/quick/cache/config/SelfCacheManager.java: -------------------------------------------------------------------------------- 1 | package com.quick.cache.config; 2 | 3 | import org.springframework.cache.Cache; 4 | import org.springframework.cache.CacheManager; 5 | 6 | import java.util.Collection; 7 | 8 | public class SelfCacheManager implements CacheManager { 9 | @Override 10 | public Cache getCache(String name) { 11 | return null; 12 | } 13 | 14 | @Override 15 | public Collection getCacheNames() { 16 | return null; 17 | } 18 | } 19 | -------------------------------------------------------------------------------- /quick-monitor-thread/src/main/java/com/monitor/thread/Application.java: -------------------------------------------------------------------------------- 1 | package com.monitor.thread; 2 | 3 | import org.springframework.boot.SpringApplication; 4 | import org.springframework.boot.autoconfigure.SpringBootApplication; 5 | 6 | /** 7 | * 8 | * @author wangxc 9 | * @date: 2019/3/7 下午11:11 10 | * 11 | */ 12 | @SpringBootApplication 13 | public class Application { 14 | public static void main(String[] args) { 15 | SpringApplication.run(Application.class, args); 16 | } 17 | } 18 | -------------------------------------------------------------------------------- /quick-multi-rabbitmq/src/main/java/com/multi/rabbitmq/Application.java: -------------------------------------------------------------------------------- 1 | package com.multi.rabbitmq; 2 | 3 | import org.springframework.boot.SpringApplication; 4 | import org.springframework.boot.autoconfigure.SpringBootApplication; 5 | 6 | /** 7 | * @author vector 8 | * @date: 2019/4/11 0011 10:34 9 | */ 10 | @SpringBootApplication 11 | public class Application { 12 | public static void main(String[] args) { 13 | SpringApplication.run(Application.class, args); 14 | } 15 | } 16 | -------------------------------------------------------------------------------- /quick-platform-component/src/main/java/com/quick/component/enables/QsEnableGlobalExceptionHandler.java: -------------------------------------------------------------------------------- 1 | package com.quick.component.enables; 2 | 3 | import com.quick.component.config.GlobalHandlerConfig; 4 | import org.springframework.context.annotation.Import; 5 | 6 | import java.lang.annotation.*; 7 | 8 | @Target(ElementType.TYPE) 9 | @Retention(RetentionPolicy.RUNTIME) 10 | @Documented 11 | @Import(GlobalHandlerConfig.class) 12 | public @interface QsEnableGlobalExceptionHandler { 13 | } 14 | -------------------------------------------------------------------------------- /quick-package-assembly-multi-env/src/main/resources/env/test/application.properties: -------------------------------------------------------------------------------- 1 | ## 测试环境 2 | server.port=9090 3 | 4 | logging.level.root=INFO 5 | 6 | spring.datasource.driver-class-name=com.mysql.jdbc.Driver 7 | spring.datasource.url=jdbc:mysql://localhost:3306/world?characterEncoding=UTF-8 8 | spring.datasource.username=root 9 | spring.datasource.password=root 10 | 11 | ## Mybatis 配置 12 | mybatis.typeAliasesPackage=com.quick.entity 13 | ## 需要注意的地方 14 | mybatis.mapperLocations=classpath:mapper/*.xml -------------------------------------------------------------------------------- /quick-api-invoker/src/main/java/com/quick/api/invoker/transform/request/DefaultRequestTransformAdapter.java: -------------------------------------------------------------------------------- 1 | package com.quick.api.invoker.transform.request; 2 | 3 | import com.quick.api.invoker.transform.AbstractTransformAdapter; 4 | import org.springframework.stereotype.Component; 5 | 6 | @Component 7 | public class DefaultRequestTransformAdapter extends AbstractTransformAdapter { 8 | 9 | @Override 10 | protected String conversion(String source) { 11 | return null; 12 | } 13 | } 14 | -------------------------------------------------------------------------------- /quick-api-invoker/src/main/java/com/quick/api/invoker/transform/response/DefaultResponseTransformAdapter.java: -------------------------------------------------------------------------------- 1 | package com.quick.api.invoker.transform.response; 2 | 3 | import com.quick.api.invoker.transform.AbstractTransformAdapter; 4 | import org.springframework.stereotype.Component; 5 | 6 | @Component 7 | public class DefaultResponseTransformAdapter extends AbstractTransformAdapter { 8 | @Override 9 | protected String conversion(String source) { 10 | return null; 11 | } 12 | } 13 | -------------------------------------------------------------------------------- /quick-package-assembly-multi-env/src/main/resources/env/local/application.properties: -------------------------------------------------------------------------------- 1 | ## 本地环境 2 | server.port=9090 3 | 4 | logging.level.root=INFO 5 | 6 | spring.datasource.driver-class-name=com.mysql.jdbc.Driver 7 | spring.datasource.url=jdbc:mysql://localhost:3306/world?characterEncoding=UTF-8 8 | spring.datasource.username=root 9 | spring.datasource.password=root 10 | 11 | ## Mybatis 配置 12 | mybatis.typeAliasesPackage=com.quick.entity 13 | ## 需要注意的地方 14 | mybatis.mapperLocations=classpath:mapper/*.xml -------------------------------------------------------------------------------- /quick-package-assembly-multi-env/src/main/resources/env/product/application.properties: -------------------------------------------------------------------------------- 1 | ## 生产环境 2 | server.port=9090 3 | 4 | logging.level.root=INFO 5 | 6 | spring.datasource.driver-class-name=com.mysql.jdbc.Driver 7 | spring.datasource.url=jdbc:mysql://localhost:3306/world?characterEncoding=UTF-8 8 | spring.datasource.username=root 9 | spring.datasource.password=root 10 | 11 | ## Mybatis 配置 12 | mybatis.typeAliasesPackage=com.quick.entity 13 | ## 需要注意的地方 14 | mybatis.mapperLocations=classpath:mapper/*.xml -------------------------------------------------------------------------------- /quick-starter/src/main/java/com/quick/starter/autoconfigure/HelloService.java: -------------------------------------------------------------------------------- 1 | package com.quick.starter.autoconfigure; 2 | 3 | /** 4 | * @author vector 5 | * @date: 2019/8/6 0006 17:08 6 | */ 7 | public class HelloService { 8 | private String msg; 9 | 10 | public String hell() { 11 | return "hello " + msg; 12 | } 13 | 14 | public String getMsg() { 15 | return msg; 16 | } 17 | 18 | public void setMsg(String msg) { 19 | this.msg = msg; 20 | } 21 | } 22 | -------------------------------------------------------------------------------- /quick-config-encrypt/src/main/java/com/quick/encrypt/EncryptApplication.java: -------------------------------------------------------------------------------- 1 | package com.quick.encrypt; 2 | 3 | import org.springframework.boot.SpringApplication; 4 | import org.springframework.boot.autoconfigure.SpringBootApplication; 5 | 6 | /** 7 | * @author vector 8 | * @date: 2018/11/9 0009 16:30 9 | */ 10 | @SpringBootApplication 11 | public class EncryptApplication { 12 | public static void main(String[] args) { 13 | SpringApplication.run(EncryptApplication.class, args); 14 | } 15 | } 16 | -------------------------------------------------------------------------------- /quick-jpa/src/main/java/com/quick/jpa/repository/JpaTestRepository.java: -------------------------------------------------------------------------------- 1 | package com.quick.jpa.repository; 2 | 3 | import com.quick.jpa.entity.JpaTest; 4 | import org.springframework.data.jpa.repository.JpaRepository; 5 | 6 | /** 7 | * @Author: wangxc 8 | * @GitHub: https://github.com/vector4wang 9 | * @CSDN: http://blog.csdn.net/qqhjqs?viewmode=contents 10 | * @BLOG: http://vector4wang.tk 11 | * @wxid: BMHJQS 12 | */ 13 | public interface JpaTestRepository extends JpaRepository { 14 | } 15 | -------------------------------------------------------------------------------- /quick-sample-server/sample-server/src/main/resources/templates/mapper.java.vm: -------------------------------------------------------------------------------- 1 | package ${package.Mapper}; 2 | 3 | import ${package.Entity}.${entity}; 4 | import ${superMapperClassPackage}; 5 | import org.springframework.stereotype.Repository; 6 | 7 | /** 8 | *

9 | * $!{table.comment} Mapper 接口 10 | *

11 | * 12 | * @author ${author} 13 | * @since ${date} 14 | * @version ${cfg.version} 15 | */ 16 | @Repository 17 | public interface ${table.mapperName} extends ${superMapperClass}<${entity}> { 18 | } 19 | -------------------------------------------------------------------------------- /quick-shiro/src/main/java/com/shiro/quick/TestMain.java: -------------------------------------------------------------------------------- 1 | package com.shiro.quick; 2 | 3 | import java.util.List; 4 | import java.util.stream.Collectors; 5 | import java.util.stream.Stream; 6 | 7 | public class TestMain { 8 | 9 | 10 | 11 | public static void main(String[] args) { 12 | List collect = Stream.of(1, 23, 45, 546, 456, 54, 7, 56, 45, 6, 43645).filter(item -> item > 1000).collect(Collectors.toList()); 13 | collect.forEach(System.out::println); 14 | } 15 | } 16 | 17 | 18 | -------------------------------------------------------------------------------- /quick-starter-demo/src/main/java/com/quick/starter/demo/StarterApplication.java: -------------------------------------------------------------------------------- 1 | package com.quick.starter.demo; 2 | 3 | import org.springframework.boot.SpringApplication; 4 | import org.springframework.boot.autoconfigure.SpringBootApplication; 5 | 6 | /** 7 | * 8 | * @author wangxc 9 | * @date: 2019-08-06 21:28 10 | * 11 | */ 12 | @SpringBootApplication 13 | public class StarterApplication { 14 | public static void main(String[] args) { 15 | SpringApplication.run(StarterApplication.class); 16 | } 17 | } 18 | -------------------------------------------------------------------------------- /quick-api-invoker/src/main/java/com/quick/api/invoker/executor/bo/ExecutorConfig.java: -------------------------------------------------------------------------------- 1 | package com.quick.api.invoker.executor.bo; 2 | 3 | import lombok.Data; 4 | 5 | import java.net.InetSocketAddress; 6 | import java.net.Proxy; 7 | import java.util.Map; 8 | 9 | @Data 10 | public class ExecutorConfig { 11 | private int timeout = 5000; 12 | private Map header; 13 | 14 | // Proxy proxy1 = new Proxy(Proxy.Type.HTTP, new InetSocketAddress(proxy, 80)); 15 | 16 | private Proxy proxy; 17 | } 18 | -------------------------------------------------------------------------------- /quick-flowable/src/main/java/com/quick/flowable/FlowableApplication.java: -------------------------------------------------------------------------------- 1 | package com.quick.flowable; 2 | 3 | import org.springframework.boot.SpringApplication; 4 | import org.springframework.boot.autoconfigure.SpringBootApplication; 5 | 6 | /** 7 | * 8 | * @author wangxc 9 | * @date: 2022/7/21 22:50 10 | * 11 | */ 12 | @SpringBootApplication 13 | public class FlowableApplication { 14 | public static void main(String[] args) { 15 | SpringApplication.run(FlowableApplication.class, args); 16 | } 17 | 18 | } 19 | -------------------------------------------------------------------------------- /quick-flowable/src/main/resources/application.properties: -------------------------------------------------------------------------------- 1 | server.port=8081 2 | 3 | spring.main.allow-bean-definition-overriding=true 4 | 5 | spring.datasource.url=jdbc:mysql://127.0.0.1:3306/flowable-sample?characterEncoding=UTF-8 6 | spring.datasource.username=root 7 | spring.datasource.password=123456 8 | spring.datasource.driver-class-name=com.mysql.cj.jdbc.Driver 9 | 10 | spring.servlet.multipart.enabled=true 11 | spring.servlet.multipart.max-file-size=100MB 12 | spring.servlet.multipart.max-request-size=500MB 13 | -------------------------------------------------------------------------------- /quick-jsp/src/main/webapp/WEB-INF/jsp/welcome.jsp: -------------------------------------------------------------------------------- 1 | 2 | 3 | <%@ taglib prefix="spring" uri="http://www.springframework.org/tags"%> 4 | <%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%> 5 | 6 | 7 | 8 | 9 | 10 | 11 | Spring URL: ${springUrl} at ${time} 12 |
13 | JSTL URL: ${url} 14 |
15 | Message: ${message} 16 | 17 | 18 | -------------------------------------------------------------------------------- /quick-jwt/src/main/java/com/quick/jwt/repository/UserRepository.java: -------------------------------------------------------------------------------- 1 | package com.quick.jwt.repository; 2 | 3 | import com.quick.jwt.model.User; 4 | import org.springframework.data.jpa.repository.JpaRepository; 5 | 6 | import javax.transaction.Transactional; 7 | 8 | public interface UserRepository extends JpaRepository { 9 | 10 | boolean existsByUsername(String username); 11 | 12 | User findByUsername(String username); 13 | 14 | @Transactional 15 | void deleteByUsername(String username); 16 | 17 | } -------------------------------------------------------------------------------- /quick-wx-public/src/main/java/com/wx/pn/api/model/AccessToken.java: -------------------------------------------------------------------------------- 1 | package com.wx.pn.api.model; 2 | 3 | public class AccessToken { 4 | private String token; 5 | private Integer expiresIn; 6 | 7 | public String getToken() { 8 | return token; 9 | } 10 | 11 | public void setToken(String token) { 12 | this.token = token; 13 | } 14 | 15 | public Integer getExpiresIn() { 16 | return expiresIn; 17 | } 18 | 19 | public void setExpiresIn(Integer expiresIn) { 20 | this.expiresIn = expiresIn; 21 | } 22 | } 23 | -------------------------------------------------------------------------------- /quick-sample-server/sample-server/src/main/java/com/quick/mapper/SampleTableMapper.java: -------------------------------------------------------------------------------- 1 | package com.quick.mapper; 2 | 3 | import com.quick.entity.SampleTable; 4 | import com.baomidou.mybatisplus.core.mapper.BaseMapper; 5 | import org.springframework.stereotype.Repository; 6 | 7 | /** 8 | *

9 | * Mapper 接口 10 | *

11 | * 12 | * @author vector4wang 13 | * @since 2023-10-17 14 | * @version ${cfg.version} 15 | */ 16 | @Repository 17 | public interface SampleTableMapper extends BaseMapper { 18 | } 19 | -------------------------------------------------------------------------------- /quick-vue/src/main/java/com/vue/VueApplication.java: -------------------------------------------------------------------------------- 1 | package com.vue; 2 | 3 | import org.springframework.boot.SpringApplication; 4 | import org.springframework.boot.autoconfigure.SpringBootApplication; 5 | 6 | /** 7 | * Created with IDEA 8 | * User: vector 9 | * Data: 2018/2/11 0011 10 | * Time: 17:20 11 | * Description: 12 | */ 13 | @SpringBootApplication 14 | public class VueApplication { 15 | public static void main(String[] args) { 16 | SpringApplication.run(VueApplication.class); 17 | } 18 | } 19 | -------------------------------------------------------------------------------- /quick-config-server/src/main/resources/application.properties: -------------------------------------------------------------------------------- 1 | #app.id=spring-boot-logger 2 | app.id=sb-log 3 | # set apollo meta server address, adjust to actual address if necessary 4 | apollo.meta=http://localhost:8081 5 | # 集群 6 | #apollo.cluster=SomeCluster 7 | # 自定义本地配置文件缓存路径 8 | apollo.cacheDir=/opt/data/quick-apollo-config 9 | #apollo. 10 | # 设置在应用启动阶段就加载 Apollo 配置 11 | apollo.bootstrap.enabled=true 12 | apollo.bootstrap.eagerLoad.enabled=true 13 | # 注入 application namespace 14 | apollo.bootstrap.namespaces=application 15 | -------------------------------------------------------------------------------- /quick-logback/src/main/java/com/logback/Application.java: -------------------------------------------------------------------------------- 1 | package com.logback; 2 | 3 | import org.springframework.boot.SpringApplication; 4 | import org.springframework.boot.autoconfigure.SpringBootApplication; 5 | 6 | /** 7 | * Created with IDEA 8 | * User: vector 9 | * Data: 2017/12/6 10 | * Time: 17:14 11 | * Description: 12 | */ 13 | @SpringBootApplication 14 | public class Application { 15 | public static void main(String[] args) { 16 | SpringApplication.run(Application.class, args); 17 | } 18 | } 19 | -------------------------------------------------------------------------------- /quick-redies/src/main/java/com/quick/redis/service/CompanyService.java: -------------------------------------------------------------------------------- 1 | package com.quick.redis.service; 2 | 3 | /** 4 | * Created with IDEA 5 | * User: vector 6 | * Data: 2017/9/26 7 | * Time: 21:27 8 | * Description: 9 | */ 10 | public interface CompanyService { 11 | /** 12 | * 获取公司值 13 | * 14 | */ 15 | Integer isCompany(String companyName); 16 | 17 | Integer add(); 18 | 19 | Integer del(); 20 | 21 | void set(String key, String value); 22 | 23 | String get(String key); 24 | } 25 | -------------------------------------------------------------------------------- /quick-rocketmq/src/main/java/com/rocketmq/Application.java: -------------------------------------------------------------------------------- 1 | package com.rocketmq; 2 | 3 | import org.springframework.boot.SpringApplication; 4 | import org.springframework.boot.autoconfigure.SpringBootApplication; 5 | 6 | /** 7 | * Created with IDEA 8 | * User: vector 9 | * Data: 2017/12/5 10 | * Time: 19:11 11 | * Description: 12 | */ 13 | @SpringBootApplication 14 | public class Application { 15 | public static void main(String[] args) { 16 | SpringApplication.run(Application.class, args); 17 | } 18 | } 19 | -------------------------------------------------------------------------------- /quick-starter/src/main/java/com/quick/starter/autoconfigure/BannerApplication.java: -------------------------------------------------------------------------------- 1 | package com.quick.starter.autoconfigure; 2 | 3 | import org.springframework.boot.SpringApplication; 4 | import org.springframework.boot.autoconfigure.SpringBootApplication; 5 | 6 | /** 7 | * 8 | * @author wangxc 9 | * @date: 2022/1/23 10:04 PM 10 | * 11 | */ 12 | @SpringBootApplication 13 | public class BannerApplication { 14 | public static void main(String[] args) { 15 | SpringApplication.run(BannerApplication.class); 16 | } 17 | } 18 | -------------------------------------------------------------------------------- /quick-abstract-template/src/main/java/com/quick/abs/strategy/Penguin.java: -------------------------------------------------------------------------------- 1 | package com.quick.abs.strategy; 2 | 3 | import com.quick.abs.factory.AbstractBirdFactory; 4 | import com.quick.abs.strategy.base.AbstractBird; 5 | import org.springframework.stereotype.Component; 6 | 7 | /** 8 | * 企鹅 9 | */ 10 | @Component 11 | public class Penguin extends AbstractBird { 12 | 13 | 14 | @Override 15 | public void afterPropertiesSet() throws Exception { 16 | AbstractBirdFactory.register("Penguin", this); 17 | } 18 | } 19 | -------------------------------------------------------------------------------- /quick-dubbo/dubbo-consumer/src/main/resources/application.properties: -------------------------------------------------------------------------------- 1 | server.port = 8082 2 | 3 | spring.dubbo.application.name=service-consumer 4 | 5 | # dubbo服务发布者实现类注解@service所在的包 6 | spring.dubbo.base-package=com.dubbo.consumer 7 | spring.dubbo.registry.address=zookeeper://127.0.0.1 8 | spring.dubbo.registry.port=2181 9 | 10 | spring.dubbo.protocol.name=dubbo 11 | spring.dubbo.protocol.serialization=hessian2 12 | 13 | spring.dubbo.consumer.retries=0 14 | spring.dubbo.consumer.timeout=1000 15 | spring.dubbo.consumer.check=false 16 | -------------------------------------------------------------------------------- /quick-framework/base-adapter/src/main/java/com/base/adapter/annoation/EnableShiroConfig.java: -------------------------------------------------------------------------------- 1 | package com.base.adapter.annoation; 2 | 3 | import com.base.adapter.ShiroConfig; 4 | import org.springframework.context.annotation.Import; 5 | 6 | import java.lang.annotation.*; 7 | 8 | /** 9 | * 10 | * @author wangxc 11 | * @date: 2022/1/26 9:52 AM 12 | * 13 | */ 14 | @Documented 15 | @Target(ElementType.TYPE) 16 | @Retention(RetentionPolicy.RUNTIME) 17 | @Import(ShiroConfig.class) 18 | public @interface EnableShiroConfig { 19 | } 20 | -------------------------------------------------------------------------------- /quick-shiro/src/main/java/com/shiro/quick/shiro/utils/ShiroUtil.java: -------------------------------------------------------------------------------- 1 | package com.shiro.quick.shiro.utils; 2 | 3 | import javax.servlet.ServletRequest; 4 | import javax.servlet.http.HttpServletRequest; 5 | 6 | import static com.shiro.quick.shiro.filter.HeaderFilter.HEADER_KEY; 7 | 8 | public class ShiroUtil { 9 | public static String getHeaderKey(ServletRequest servletRequest) { 10 | HttpServletRequest request = (HttpServletRequest) servletRequest; 11 | return request.getHeader(HEADER_KEY); 12 | } 13 | } 14 | -------------------------------------------------------------------------------- /quick-vw-crawler/src/main/resources/application.properties: -------------------------------------------------------------------------------- 1 | 2 | # Redis数据库索引(默认为0) 3 | spring.redis.database=0 4 | # Redis服务器地址 5 | spring.redis.host=localhost 6 | # Redis服务器连接端口 7 | spring.redis.port=6379 8 | # Redis服务器连接密码(默认为空) 9 | spring.redis.password= 10 | # 连接池最大连接数(使用负值表示没有限制) 11 | spring.redis.pool.max-active=8 12 | # 连接池最大阻塞等待时间(使用负值表示没有限制) 13 | spring.redis.pool.max-wait=-1 14 | # 连接池中的最大空闲连接 15 | spring.redis.pool.max-idle=8 16 | # 连接池中的最小空闲连接 17 | spring.redis.pool.min-idle=0 18 | # 连接超时时间(毫秒) 19 | spring.redis.timeout=0 20 | -------------------------------------------------------------------------------- /quick-activemq/src/main/java/com/mq/service/Consumer.java: -------------------------------------------------------------------------------- 1 | package com.mq.service; 2 | 3 | import org.springframework.jms.annotation.JmsListener; 4 | import org.springframework.stereotype.Component; 5 | 6 | import javax.jms.TextMessage; 7 | 8 | @Component 9 | public class Consumer { 10 | 11 | @JmsListener(destination = "${jsa.activemq.queue.name}",concurrency = "2-6") 12 | public void receiveQueue1(TextMessage message) throws InterruptedException { 13 | System.out.println("Consumer1收到的报文为: "+ message); 14 | } 15 | 16 | } -------------------------------------------------------------------------------- /quick-dynamic-bean/src/main/resources/application.yml: -------------------------------------------------------------------------------- 1 | server: 2 | port: 8080 3 | 4 | spring: 5 | activemq: 6 | switch: true 7 | broker-url: tcp://60.205.191.82:8081 8 | user: admin 9 | password: admin 10 | in-memory: true 11 | pool.enabled: false 12 | 13 | 14 | dynamic: 15 | attr: 16 | switch: true 17 | count: 5 18 | annotate: 19 | switch: true 20 | key: temp 21 | defaultVal: default-person 22 | unpredictable: 23 | key: dynamic.annotate.key 24 | value: one,two,three 25 | -------------------------------------------------------------------------------- /quick-sharding-jdbc/src/main/java/com/quick/shardingjdbc/ShardingJdbcApplication.java: -------------------------------------------------------------------------------- 1 | package com.quick.shardingjdbc; 2 | 3 | import org.springframework.boot.SpringApplication; 4 | import org.springframework.boot.autoconfigure.SpringBootApplication; 5 | 6 | /** 7 | * 8 | * @author wangxc 9 | * @date: 2022/8/16 22:31 10 | * 11 | */ 12 | @SpringBootApplication 13 | public class ShardingJdbcApplication { 14 | public static void main(String[] args) { 15 | SpringApplication.run(ShardingJdbcApplication.class, args); 16 | } 17 | } 18 | -------------------------------------------------------------------------------- /mybatis-crypt-plugin/src/main/java/com/quick/db/crypt/encrypt/Encrypt.java: -------------------------------------------------------------------------------- 1 | package com.quick.db.crypt.encrypt; 2 | 3 | public interface Encrypt { 4 | 5 | 6 | /** 7 | * 对字符串进行加密存储 8 | * @param src 源 9 | * @return 返回加密后的密文 10 | * @throws RuntimeException 算法异常 11 | */ 12 | String encrypt(String src); 13 | 14 | /** 15 | * 对加密后的字符串进行解密 16 | * @param encrypt 加密后的字符串 17 | * @return 返回解密后的原文 18 | * @throws RuntimeException 算法异常 19 | */ 20 | String decrypt(String encrypt); 21 | } 22 | -------------------------------------------------------------------------------- /quick-batch/src/main/resources/logback.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /quick-dubbo-nacos/service/src/main/java/com/quick/nacos/service/OtherService.java: -------------------------------------------------------------------------------- 1 | package com.quick.nacos.service; 2 | 3 | import com.quick.nacos.provider.OtherProvider; 4 | import org.apache.dubbo.config.annotation.DubboService; 5 | 6 | /** 7 | * 8 | * @author wangxc 9 | * @date: 2022/3/6 10:49 AM 10 | * 11 | */ 12 | @DubboService(version = "${service.version}") 13 | public class OtherService implements OtherProvider { 14 | @Override 15 | public String otherHello(String param) { 16 | return "other hello " + param; 17 | } 18 | } 19 | -------------------------------------------------------------------------------- /quick-hbase/src/main/java/com/quick/hbase/HbaseApplication.java: -------------------------------------------------------------------------------- 1 | package com.quick.hbase; 2 | 3 | import org.springframework.boot.SpringApplication; 4 | import org.springframework.boot.autoconfigure.SpringBootApplication; 5 | 6 | /** 7 | * 8 | * @author wangxc 9 | * @date: 2019/7/16 下午8:51 10 | * https://blog.csdn.net/vbirdbest/article/details/88410954 11 | */ 12 | @SpringBootApplication 13 | public class HbaseApplication { 14 | public static void main(String[] args) { 15 | SpringApplication.run(HbaseApplication.class); 16 | } 17 | } 18 | -------------------------------------------------------------------------------- /quick-hbase/src/main/java/com/quick/hbase/config/HbaseProperties.java: -------------------------------------------------------------------------------- 1 | package com.quick.hbase.config; 2 | 3 | import org.springframework.boot.context.properties.ConfigurationProperties; 4 | 5 | import java.util.Map; 6 | 7 | @ConfigurationProperties(prefix = "hbase") 8 | public class HbaseProperties { 9 | private Map config; 10 | public Map getConfig() { 11 | return config; 12 | } 13 | public void setConfig(Map config) { 14 | this.config = config; 15 | } 16 | } -------------------------------------------------------------------------------- /quick-batch/src/main/java/com/quick/batch/Application.java: -------------------------------------------------------------------------------- 1 | package com.quick.batch; 2 | 3 | import org.springframework.boot.SpringApplication; 4 | import org.springframework.boot.autoconfigure.SpringBootApplication; 5 | 6 | /** 7 | * Created with IDEA 8 | * User: vector 9 | * Data: 2017/6/13 10 | * Time: 17:37 11 | * Description: 12 | */ 13 | @SpringBootApplication 14 | public class Application { 15 | public static void main(String[] args) throws Exception { 16 | SpringApplication.run(Application.class, args); 17 | } 18 | } 19 | -------------------------------------------------------------------------------- /quick-lombok/src/main/java/com/lombok/DataTestMain.java: -------------------------------------------------------------------------------- 1 | package com.lombok; 2 | 3 | import com.lombok.entity.Student; 4 | 5 | /** 6 | * @author vector 7 | * @date: 2019/2/27 0027 10:30 8 | */ 9 | public class DataTestMain { 10 | public static void main(String[] args) { 11 | Student student = new Student(); 12 | student.setClassNo("1"); 13 | student.setStuNo("asdf"); 14 | student.setAge(20); 15 | student.setAddress("sasfasdf"); 16 | 17 | 18 | System.out.println(student); 19 | } 20 | } 21 | -------------------------------------------------------------------------------- /quick-multi-data/src/main/java/com/quick/mulit/config/DruidStatFilter.java: -------------------------------------------------------------------------------- 1 | package com.quick.mulit.config; 2 | 3 | 4 | import com.alibaba.druid.support.http.WebStatFilter; 5 | 6 | import javax.servlet.annotation.WebFilter; 7 | import javax.servlet.annotation.WebInitParam; 8 | 9 | @WebFilter(filterName="druidWebStatFilter",urlPatterns="/*", 10 | initParams={ 11 | @WebInitParam(name="exclusions",value="*.js,*.gif,*.jpg,*.bmp,*.png,*.css,*.ico,/druid/*")// 忽略资源 12 | }) 13 | public class DruidStatFilter extends WebStatFilter { 14 | 15 | } -------------------------------------------------------------------------------- /quick-wx-public/src/main/java/com/wx/pn/api/model/Voice.java: -------------------------------------------------------------------------------- 1 | package com.wx.pn.api.model; 2 | 3 | /** 4 | * @author vector 5 | * @date: 2018/11/5 0005 14:19 6 | */ 7 | public class Voice { 8 | private String MediaId; 9 | 10 | public Voice() { 11 | } 12 | 13 | public Voice(String mediaId) { 14 | this.MediaId = mediaId; 15 | } 16 | 17 | public String getMediaId() { 18 | return MediaId; 19 | } 20 | 21 | public void setMediaId(String mediaId) { 22 | MediaId = mediaId; 23 | } 24 | } 25 | -------------------------------------------------------------------------------- /quick-wx-public/src/main/java/com/wx/pn/api/exception/WeixinException.java: -------------------------------------------------------------------------------- 1 | package com.wx.pn.api.exception; 2 | 3 | public class WeixinException extends RuntimeException { 4 | 5 | public WeixinException() { 6 | super(); 7 | } 8 | 9 | public WeixinException(String message) { 10 | super(message); 11 | } 12 | 13 | public WeixinException(String message, Throwable cause) { 14 | super(message, cause); 15 | } 16 | 17 | public WeixinException(Throwable cause) { 18 | super(cause); 19 | } 20 | } 21 | -------------------------------------------------------------------------------- /quick-shiro/src/main/java/com/shiro/quick/shiro/token/HeaderToken.java: -------------------------------------------------------------------------------- 1 | package com.shiro.quick.shiro.token; 2 | 3 | import org.apache.shiro.authc.AuthenticationToken; 4 | 5 | public class HeaderToken implements AuthenticationToken { 6 | 7 | private String key; 8 | 9 | public HeaderToken(String key) { 10 | this.key = key; 11 | } 12 | 13 | @Override 14 | public Object getPrincipal() { 15 | return key; 16 | } 17 | 18 | @Override 19 | public Object getCredentials() { 20 | return key; 21 | } 22 | } 23 | -------------------------------------------------------------------------------- /quick-vue/src/main/java/com/vue/controller/ApiController.java: -------------------------------------------------------------------------------- 1 | package com.vue.controller; 2 | 3 | import org.springframework.web.bind.annotation.RequestMapping; 4 | import org.springframework.web.bind.annotation.RestController; 5 | 6 | /** 7 | * Created with IDEA 8 | * User: vector 9 | * Data: 2018/2/11 0011 10 | * Time: 17:20 11 | * Description: 12 | */ 13 | @RestController 14 | public class ApiController { 15 | 16 | @RequestMapping("/hello") 17 | public String hello() { 18 | return "Hello Quick SpringBoot-Vue"; 19 | } 20 | } 21 | -------------------------------------------------------------------------------- /quick-dubbo/dubbo-consumer/src/main/java/com/dubbo/consumer/service/HelloServiceImpl.java: -------------------------------------------------------------------------------- 1 | package com.dubbo.consumer.service; 2 | 3 | import com.alibaba.dubbo.config.annotation.Reference; 4 | import com.dubbo.api.HelloService; 5 | import org.springframework.stereotype.Component; 6 | 7 | @Component 8 | public class HelloServiceImpl implements HelloService { 9 | 10 | @Reference 11 | public HelloService helloService; 12 | 13 | @Override 14 | public String sayHello(String name) { 15 | return helloService.sayHello(name); 16 | } 17 | } 18 | -------------------------------------------------------------------------------- /quick-mongodb/src/main/java/com/quick/mongodb/repo/CustomerRepository.java: -------------------------------------------------------------------------------- 1 | package com.quick.mongodb.repo; 2 | 3 | import com.quick.mongodb.entity.Customer; 4 | import org.springframework.data.mongodb.repository.MongoRepository; 5 | 6 | import java.util.List; 7 | 8 | /** 9 | * @author vector 10 | * @date: 2019/9/29 0029 15:08 11 | */ 12 | public interface CustomerRepository extends MongoRepository { 13 | 14 | public Customer findByFirstName(String firstName); 15 | 16 | public List findByLastName(String lastName); 17 | } 18 | -------------------------------------------------------------------------------- /quick-spring-shiro/src/main/java/com/shiro/controller/BusController.java: -------------------------------------------------------------------------------- 1 | package com.shiro.controller; 2 | 3 | import lombok.extern.slf4j.Slf4j; 4 | import org.springframework.web.bind.annotation.GetMapping; 5 | import org.springframework.web.bind.annotation.RequestMapping; 6 | import org.springframework.web.bind.annotation.RestController; 7 | 8 | @RequestMapping("/biz") 9 | @RestController 10 | @Slf4j 11 | public class BusController { 12 | 13 | @GetMapping("/info") 14 | public String info() { 15 | return "auth success info"; 16 | } 17 | } 18 | -------------------------------------------------------------------------------- /quick-wx-public/src/main/java/com/wx/pn/api/response/SendTemplateResponse.java: -------------------------------------------------------------------------------- 1 | package com.wx.pn.api.response; 2 | 3 | import com.alibaba.fastjson.annotation.JSONField; 4 | import com.wx.pn.api.model.BaseResponse; 5 | 6 | public class SendTemplateResponse extends BaseResponse { 7 | 8 | /** 9 | * 消息id 10 | */ 11 | @JSONField(name = "msgid") 12 | private String msgid; 13 | 14 | public String getMsgid() { 15 | return msgid; 16 | } 17 | 18 | public void setMsgid(String msgid) { 19 | this.msgid = msgid; 20 | } 21 | } 22 | -------------------------------------------------------------------------------- /quick-wx-public/src/main/java/com/wx/pn/api/utils/WXTip.java: -------------------------------------------------------------------------------- 1 | package com.wx.pn.api.utils; 2 | 3 | 4 | /** 5 | * @author vector 6 | * @date: 2018/11/6 0006 11:28 7 | * 异常提示 8 | */ 9 | public class WXTip { 10 | public static String errTip(String fromUserName, String toUserName) { 11 | return MessageUtil.reversalMessage(fromUserName, toUserName, "神马情况~"); 12 | } 13 | 14 | public static String warnTip(String fromUserName, String toUserName) { 15 | return MessageUtil.reversalMessage(fromUserName, toUserName, "警告信息▄█▀█●给跪了"); 16 | } 17 | } 18 | -------------------------------------------------------------------------------- /quick-modules/service1/src/main/java/com/modules/Application.java: -------------------------------------------------------------------------------- 1 | package com.modules; 2 | 3 | import org.mybatis.spring.annotation.MapperScan; 4 | import org.springframework.boot.SpringApplication; 5 | import org.springframework.boot.autoconfigure.SpringBootApplication; 6 | 7 | /** 8 | * Created with IDEA 9 | * User: vector 10 | * Data: 2017/4/1 11 | * Time: 8:42 12 | */ 13 | @SpringBootApplication 14 | @MapperScan("com.modules.dao") 15 | public class Application { 16 | public static void main(String[] args) { 17 | SpringApplication.run(Application.class); 18 | } 19 | } 20 | -------------------------------------------------------------------------------- /quick-modules/service2/src/main/java/com/modules/Application.java: -------------------------------------------------------------------------------- 1 | package com.modules; 2 | 3 | import org.mybatis.spring.annotation.MapperScan; 4 | import org.springframework.boot.SpringApplication; 5 | import org.springframework.boot.autoconfigure.SpringBootApplication; 6 | 7 | /** 8 | * Created with IDEA 9 | * User: vector 10 | * Data: 2017/4/1 11 | * Time: 8:42 12 | */ 13 | @SpringBootApplication 14 | @MapperScan("com.modules.dao") 15 | public class Application { 16 | public static void main(String[] args) { 17 | SpringApplication.run(Application.class); 18 | } 19 | } 20 | -------------------------------------------------------------------------------- /quick-modules/test/src/main/java/com/multi/test/Application.java: -------------------------------------------------------------------------------- 1 | package com.multi.test; 2 | 3 | import org.mybatis.spring.annotation.MapperScan; 4 | import org.springframework.boot.SpringApplication; 5 | import org.springframework.boot.autoconfigure.SpringBootApplication; 6 | 7 | /** 8 | * @author vector 9 | * @Data 2018/8/10 0010 10 | * @Description TODO 11 | */ 12 | @SpringBootApplication 13 | @MapperScan("com.modules.dao") 14 | public class Application { 15 | public static void main(String[] args) { 16 | SpringApplication.run(Application.class, args); 17 | } 18 | } 19 | -------------------------------------------------------------------------------- /quick-oauth2/quick-github-oauth/src/main/java/com/github/oauth/config/ServletInitializer.java: -------------------------------------------------------------------------------- 1 | package com.github.oauth.config; 2 | 3 | import com.github.oauth.Application; 4 | import org.springframework.boot.builder.SpringApplicationBuilder; 5 | import org.springframework.boot.context.web.SpringBootServletInitializer; 6 | 7 | public class ServletInitializer extends SpringBootServletInitializer { 8 | 9 | @Override 10 | protected SpringApplicationBuilder configure(SpringApplicationBuilder application) { 11 | return application.sources(Application.class); 12 | } 13 | } -------------------------------------------------------------------------------- /quick-oauth2/quick-oauth2-server/src/main/java/com/quick/auth/server/mapper/AccountRepository.java: -------------------------------------------------------------------------------- 1 | package com.quick.auth.server.mapper; 2 | 3 | import com.quick.auth.server.entity.Account; 4 | import org.springframework.data.jpa.repository.JpaRepository; 5 | import org.springframework.stereotype.Repository; 6 | 7 | /** 8 | * Created with IDEA 9 | * User: vector 10 | * Data: 2017/10/26 11 | * Time: 19:38 12 | * Description: 13 | */ 14 | @Repository 15 | public interface AccountRepository extends JpaRepository { 16 | Account findByName(String name); 17 | } 18 | -------------------------------------------------------------------------------- /quick-jwt/src/main/java/com/quick/jwt/controller/AppController.java: -------------------------------------------------------------------------------- 1 | package com.quick.jwt.controller; 2 | 3 | import io.swagger.annotations.Api; 4 | import org.springframework.web.bind.annotation.RequestMapping; 5 | import org.springframework.web.bind.annotation.RestController; 6 | 7 | /** 8 | * 9 | * @author wangxc 10 | * @date: 2019/2/27 下午10:23 11 | * 12 | */ 13 | @RestController 14 | @RequestMapping("/app") 15 | @Api(value = "业务app") 16 | public class AppController { 17 | 18 | @RequestMapping("/test") 19 | public String test() { 20 | return "hello world!"; 21 | } 22 | } 23 | -------------------------------------------------------------------------------- /quick-platform-component/src/main/java/com/quick/component/enables/QsEnableAroundLog.java: -------------------------------------------------------------------------------- 1 | package com.quick.component.enables; 2 | 3 | import com.quick.component.config.logAspect.WebLogAspectConfig; 4 | import org.springframework.context.annotation.Import; 5 | 6 | import java.lang.annotation.*; 7 | 8 | /** 9 | * 接口请求日志 10 | */ 11 | @Target(ElementType.TYPE) 12 | @Retention(RetentionPolicy.RUNTIME) 13 | @Documented 14 | @Import(WebLogAspectConfig.class) 15 | public @interface QsEnableAroundLog { 16 | 17 | String value() default "execution(public * com.*..controller.*.*(..))"; 18 | } 19 | -------------------------------------------------------------------------------- /quick-profiles/base/pom.xml: -------------------------------------------------------------------------------- 1 | 2 | 5 | 6 | quick-profiles 7 | com.quick 8 | 1.0-SNAPSHOT 9 | 10 | 11 | 12 | 4.0.0 13 | 14 | base 15 | 16 | 17 | -------------------------------------------------------------------------------- /quick-sample-server/sample-api/pom.xml: -------------------------------------------------------------------------------- 1 | 3 | 4.0.0 4 | 5 | com.quick 6 | quick-sample-server 7 | 1.0-SNAPSHOT 8 | 9 | sample-api 10 | Archetype - sample-api 11 | http://maven.apache.org 12 | 13 | -------------------------------------------------------------------------------- /quick-shiro/src/main/java/com/shiro/quick/shiro/HeaderDefaultSubjectFactory.java: -------------------------------------------------------------------------------- 1 | package com.shiro.quick.shiro; 2 | 3 | import org.apache.shiro.subject.Subject; 4 | import org.apache.shiro.subject.SubjectContext; 5 | import org.apache.shiro.web.mgt.DefaultWebSubjectFactory; 6 | 7 | 8 | public class HeaderDefaultSubjectFactory extends DefaultWebSubjectFactory { 9 | 10 | @Override 11 | public Subject createSubject(SubjectContext context) { 12 | // 不创建 session 13 | context.setSessionCreationEnabled(false); 14 | return super.createSubject(context); 15 | } 16 | } -------------------------------------------------------------------------------- /quick-sample-server/sample-server/src/main/java/com/quick/CustomApplication.java: -------------------------------------------------------------------------------- 1 | package com.quick; 2 | 3 | import org.mybatis.spring.annotation.MapperScan; 4 | import org.springframework.boot.SpringApplication; 5 | import org.springframework.boot.autoconfigure.SpringBootApplication; 6 | import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration; 7 | 8 | @SpringBootApplication 9 | @MapperScan("com.quick.mapper") 10 | 11 | public class CustomApplication { 12 | public static void main(String[] args) { 13 | SpringApplication.run(CustomApplication.class); 14 | } 15 | } -------------------------------------------------------------------------------- /quick-spring-shiro/src/main/java/com/shiro/entity/RolePerm.java: -------------------------------------------------------------------------------- 1 | package com.shiro.entity; 2 | 3 | import java.io.Serializable; 4 | 5 | public class RolePerm implements Serializable { 6 | 7 | private Long roleId; 8 | private Long permId; 9 | 10 | public Long getRoleId() { 11 | return roleId; 12 | } 13 | 14 | public void setRoleId(Long roleId) { 15 | this.roleId = roleId; 16 | } 17 | 18 | public Long getPermId() { 19 | return permId; 20 | } 21 | 22 | public void setPermId(Long permId) { 23 | this.permId = permId; 24 | } 25 | } -------------------------------------------------------------------------------- /quick-spring-shiro/src/main/java/com/shiro/entity/UserRole.java: -------------------------------------------------------------------------------- 1 | package com.shiro.entity; 2 | 3 | import java.io.Serializable; 4 | 5 | public class UserRole implements Serializable { 6 | 7 | private Long userId; 8 | private Long roleId; 9 | 10 | public Long getUserId() { 11 | return userId; 12 | } 13 | 14 | public void setUserId(Long userId) { 15 | this.userId = userId; 16 | } 17 | 18 | public Long getRoleId() { 19 | return roleId; 20 | } 21 | 22 | public void setRoleId(Long roleId) { 23 | this.roleId = roleId; 24 | } 25 | } -------------------------------------------------------------------------------- /quick-starter/src/main/java/com/quick/starter/autoconfigure/QuickProperties.java: -------------------------------------------------------------------------------- 1 | package com.quick.starter.autoconfigure; 2 | 3 | import org.springframework.boot.context.properties.ConfigurationProperties; 4 | 5 | /** 6 | * @author vector 7 | * @date: 2019/8/6 0006 17:00 8 | */ 9 | @ConfigurationProperties(prefix = "quick") 10 | public class QuickProperties { 11 | 12 | private String name = "quick starter demo!!!"; 13 | 14 | public String getName() { 15 | return name; 16 | } 17 | 18 | public void setName(String name) { 19 | this.name = name; 20 | } 21 | } 22 | -------------------------------------------------------------------------------- /quick-wx-public/src/main/java/com/wx/pn/api/response/AddTemplateResponse.java: -------------------------------------------------------------------------------- 1 | package com.wx.pn.api.response; 2 | 3 | import com.alibaba.fastjson.annotation.JSONField; 4 | import com.wx.pn.api.model.BaseResponse; 5 | 6 | public class AddTemplateResponse extends BaseResponse { 7 | /** 8 | * 模版id 9 | */ 10 | @JSONField(name = "template_id") 11 | private String templateId; 12 | 13 | public String getTemplateId() { 14 | return templateId; 15 | } 16 | 17 | public void setTemplateId(String templateId) { 18 | this.templateId = templateId; 19 | } 20 | } 21 | -------------------------------------------------------------------------------- /quick-api-invoker/src/main/java/com/quick/api/invoker/executor/OkhttpExecutorAdapter.java: -------------------------------------------------------------------------------- 1 | package com.quick.api.invoker.executor; 2 | 3 | import com.quick.api.invoker.enums.HttpMethod; 4 | import com.quick.api.invoker.executor.bo.ExecutorConfig; 5 | import org.springframework.stereotype.Component; 6 | 7 | import java.util.Map; 8 | 9 | @Component 10 | public class OkhttpExecutorAdapter extends AbstractExecutorAdapter{ 11 | 12 | 13 | @Override 14 | public String execute(String url, HttpMethod method, Map querys, ExecutorConfig config) { 15 | return null; 16 | } 17 | } 18 | -------------------------------------------------------------------------------- /quick-api-invoker/src/main/java/com/quick/api/invoker/model/AdapterClassModel.java: -------------------------------------------------------------------------------- 1 | package com.quick.api.invoker.model; 2 | 3 | import lombok.Data; 4 | 5 | @Data 6 | public class AdapterClassModel { 7 | private int id; 8 | private String className; 9 | 10 | private String classFqn; 11 | 12 | private String classContent; 13 | 14 | /** 15 | * 1: executor,2: transform-request,3: transform-response 16 | */ 17 | private int adapterType; 18 | 19 | /** 20 | * 1: 代码内部加载,2: 实时加载 21 | * 为2时,classContent肯定有值 22 | */ 23 | private int loadType = 1; 24 | } 25 | -------------------------------------------------------------------------------- /mybatis-crypt-plugin/src/main/java/com/quick/db/crypt/util/TestMain.java: -------------------------------------------------------------------------------- 1 | package com.quick.db.crypt.util; 2 | 3 | import com.quick.db.crypt.encrypt.AesDesDefaultEncrypt; 4 | 5 | import java.security.NoSuchAlgorithmException; 6 | 7 | public class TestMain { 8 | public static void main(String[] args) throws NoSuchAlgorithmException { 9 | AesDesDefaultEncrypt aesDesDefaultEncrypt = new AesDesDefaultEncrypt(); 10 | // System.out.println(aesDesDefaultEncrypt.decrypt("0e22e227f48d13e17baa500f68e72024")); 11 | System.out.println(aesDesDefaultEncrypt.encrypt("17727826853")); 12 | } 13 | } -------------------------------------------------------------------------------- /quick-archetype/src/main/java/com/quick/service/impl/DepotServiceImp.java: -------------------------------------------------------------------------------- 1 | package com.quick.service.impl; 2 | 3 | import com.quick.entity.DepotEntity; 4 | import com.quick.mapper.DepotMapper; 5 | import com.quick.service.DepotService; 6 | import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; 7 | import org.springframework.stereotype.Service; 8 | 9 | /** 10 | *

11 | * 服务实现类 12 | *

13 | * 14 | * @author vector4wang 15 | * @since 2023-10-17 16 | */ 17 | @Service 18 | public class DepotServiceImp extends ServiceImpl implements DepotService { 19 | 20 | } 21 | -------------------------------------------------------------------------------- /quick-dubbo-nacos/service/src/main/java/com/quick/nacos/NacosServiceApp.java: -------------------------------------------------------------------------------- 1 | package com.quick.nacos; 2 | 3 | import org.springframework.boot.SpringApplication; 4 | import org.springframework.boot.autoconfigure.SpringBootApplication; 5 | import org.springframework.cloud.client.discovery.EnableDiscoveryClient; 6 | 7 | /** 8 | * 9 | * @author wangxc 10 | * @date: 2022/3/5 10:28 PM 11 | * 12 | */ 13 | @SpringBootApplication 14 | @EnableDiscoveryClient 15 | public class NacosServiceApp { 16 | public static void main(String[] args) { 17 | SpringApplication.run(NacosServiceApp.class, args); 18 | } 19 | } 20 | -------------------------------------------------------------------------------- /quick-rabbitmq/src/main/java/com/quick/mq/scenes/moreSendMoreRecever/HelloMoreReceiver1.java: -------------------------------------------------------------------------------- 1 | package com.quick.mq.scenes.moreSendMoreRecever; 2 | 3 | import org.springframework.amqp.rabbit.annotation.RabbitHandler; 4 | import org.springframework.stereotype.Component; 5 | 6 | /** 7 | * Created with IDEA 8 | * User: vector 9 | * Data: 2017/7/7 10 | * Time: 18:07 11 | * Description: 12 | */ 13 | @Component(value = "msmr1") 14 | public class HelloMoreReceiver1 { 15 | @RabbitHandler 16 | public void process(String hello) { 17 | System.out.println("Receiver1 : " + hello); 18 | } 19 | } 20 | -------------------------------------------------------------------------------- /quick-redies/src/main/java/com/quick/redis/Application.java: -------------------------------------------------------------------------------- 1 | package com.quick.redis; 2 | 3 | import org.springframework.boot.SpringApplication; 4 | import org.springframework.boot.autoconfigure.SpringBootApplication; 5 | 6 | /** 7 | * Created with IDEA 8 | * User: vector 9 | * Data: 2017/9/26 10 | * Time: 21:30 11 | * Description: 12 | */ 13 | @SpringBootApplication 14 | public class Application { 15 | public static void main(String[] args) { 16 | // 程序启动入口 17 | // 启动嵌入式的 Tomcat 并初始化 Spring 环境及其各 Spring 组件 18 | SpringApplication.run(Application.class,args); 19 | } 20 | } 21 | -------------------------------------------------------------------------------- /quick-async/src/main/java/com/async/AsyncApplication.java: -------------------------------------------------------------------------------- 1 | package com.async; 2 | 3 | import org.springframework.boot.SpringApplication; 4 | import org.springframework.boot.autoconfigure.SpringBootApplication; 5 | import org.springframework.scheduling.annotation.EnableAsync; 6 | 7 | /** 8 | * Created with IDEA 9 | * User: vector 10 | * Data: 2018/5/28 0028 11 | * Time: 10:59 12 | * Description: 13 | */ 14 | @SpringBootApplication 15 | @EnableAsync 16 | public class AsyncApplication { 17 | public static void main(String[] args) { 18 | SpringApplication.run(AsyncApplication.class); 19 | } 20 | } 21 | -------------------------------------------------------------------------------- /quick-monitor-thread/src/main/java/com/monitor/thread/service/SpecialService.java: -------------------------------------------------------------------------------- 1 | package com.monitor.thread.service; 2 | 3 | import org.springframework.stereotype.Service; 4 | 5 | import javax.xml.ws.ServiceMode; 6 | 7 | /** 8 | * 9 | * @author wangxc 10 | * @date: 2019/3/7 下午11:14 11 | * 12 | */ 13 | @Service 14 | public class SpecialService { 15 | 16 | public void build() { 17 | try { 18 | System.out.println(Thread.currentThread().getName() + " ====>异步执行中。。。"); 19 | Thread.sleep(1000); 20 | } catch (InterruptedException e) { 21 | e.printStackTrace(); 22 | } 23 | 24 | } 25 | } 26 | -------------------------------------------------------------------------------- /quick-rabbitmq/src/main/java/com/quick/mq/scenes/moreSendMoreRecever/HelloMoreReceiver2.java: -------------------------------------------------------------------------------- 1 | package com.quick.mq.scenes.moreSendMoreRecever; 2 | 3 | import org.springframework.amqp.rabbit.annotation.RabbitHandler; 4 | import org.springframework.stereotype.Component; 5 | 6 | /** 7 | * Created with IDEA 8 | * User: vector 9 | * Data: 2017/7/7 10 | * Time: 18:10 11 | * Description: 12 | */ 13 | @Component(value = "msmr2") 14 | public class HelloMoreReceiver2 { 15 | @RabbitHandler 16 | public void process(String hello) { 17 | System.out.println("Receiver2 : " + hello); 18 | } 19 | 20 | } 21 | -------------------------------------------------------------------------------- /.github/workflows/github2gitee.yml: -------------------------------------------------------------------------------- 1 | # 暂停自动同步,后续手动同步 2 | # on: push 3 | # name: Mirror GitHub Auto Queried Repos to Gitee 4 | # jobs: 5 | # run: 6 | # name: Sync-GitHub-to-Gitee 7 | # runs-on: ubuntu-latest 8 | # steps: 9 | # - name: Mirror the Github repos to Gitee. 10 | # uses: Yikun/hub-mirror-action@master 11 | # with: 12 | # src: github/vector4wang 13 | # dst: gitee/backwxc 14 | # dst_key: ${{ secrets.GITEE_PRIVATE_KEY }} 15 | # dst_token: ${{ secrets.GITEE_TOKEN }} 16 | # white_list: 'spring-boot-quick' 17 | # force_update: true 18 | -------------------------------------------------------------------------------- /quick-sample-server/sample-server/pom.xml: -------------------------------------------------------------------------------- 1 | 3 | 4.0.0 4 | 5 | com.quick 6 | quick-sample-server 7 | 1.0-SNAPSHOT 8 | 9 | sample-server 10 | Archetype - sample-server 11 | http://maven.apache.org 12 | 13 | -------------------------------------------------------------------------------- /quick-dubbo-nacos/consumer/src/main/java/com/quick/nacos/consumer/NacosConsumerApp.java: -------------------------------------------------------------------------------- 1 | package com.quick.nacos.consumer; 2 | 3 | import org.springframework.boot.SpringApplication; 4 | import org.springframework.boot.autoconfigure.SpringBootApplication; 5 | import org.springframework.cloud.client.discovery.EnableDiscoveryClient; 6 | 7 | /** 8 | * 9 | * @author wangxc 10 | * @date: 2022/3/5 10:39 PM 11 | * 12 | */ 13 | @SpringBootApplication 14 | @EnableDiscoveryClient 15 | public class NacosConsumerApp { 16 | public static void main(String[] args) { 17 | SpringApplication.run(NacosConsumerApp.class, args); 18 | } 19 | } 20 | -------------------------------------------------------------------------------- /quick-lombok/src/main/java/com/lombok/BuilderTestMain.java: -------------------------------------------------------------------------------- 1 | package com.lombok; 2 | 3 | import com.lombok.entity.Adult; 4 | 5 | /** 6 | * @Builder:用在类、构造器、方法上,为你提供复杂的builder APIs,让你可以像如下方式一样调用Person.builder().name("Adam Savage").city("San Francisco").job("Mythbusters").job("Unchained Reaction").build(); 7 | * @Singular 8 | * @author vector 9 | * @date: 2019/2/27 0027 10:50 10 | */ 11 | public class BuilderTestMain { 12 | public static void main(String[] args) { 13 | Adult build = Adult.builder().age(10).cd("q").cd("e").cd("w").name("zxc").build(); 14 | System.out.println(build); 15 | 16 | } 17 | } 18 | -------------------------------------------------------------------------------- /quick-monitor-thread/src/main/java/com/monitor/thread/controller/ApiController.java: -------------------------------------------------------------------------------- 1 | package com.monitor.thread.controller; 2 | 3 | import org.springframework.web.bind.annotation.RequestMapping; 4 | import org.springframework.web.bind.annotation.RequestMethod; 5 | import org.springframework.web.bind.annotation.RestController; 6 | 7 | /** 8 | * 9 | * @author wangxc 10 | * @date: 2019/3/7 下午11:15 11 | * 12 | */ 13 | @RestController 14 | @RequestMapping("/") 15 | public class ApiController { 16 | @RequestMapping(value = "/test", method = RequestMethod.GET) 17 | public String test() { 18 | return "Hello there"; 19 | } 20 | } 21 | -------------------------------------------------------------------------------- /quick-api-invoker/src/main/java/com/quick/api/invoker/executor/AbstractExecutorAdapter.java: -------------------------------------------------------------------------------- 1 | package com.quick.api.invoker.executor; 2 | 3 | import com.quick.api.invoker.Adapter; 4 | import com.quick.api.invoker.enums.HttpMethod; 5 | import com.quick.api.invoker.executor.bo.ExecutorConfig; 6 | 7 | import java.util.Map; 8 | 9 | public abstract class AbstractExecutorAdapter implements Adapter { 10 | 11 | public abstract String execute(String url, HttpMethod method, Map params, ExecutorConfig config); 12 | 13 | public void print() { 14 | System.out.println(this.getClass().getName()); 15 | } 16 | } 17 | -------------------------------------------------------------------------------- /quick-shiro/src/main/java/com/shiro/quick/config/WebConfig.java: -------------------------------------------------------------------------------- 1 | package com.shiro.quick.config; 2 | 3 | import com.shiro.quick.intecepter.AccessInterceptor; 4 | import org.springframework.context.annotation.Configuration; 5 | import org.springframework.web.servlet.config.annotation.InterceptorRegistry; 6 | import org.springframework.web.servlet.config.annotation.WebMvcConfigurer; 7 | 8 | //@Configuration 9 | public class WebConfig implements WebMvcConfigurer { 10 | 11 | @Override 12 | public void addInterceptors(InterceptorRegistry registry) { 13 | 14 | registry.addInterceptor(new AccessInterceptor()); 15 | } 16 | } -------------------------------------------------------------------------------- /quick-activemq2/src/main/java/com/active2/Activemq2Application.java: -------------------------------------------------------------------------------- 1 | package com.active2; 2 | 3 | import org.springframework.boot.SpringApplication; 4 | import org.springframework.boot.autoconfigure.SpringBootApplication; 5 | 6 | /** 7 | * @Author: wangxc 8 | * @GitHub: https://github.com/vector4wang 9 | * @CSDN: http://blog.csdn.net/qqhjqs?viewmode=contents 10 | * @BLOG: http://vector4wang.tk 11 | * @wxid: BMHJQS 12 | */ 13 | @SpringBootApplication 14 | public class Activemq2Application { 15 | 16 | public static void main(String[] args) { 17 | SpringApplication.run(Activemq2Application.class, args); 18 | } 19 | } 20 | -------------------------------------------------------------------------------- /quick-multi-rabbitmq/src/main/resources/application.yml: -------------------------------------------------------------------------------- 1 | spring: 2 | rabbitmq: 3 | first: 4 | host: 192.168.68.11 5 | port: 5672 6 | username: tbddev 7 | password: tbddev!#%2017 8 | virtual-host: /tbddev 9 | second: 10 | host: 192.168.68.11 11 | port: 5672 12 | username: tbdrc 13 | password: tbdrc!#%2017 14 | virtual-host: /tbdrc 15 | 16 | rabbit: 17 | mq: 18 | queue0: tbd_resume_id_dev_0 19 | queue1: tbd_resume_id_dev_1 20 | queue2: tbd_resume_id_dev_2 21 | queue3: tbd_resume_id_dev_3 22 | queue4: tbd_resume_id_dev_4 23 | queue5: tbd_resume_id_dev_5 -------------------------------------------------------------------------------- /quick-exception/src/main/java/com/quick/exception/ExceptionApplication.java: -------------------------------------------------------------------------------- 1 | package com.quick.exception; 2 | 3 | import org.springframework.boot.SpringApplication; 4 | import org.springframework.boot.autoconfigure.SpringBootApplication; 5 | 6 | /** 7 | * @Author: wangxc 8 | * @GitHub: https://github.com/vector4wang 9 | * @CSDN: http://blog.csdn.net/qqhjqs?viewmode=contents 10 | * @BLOG: http://vector4wang.tk 11 | * @wxid: BMHJQS 12 | */ 13 | @SpringBootApplication 14 | public class ExceptionApplication { 15 | public static void main(String[] args) { 16 | SpringApplication.run(ExceptionApplication.class,args); 17 | } 18 | } 19 | -------------------------------------------------------------------------------- /quick-mybatis-druid/src/main/java/com/quick/druid/sys/service/impl/UserServiceImpl.java: -------------------------------------------------------------------------------- 1 | package com.quick.druid.sys.service.impl; 2 | 3 | import com.quick.druid.sys.entity.User; 4 | import com.quick.druid.sys.mapper.UserMapper; 5 | import com.quick.druid.sys.service.IUserService; 6 | import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; 7 | import org.springframework.stereotype.Service; 8 | 9 | /** 10 | *

11 | * 服务实现类 12 | *

13 | * 14 | * @author vector4wang 15 | * @since 2019-12-19 16 | */ 17 | @Service 18 | public class UserServiceImpl extends ServiceImpl implements IUserService { 19 | 20 | } 21 | -------------------------------------------------------------------------------- /quick-dubbo-nacos/share-config/src/main/java/com/quick/share/config/ShareConfigApplication.java: -------------------------------------------------------------------------------- 1 | package com.quick.share.config; 2 | 3 | import org.springframework.boot.SpringApplication; 4 | import org.springframework.boot.autoconfigure.SpringBootApplication; 5 | import org.springframework.cloud.client.discovery.EnableDiscoveryClient; 6 | 7 | /** 8 | * 9 | * @author wangxc 10 | * @date: 2022/3/21 10:21 PM 11 | * 12 | */ 13 | @SpringBootApplication 14 | @EnableDiscoveryClient 15 | public class ShareConfigApplication { 16 | public static void main(String[] args) { 17 | SpringApplication.run(ShareConfigApplication.class, args); 18 | } 19 | } 20 | -------------------------------------------------------------------------------- /quick-flowable/src/main/java/com/quick/flowable/listener/ForgetFightListener.java: -------------------------------------------------------------------------------- 1 | package com.quick.flowable.listener; 2 | 3 | import lombok.extern.slf4j.Slf4j; 4 | import org.flowable.engine.delegate.TaskListener; 5 | import org.flowable.task.service.delegate.DelegateTask; 6 | 7 | /** 8 | * 9 | * @author wangxc 10 | * @date: 2022/7/23 23:44 11 | * 12 | */ 13 | @Slf4j 14 | public class ForgetFightListener implements TaskListener { 15 | @Override 16 | public void notify(DelegateTask delegateTask) { 17 | log.info(delegateTask.getOwner()); 18 | log.info(delegateTask.getAssignee()); 19 | log.info(delegateTask.getEventName()); 20 | } 21 | } 22 | -------------------------------------------------------------------------------- /quick-img2txt/src/main/java/com/quick/controller/HelloController.java: -------------------------------------------------------------------------------- 1 | package com.quick.controller; 2 | 3 | import org.springframework.stereotype.Controller; 4 | import org.springframework.web.bind.annotation.RequestMapping; 5 | 6 | import java.util.Map; 7 | 8 | /** 9 | * Created with IDEA 10 | * User: vector 11 | * Data: 2017/7/10 12 | * Time: 9:49 13 | * Description: 14 | */ 15 | @Controller 16 | public class HelloController { 17 | @RequestMapping("/helloHtml") 18 | public String helloHtml(Map map){ 19 | 20 | map.put("hello","from TemplateController.helloHtml"); 21 | return"/hello"; 22 | } 23 | } 24 | -------------------------------------------------------------------------------- /quick-oauth2/pom.xml: -------------------------------------------------------------------------------- 1 | 2 | 5 | quick-oauth2 6 | 7 | quick-oauth2-server 8 | quick-github-oauth 9 | 10 | com.quick 11 | 1.0-SNAPSHOT 12 | 4.0.0 13 | pom 14 | 15 | 16 | -------------------------------------------------------------------------------- /quick-oauth2/quick-github-oauth/src/main/java/com/github/oauth/controller/LoginController.java: -------------------------------------------------------------------------------- 1 | package com.github.oauth.controller; 2 | 3 | import org.springframework.stereotype.Controller; 4 | import org.springframework.ui.ModelMap; 5 | import org.springframework.util.StringUtils; 6 | import org.springframework.web.bind.annotation.RequestMapping; 7 | 8 | @Controller 9 | public class LoginController { 10 | 11 | @RequestMapping("/login") 12 | public String login(String err, ModelMap modelMap) { 13 | if (StringUtils.hasLength(err)) { 14 | modelMap.put("err", err); 15 | } 16 | return "login"; 17 | } 18 | } -------------------------------------------------------------------------------- /quick-platform-component/src/main/java/com/quick/component/config/GlobalHandlerConfig.java: -------------------------------------------------------------------------------- 1 | package com.quick.component.config; 2 | 3 | import com.quick.common.base.rest.BaseResp; 4 | import com.quick.common.base.rest.ResultStatus; 5 | import org.springframework.web.bind.annotation.ExceptionHandler; 6 | import org.springframework.web.bind.annotation.RestControllerAdvice; 7 | 8 | @RestControllerAdvice 9 | public class GlobalHandlerConfig { 10 | 11 | @ExceptionHandler(IllegalArgumentException.class) 12 | public BaseResp exceptionHandler(Exception e) { 13 | return new BaseResp<>(ResultStatus.error_invalid_argument); 14 | } 15 | } 16 | -------------------------------------------------------------------------------- /quick-log/src/main/java/com/quick/log/util/LogExceptionUtil.java: -------------------------------------------------------------------------------- 1 | package com.quick.log.util; 2 | 3 | import java.io.PrintWriter; 4 | import java.io.StringWriter; 5 | 6 | /** 7 | * 有的时候想把Exception 所有的退债信息写在日志里,通过下面方法则可以实现 8 | */ 9 | public class LogExceptionUtil { 10 | 11 | /** 12 | * 在日志文件中,打印异常堆栈 13 | * @param e 14 | * @return 15 | */ 16 | public static String LogExceptionStack(Exception e) { 17 | StringWriter errorsWriter = new StringWriter(); 18 | e.printStackTrace(new PrintWriter(errorsWriter)); 19 | return System.getProperty("line.separator", "/n") + errorsWriter.toString(); 20 | } 21 | } 22 | -------------------------------------------------------------------------------- /quick-oauth2/quick-github-oauth/src/main/java/com/github/oauth/user/UserController.java: -------------------------------------------------------------------------------- 1 | package com.github.oauth.user; 2 | 3 | import org.springframework.stereotype.Controller; 4 | import org.springframework.ui.ModelMap; 5 | import org.springframework.web.bind.annotation.RequestMapping; 6 | 7 | import java.security.Principal; 8 | 9 | @Controller 10 | @RequestMapping("/user") 11 | public class UserController { 12 | 13 | @RequestMapping("/info") 14 | public String info(Principal principal, ModelMap modelMap){ 15 | String name = principal.getName(); 16 | modelMap.put("name", name); 17 | 18 | return "user/info"; 19 | } 20 | } -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | *.class 2 | 3 | # Mobile Tools for Java (J2ME) 4 | .mtj.tmp/ 5 | 6 | # Package Files # 7 | *.jar 8 | *.war 9 | *.ear 10 | *.zip 11 | 12 | # virtual machine crash logs, see http://www.java.com/en/download/help/error_hotspot.xml 13 | hs_err_pid* 14 | 15 | 16 | target/ 17 | !.mvn/wrapper/maven-wrapper.jar 18 | 19 | ### STS ### 20 | .apt_generated 21 | .classpath 22 | .factorypath 23 | .project 24 | .settings 25 | .springBeans 26 | 27 | ### IntelliJ IDEA ### 28 | .idea 29 | *.iws 30 | *.iml 31 | *.ipr 32 | 33 | ### NetBeans ### 34 | nbproject/private/ 35 | builds/ 36 | nbbuild/ 37 | dist/ 38 | nbdist/ 39 | .nb-gradle/ 40 | 41 | log/ 42 | logs/ 43 | -------------------------------------------------------------------------------- /quick-activemq/src/main/java/com/mq/ActiveMqApplication.java: -------------------------------------------------------------------------------- 1 | package com.mq; 2 | 3 | import org.springframework.boot.SpringApplication; 4 | import org.springframework.boot.autoconfigure.SpringBootApplication; 5 | 6 | /** 7 | * Created with IDEA 8 | * User: vector 9 | * Data: 2017/12/20 10 | * Time: 17:31 11 | * Description:http://javasampleapproach.com/spring-framework/spring-jms/activemq-create-springboot-activemq-response-management-application-sendto-annotation 12 | */ 13 | @SpringBootApplication 14 | public class ActiveMqApplication { 15 | public static void main(String[] args) { 16 | SpringApplication.run(ActiveMqApplication.class); 17 | } 18 | } 19 | -------------------------------------------------------------------------------- /quick-lombok/src/main/java/com/lombok/ValTestMain.java: -------------------------------------------------------------------------------- 1 | package com.lombok; 2 | 3 | import lombok.val; 4 | 5 | import java.util.ArrayList; 6 | import java.util.HashSet; 7 | 8 | /** 9 | * val:用在局部变量前面,相当于将变量声明为final 10 | * @author vector 11 | * @date: 2019/2/27 0027 9:52 12 | */ 13 | public class ValTestMain { 14 | public static void main(String[] args) { 15 | val sets = new HashSet<>();// ===> final Set sets = new HashSet<>(); 16 | val lists = new ArrayList<>();// ===> final List lists = new ArrayList<>(); 17 | val str = "123";// ===> final String str = "123"; 18 | 19 | System.out.println(str); 20 | 21 | } 22 | } 23 | -------------------------------------------------------------------------------- /quick-sample-server/sample-server/src/main/java/com/quick/service/SampleTableService.java: -------------------------------------------------------------------------------- 1 | package com.quick.service; 2 | 3 | import com.quick.entity.SampleTable; 4 | import com.baomidou.mybatisplus.extension.service.IService; 5 | 6 | import java.util.List; 7 | 8 | /** 9 | *

10 | * 服务类 11 | *

12 | * 13 | * @author vector4wang 14 | * @since 2023-10-17 15 | * @version ${cfg.version} 16 | */ 17 | public interface SampleTableService extends IService { 18 | 19 | 20 | List pageList(SampleTable sampleTable); 21 | 22 | boolean saveEntity(SampleTable sampleTable); 23 | 24 | void delete(String id); 25 | 26 | 27 | } 28 | -------------------------------------------------------------------------------- /quick-archetype/src/main/java/com/quick/mapper/xml/DepotMapper.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | id, pid, code 15 | 16 | 17 | 18 | -------------------------------------------------------------------------------- /quick-camunda/src/main/resources/processes/one-task-process.bpmn20.xml: -------------------------------------------------------------------------------- 1 | 2 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | -------------------------------------------------------------------------------- /quick-feign/src/main/java/com/quick/feign/service/FeignService.java: -------------------------------------------------------------------------------- 1 | package com.quick.feign.service; 2 | 3 | import com.quick.feign.entity.BaseResp; 4 | import com.quick.feign.entity.DomainDetail; 5 | import feign.Headers; 6 | import feign.Param; 7 | import feign.RequestLine; 8 | 9 | public interface FeignService { 10 | 11 | @RequestLine("GET /api/gongan/{domain}") 12 | @Headers({ 13 | "user-agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/68.0.3440.106 Safari/537.36", 14 | "content-type: application/json;charset=UTF-8"}) 15 | BaseResp getDomain(@Param("domain") String domain); 16 | 17 | 18 | 19 | 20 | } 21 | -------------------------------------------------------------------------------- /quick-rabbitmq/src/main/java/com/quick/mq/scenes/single/HelloReceiver1.java: -------------------------------------------------------------------------------- 1 | package com.quick.mq.scenes.single; 2 | 3 | import org.springframework.amqp.rabbit.annotation.RabbitHandler; 4 | import org.springframework.amqp.rabbit.annotation.RabbitListener; 5 | import org.springframework.stereotype.Component; 6 | 7 | /** 8 | * Created with IDEA 9 | * User: vector 10 | * Data: 2017/7/7 11 | * Time: 16:42 12 | * Description: 13 | */ 14 | @Component 15 | @RabbitListener(queues = "helloQueue") 16 | public class HelloReceiver1 { 17 | 18 | @RabbitHandler 19 | public void process(String hello) { 20 | System.out.println("Receiver1 : " + hello); 21 | } 22 | 23 | } -------------------------------------------------------------------------------- /quick-sharding-jdbc/src/main/java/com/quick/shardingjdbc/service/impl/AddressServiceImpl.java: -------------------------------------------------------------------------------- 1 | package com.quick.shardingjdbc.service.impl; 2 | 3 | import com.quick.shardingjdbc.entity.Address; 4 | import com.quick.shardingjdbc.mapper.AddressMapper; 5 | import com.quick.shardingjdbc.service.IAddressService; 6 | import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; 7 | import org.springframework.stereotype.Service; 8 | 9 | /** 10 | *

11 | * 服务实现类 12 | *

13 | * 14 | * @author vector 15 | * @since 2022-08-16 16 | */ 17 | @Service 18 | public class AddressServiceImpl extends ServiceImpl implements IAddressService { 19 | 20 | } 21 | -------------------------------------------------------------------------------- /quick-flowable/src/main/java/com/quick/flowable/listener/SendRejectionMail.java: -------------------------------------------------------------------------------- 1 | package com.quick.flowable.listener; 2 | 3 | import lombok.extern.slf4j.Slf4j; 4 | import org.flowable.engine.delegate.DelegateExecution; 5 | import org.flowable.engine.delegate.JavaDelegate; 6 | 7 | /** 8 | * 9 | * @author wangxc 10 | * @date: 2022/7/23 22:54 11 | * 12 | */ 13 | @Slf4j 14 | public class SendRejectionMail implements JavaDelegate { 15 | @Override 16 | public void execute(DelegateExecution execution) { 17 | System.out.println( 18 | "execution.getCurrentFlowElement().getName() = " + execution.getCurrentFlowElement().getName()); 19 | System.out.println("请求被驳回~"); 20 | } 21 | } 22 | -------------------------------------------------------------------------------- /quick-jwt/src/main/java/com/quick/jwt/exception/CustomException.java: -------------------------------------------------------------------------------- 1 | package com.quick.jwt.exception; 2 | 3 | import org.springframework.http.HttpStatus; 4 | 5 | public class CustomException extends RuntimeException { 6 | 7 | private static final long serialVersionUID = 1L; 8 | 9 | private final String message; 10 | private final HttpStatus httpStatus; 11 | 12 | public CustomException(String message, HttpStatus httpStatus) { 13 | this.message = message; 14 | this.httpStatus = httpStatus; 15 | } 16 | 17 | @Override 18 | public String getMessage() { 19 | return message; 20 | } 21 | 22 | public HttpStatus getHttpStatus() { 23 | return httpStatus; 24 | } 25 | 26 | } -------------------------------------------------------------------------------- /quick-oauth2/quick-github-oauth/src/main/java/com/github/oauth/common/ICommonService.java: -------------------------------------------------------------------------------- 1 | package com.github.oauth.common; 2 | 3 | import org.springframework.data.domain.Page; 4 | import org.springframework.data.domain.PageRequest; 5 | 6 | import java.util.List; 7 | 8 | public interface ICommonService { 9 | T save(T entity) throws Exception; 10 | void delete(Long id) throws Exception; 11 | void delete(T entity) throws Exception; 12 | T findById(Long id); 13 | T findBySample(T sample); 14 | List findAll(); 15 | List findAll(T sample); 16 | Page findAll(PageRequest pageRequest); 17 | Page findAll(T sample, PageRequest pageRequest); 18 | } -------------------------------------------------------------------------------- /quick-dubbo-nacos/consumer/src/main/resources/application.properties: -------------------------------------------------------------------------------- 1 | server.port=8081 2 | 3 | spring.application.name=nacos-consumer 4 | 5 | spring.cloud.nacos.discovery.server-addr=localhost:8848 6 | spring.cloud.nacos.config.refresh-enabled=true 7 | spring.cloud.nacos.config.group=${spring.application.name} 8 | #nacos.discovery.server-addr=localhost:8848 9 | spring.main.allow-bean-definition-overriding=true 10 | 11 | dubbo.registry.address=spring-cloud://localhost:8848 12 | dubbo.protocol.name=dubbo 13 | dubbo.protocol.port=-1 14 | 15 | dubbo.consumer.check=false 16 | 17 | dubbo.cloud.subscribed-services=nacos-provider 18 | 19 | 20 | service.version=1.0.0 21 | service.name=helloService -------------------------------------------------------------------------------- /quick-platform-component/.gitignore: -------------------------------------------------------------------------------- 1 | target/ 2 | !.mvn/wrapper/maven-wrapper.jar 3 | !**/src/main/**/target/ 4 | !**/src/test/**/target/ 5 | 6 | ### IntelliJ IDEA ### 7 | .idea/modules.xml 8 | .idea/jarRepositories.xml 9 | .idea/compiler.xml 10 | .idea/libraries/ 11 | *.iws 12 | *.iml 13 | *.ipr 14 | 15 | ### Eclipse ### 16 | .apt_generated 17 | .classpath 18 | .factorypath 19 | .project 20 | .settings 21 | .springBeans 22 | .sts4-cache 23 | 24 | ### NetBeans ### 25 | /nbproject/private/ 26 | /nbbuild/ 27 | /dist/ 28 | /nbdist/ 29 | /.nb-gradle/ 30 | build/ 31 | !**/src/main/**/build/ 32 | !**/src/test/**/build/ 33 | 34 | ### VS Code ### 35 | .vscode/ 36 | 37 | ### Mac OS ### 38 | .DS_Store -------------------------------------------------------------------------------- /quick-activemq/README.md: -------------------------------------------------------------------------------- 1 | ```bash 2 | docker pull webcenter/activemq 3 | 4 | 5 | docker run --name='activemq' \ 6 | -itd \ 7 | -p 8161:8161 \ 8 | -p 61616:61616 \ 9 | -e ACTIVEMQ_ADMIN_LOGIN=admin \ 10 | -e ACTIVEMQ_ADMIN_PASSWORD=123456 \ 11 | --restart=always \ 12 | -v D:\\develop\\docker-data\\activemq:/data/activemq \ 13 | -v D:\\develop\\docker-data\\activemq\\log:/var/log/activemq \ 14 | webcenter/activemq 15 | ``` 16 | 17 | 18 | - 61616是 activemq 的容器使用端口 19 | - 8161是 web 页面管理端口 20 | - /usr/soft/activemq 是将activeMQ运行文件挂载到该目录 21 | - /usr/soft/activemq/log是将activeMQ运行日志挂载到该目录 22 | - -e ACTIVEMQ_ADMIN_LOGIN=admin 指定登录名 23 | - -e ACTIVEMQ_ADMIN_PASSWORD=123456 登录密码 -------------------------------------------------------------------------------- /nacos-common-config/pom.xml: -------------------------------------------------------------------------------- 1 | 2 | 5 | 4.0.0 6 | 7 | nacos-common-config 8 | org.example 9 | 1.0-SNAPSHOT 10 | jar 11 | 12 | 13 | 8 14 | 8 15 | 16 | 17 | -------------------------------------------------------------------------------- /quick-wx-public/src/main/java/com/wx/pn/api/enums/MediaType.java: -------------------------------------------------------------------------------- 1 | package com.wx.pn.api.enums; 2 | 3 | public enum MediaType { 4 | 5 | /** 6 | * 图片 7 | */ 8 | IMAGE("image"), 9 | 10 | /** 11 | * 语音 12 | */ 13 | VOICE("voice"), 14 | 15 | /** 16 | * 视频 17 | */ 18 | VIDEO("video"), 19 | 20 | /** 21 | * 缩略图 22 | */ 23 | THUMB("thumb"), 24 | 25 | /** 26 | * 图文消息 27 | */ 28 | NEWS("news"); 29 | 30 | String value; 31 | 32 | MediaType(String value) { 33 | this.value = value; 34 | } 35 | 36 | @Override 37 | public String toString() { 38 | return this.value; 39 | } 40 | } 41 | -------------------------------------------------------------------------------- /quick-lombok/src/main/java/com/lombok/GetterTestMain.java: -------------------------------------------------------------------------------- 1 | package com.lombok; 2 | 3 | import lombok.Getter; 4 | 5 | /** 6 | * @Getter(lazy=true):可以替代经典的Double Check Lock样板代码 7 | * 8 | * @author vector 9 | * @date: 2019/2/27 0027 11:00 10 | */ 11 | public class GetterTestMain { 12 | 13 | 14 | @Getter(lazy = true) 15 | private final double[] cached = expensive(); 16 | 17 | private double[] expensive() { 18 | double[] result = new double[1000000]; 19 | for (int i = 0; i < result.length; i++) { 20 | result[i] = Math.asin(i); 21 | } 22 | return result; 23 | } 24 | 25 | public static void main(String[] args) { 26 | 27 | } 28 | } 29 | -------------------------------------------------------------------------------- /quick-rabbitmq/src/main/java/com/quick/mq/scenes/onesendmultirecver/HelloMoreReceiver1.java: -------------------------------------------------------------------------------- 1 | package com.quick.mq.scenes.onesendmultirecver; 2 | 3 | import org.springframework.amqp.rabbit.annotation.RabbitHandler; 4 | import org.springframework.amqp.rabbit.annotation.RabbitListener; 5 | import org.springframework.stereotype.Component; 6 | 7 | /** 8 | * Created with IDEA 9 | * User: vector 10 | * Data: 2017/7/7 11 | * Time: 17:05 12 | * Description: 13 | */ 14 | @Component 15 | @RabbitListener(queues = "helloQueue") 16 | public class HelloMoreReceiver1 { 17 | 18 | @RabbitHandler 19 | public void process(String hello) { 20 | System.out.println("Receiver1 : " + hello); 21 | } 22 | } -------------------------------------------------------------------------------- /quick-sample-server/sample-server/src/main/resources/templates/service.java.vm: -------------------------------------------------------------------------------- 1 | package ${package.Service}; 2 | 3 | import ${package.Entity}.${entity}; 4 | import ${superServiceClassPackage}; 5 | 6 | /** 7 | *

8 | * $!{table.comment} 服务类 9 | *

10 | * 11 | * @author ${author} 12 | * @since ${date} 13 | * @version ${cfg.version} 14 | */ 15 | #set($entityName = ${entity.substring(0,1).toLowerCase()}+${entity.substring(1)}) 16 | public interface ${table.serviceName} extends ${superServiceClass}<${entity}> { 17 | 18 | 19 | List<${entity}> pageList(${entity} $entityName); 20 | 21 | boolean saveEntity(${entity} $entityName); 22 | 23 | void delete(String id); 24 | 25 | 26 | } 27 | -------------------------------------------------------------------------------- /quick-shiro/src/main/java/com/shiro/quick/intecepter/AccessInterceptor.java: -------------------------------------------------------------------------------- 1 | package com.shiro.quick.intecepter; 2 | 3 | import lombok.extern.slf4j.Slf4j; 4 | import org.springframework.web.servlet.HandlerInterceptor; 5 | 6 | import javax.servlet.http.HttpServletRequest; 7 | import javax.servlet.http.HttpServletResponse; 8 | 9 | @Slf4j 10 | public class AccessInterceptor implements HandlerInterceptor { 11 | 12 | @Override 13 | public boolean preHandle(HttpServletRequest request, HttpServletResponse response, Object handler) throws Exception { 14 | log.info("AccessInterceptor"); 15 | // return super.preHandle(request, response, handler); 16 | return true; 17 | } 18 | } 19 | -------------------------------------------------------------------------------- /quick-rabbitmq/src/main/java/com/quick/mq/scenes/onesendmultirecver/HelloMoreReceiver2.java: -------------------------------------------------------------------------------- 1 | package com.quick.mq.scenes.onesendmultirecver; 2 | 3 | import org.springframework.amqp.rabbit.annotation.RabbitHandler; 4 | import org.springframework.amqp.rabbit.annotation.RabbitListener; 5 | import org.springframework.stereotype.Component; 6 | 7 | /** 8 | * Created with IDEA 9 | * User: vector 10 | * Data: 2017/7/7 11 | * Time: 17:05 12 | * Description: 13 | */ 14 | @Component 15 | @RabbitListener(queues = "helloQueue") 16 | public class HelloMoreReceiver2 { 17 | 18 | @RabbitHandler 19 | public void process(String hello) { 20 | System.out.println("Receiver2 : " + hello); 21 | } 22 | 23 | } 24 | -------------------------------------------------------------------------------- /quick-spring-shiro/src/main/java/com/shiro/service/RoleService.java: -------------------------------------------------------------------------------- 1 | package com.shiro.service; 2 | 3 | import org.springframework.stereotype.Service; 4 | 5 | import java.util.HashSet; 6 | import java.util.Set; 7 | 8 | @Service 9 | public class RoleService { 10 | 11 | /** 12 | * 模拟根据用户id查询返回用户的所有角色,实际查询语句参考: 13 | * SELECT r.rval FROM role r, user_role ur 14 | * WHERE r.rid = ur.role_id AND ur.user_id = #{userId} 15 | * @param uid 16 | * @return 17 | */ 18 | public Set getRolesByUserId(Long uid) { 19 | Set roles = new HashSet<>(); 20 | //三种编程语言代表三种角色:js程序员、java程序员、c++程序员 21 | roles.add("js"); 22 | roles.add("java"); 23 | roles.add("cpp"); 24 | return roles; 25 | } 26 | 27 | } -------------------------------------------------------------------------------- /quick-batch/src/main/java/com/quick/batch/db/DatabaseConfig.java: -------------------------------------------------------------------------------- 1 | package com.quick.batch.db; 2 | 3 | import org.springframework.boot.context.properties.ConfigurationProperties; 4 | import org.springframework.boot.jdbc.DataSourceBuilder; 5 | import org.springframework.context.annotation.Bean; 6 | import org.springframework.context.annotation.Configuration; 7 | import org.springframework.context.annotation.Primary; 8 | 9 | import javax.sql.DataSource; 10 | 11 | @Configuration 12 | public class DatabaseConfig { 13 | 14 | @ConfigurationProperties(prefix = "spring.datasource") 15 | @Bean 16 | @Primary 17 | public DataSource dataSource() { 18 | return DataSourceBuilder.create().build(); 19 | } 20 | } -------------------------------------------------------------------------------- /quick-modules/service1/src/main/java/com/modules/service/impl/CityServiceImpl.java: -------------------------------------------------------------------------------- 1 | package com.modules.service.impl; 2 | 3 | import com.modules.dao.CityMapper; 4 | import com.modules.entity.City; 5 | import com.modules.service.CityService; 6 | import org.springframework.beans.factory.annotation.Autowired; 7 | import org.springframework.stereotype.Service; 8 | 9 | /** 10 | * Created with IDEA 11 | * User: vector 12 | * Data: 2017/4/1 13 | * Time: 8:38 14 | */ 15 | @Service 16 | public class CityServiceImpl implements CityService { 17 | 18 | @Autowired 19 | private CityMapper cityMapper; 20 | 21 | @Override 22 | public City selectById(int id) { 23 | return cityMapper.selectByPrimaryKey(id); 24 | } 25 | } 26 | -------------------------------------------------------------------------------- /quick-modules/test/src/main/java/com/multi/test/service/impl/CityServiceImpl.java: -------------------------------------------------------------------------------- 1 | package com.multi.test.service.impl; 2 | 3 | import com.modules.dao.CityMapper; 4 | import com.modules.entity.City; 5 | import com.multi.test.service.CityService; 6 | import org.springframework.beans.factory.annotation.Autowired; 7 | import org.springframework.stereotype.Service; 8 | 9 | /** 10 | * @author vector 11 | * @Data 2018/8/10 0010 12 | * @Description TODO 13 | */ 14 | @Service 15 | public class CityServiceImpl implements CityService { 16 | 17 | @Autowired 18 | private CityMapper cityMapper; 19 | 20 | @Override 21 | public City getCity(int id) { 22 | return cityMapper.selectByPrimaryKey(id 23 | ); 24 | } 25 | } 26 | -------------------------------------------------------------------------------- /quick-wx-public/src/main/java/com/wx/pn/utils/LogExceptionUtil.java: -------------------------------------------------------------------------------- 1 | package com.wx.pn.utils; 2 | 3 | import java.io.PrintWriter; 4 | import java.io.StringWriter; 5 | 6 | /** 7 | * Created with IDEA 8 | * User: vector 9 | * Data: 2017/11/22 10 | * Time: 20:16 11 | * Description: 12 | */ 13 | public class LogExceptionUtil { 14 | 15 | /** 16 | * 在日志文件中,打印异常堆栈 17 | * @param e 18 | * @return 19 | */ 20 | public static String LogExceptionStack(Exception e) { 21 | StringWriter errorsWriter = new StringWriter(); 22 | e.printStackTrace(new PrintWriter(errorsWriter)); 23 | return System.getProperty("line.separator", "/n") + errorsWriter.toString(); 24 | } 25 | } 26 | -------------------------------------------------------------------------------- /quick-dubbo/dubbo-consumer/src/main/java/com/dubbo/consumer/controller/ApiController.java: -------------------------------------------------------------------------------- 1 | package com.dubbo.consumer.controller; 2 | 3 | import com.dubbo.api.HelloService; 4 | import org.springframework.web.bind.annotation.PathVariable; 5 | import org.springframework.web.bind.annotation.RequestMapping; 6 | import org.springframework.web.bind.annotation.RestController; 7 | 8 | import javax.annotation.Resource; 9 | 10 | @RestController 11 | public class ApiController { 12 | 13 | @Resource 14 | public HelloService helloService; 15 | 16 | @RequestMapping("/sayHello/{name}") 17 | public String hello(@PathVariable("name") String name) { 18 | return helloService.sayHello(name); 19 | } 20 | 21 | } 22 | -------------------------------------------------------------------------------- /quick-shiro-cas/README.md: -------------------------------------------------------------------------------- 1 | #### 集成 CAS 2 | 3 | docker安装cas-server 4 | 5 | 参考: https://apereo.github.io/cas/development/installation/Docker-Installation.html 6 | ```docker 7 | docker pull apereo/cas:v5.3.10 8 | 9 | docker run --name cas -p 8443:8443 -p 8442:8080 -d apereo/cas:v5.3.10 /bin/sh /cas-overlay/bin/run-cas.sh 10 | 11 | ## 生成ssl证书 其中密钥库命令输入的是changeit 12 | keytool -genkey -alias tomcat -keypass changeit -keyalg RSA -keystore server.keystore 13 | ## 复制 14 | docker cp server.keystore cas:/etc/cas/thekeystore 15 | 16 | ``` 17 | 18 | 访问:https://localhost:8443/cas/login 19 | 20 | 用户名:casuser 21 | 密码:Mellon 22 | 23 | ## 参照以下网址搭建cas服务端用于验证 24 | https://github.com/willwu1984/springboot-cas-shiro 25 | 26 | 27 | 后续了解流程即可 -------------------------------------------------------------------------------- /quick-vue/src/main/resources/banner.txt: -------------------------------------------------------------------------------- 1 | . ____ _ 2 | /\\ / ___'_ __ _ _(_)_ __ __ _ 3 | ( ( )\___ | '_ | '_| | '_ \/ _` | 4 | \\/ ___)| |_)| | | | | || (_| | 5 | ' |____| .__|_| |_|_| |_\__, | 6 | \ ===========|_|==============|___/== ▀ 7 | \- ▌ SpringBoot-vue ▀ 8 | - ▌ (o) ▀ 9 | /- ▌ Go Go Go ! ▀ 10 | / =================================== ▀ 11 | ██ 12 | 13 | ${AnsiColor.BRIGHT_RED}Spring Boot Version : ${spring-boot.version} ${spring-boot.formatted-version} 14 | ${AnsiColor.BRIGHT_CYAN}SpringBoot-Vue.js : 0.0.1.RELEASE 15 | ${AnsiColor.BRIGHT_BLACK}Author : Boyle Gu 16 | -------------------------------------------------------------------------------- /.github/FUNDING.yml: -------------------------------------------------------------------------------- 1 | # These are supported funding model platforms 2 | 3 | github: # [vector4wang] 4 | patreon: # Replace with a single Patreon username 5 | open_collective: # Replace with a single Open Collective username 6 | ko_fi: # Replace with a single Ko-fi username 7 | tidelift: # Replace with a single Tidelift platform-name/package-name e.g., npm/babel 8 | community_bridge: # Replace with a single Community Bridge project-name e.g., cloud-foundry 9 | liberapay: # Replace with a single Liberapay username 10 | issuehunt: # Replace with a single IssueHunt username 11 | otechie: # Replace with a single Otechie username 12 | custom: ['https://raw.githubusercontent.com/vector4wang/spring-boot-quick/master/images/qiafan.png'] 13 | -------------------------------------------------------------------------------- /quick-abstract-template/src/main/java/com/quick/abs/strategy/DonaldDuck.java: -------------------------------------------------------------------------------- 1 | package com.quick.abs.strategy; 2 | 3 | import com.quick.abs.factory.AbstractBirdFactory; 4 | import com.quick.abs.strategy.base.ability.Fly; 5 | import com.quick.abs.strategy.base.ability.Speak; 6 | import org.springframework.stereotype.Component; 7 | 8 | @Component 9 | public class DonaldDuck extends Duck implements Speak, Fly { 10 | 11 | 12 | 13 | @Override 14 | public void afterPropertiesSet() throws Exception { 15 | AbstractBirdFactory.register("DonaldDuck", this); 16 | } 17 | 18 | 19 | @Override 20 | public void action() { 21 | System.out.println(this.getClass().getName()+" can speak"); 22 | } 23 | } 24 | -------------------------------------------------------------------------------- /quick-rabbitmq/src/main/java/com/quick/mq/scenes/delayTask/DelayReceiver.java: -------------------------------------------------------------------------------- 1 | package com.quick.mq.scenes.delayTask; 2 | 3 | import com.quick.mq.config.RabbitConfig; 4 | import com.quick.mq.model.Msg; 5 | import org.springframework.amqp.rabbit.annotation.RabbitListener; 6 | import org.springframework.stereotype.Component; 7 | 8 | import java.text.SimpleDateFormat; 9 | import java.util.Date; 10 | 11 | @Component 12 | public class DelayReceiver { 13 | 14 | @RabbitListener(queues = {RabbitConfig.PROCESS_QUEUE}) 15 | public void process(Msg msg) { 16 | SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss"); 17 | System.out.println("当前时间: " + sdf.format(new Date()) + " ---> msg:【" + msg + "]"); 18 | } 19 | } 20 | -------------------------------------------------------------------------------- /quick-sse/src/main/java/com/quick/exception/BusinessException.java: -------------------------------------------------------------------------------- 1 | package com.quick.exception; 2 | 3 | public class BusinessException extends Exception{ 4 | public BusinessException() { 5 | } 6 | 7 | public BusinessException(String message) { 8 | super(message); 9 | } 10 | 11 | public BusinessException(String message, Throwable cause) { 12 | super(message, cause); 13 | } 14 | 15 | public BusinessException(Throwable cause) { 16 | super(cause); 17 | } 18 | 19 | public BusinessException(String message, Throwable cause, boolean enableSuppression, boolean writableStackTrace) { 20 | super(message, cause, enableSuppression, writableStackTrace); 21 | } 22 | } 23 | -------------------------------------------------------------------------------- /quick-container/src/main/k3s/nodeport/nginx.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: apps/v1 2 | kind: Deployment 3 | metadata: 4 | creationTimestamp: null 5 | labels: 6 | app: web 7 | name: web 8 | spec: 9 | replicas: 1 10 | selector: 11 | matchLabels: 12 | app: web 13 | strategy: {} 14 | template: 15 | metadata: 16 | creationTimestamp: null 17 | labels: 18 | app: web 19 | spec: 20 | containers: 21 | - image: nginx 22 | name: nginx 23 | ports: 24 | - containerPort: 80 25 | resources: 26 | limits: 27 | cpu: 100m 28 | memory: 256Mi 29 | requests: 30 | cpu: 80m 31 | memory: 128Mi 32 | status: {} 33 | -------------------------------------------------------------------------------- /quick-kafka/src/main/java/com/quick/kafka/controller/ApiController.java: -------------------------------------------------------------------------------- 1 | package com.quick.kafka.controller; 2 | 3 | import com.quick.kafka.service.ProducerService; 4 | import org.springframework.web.bind.annotation.*; 5 | 6 | import javax.annotation.Resource; 7 | 8 | /** 9 | * @author vector 10 | * @date: 2019/7/18 0018 11:15 11 | */ 12 | @RestController 13 | @RequestMapping("/kafka") 14 | public class ApiController { 15 | 16 | @Resource 17 | private ProducerService producerService; 18 | 19 | @PostMapping("/send/{topic}") 20 | public String send(@PathVariable("topic") String topic, @RequestBody String body) { 21 | producerService.sendMessage(topic, body); 22 | return "send success"; 23 | } 24 | } 25 | -------------------------------------------------------------------------------- /quick-profiles/api/src/main/java/com/profiles/TestMain.java: -------------------------------------------------------------------------------- 1 | package com.profiles; 2 | 3 | import com.profiles.base.HelloService; 4 | import org.springframework.beans.factory.annotation.Autowired; 5 | import org.springframework.boot.SpringApplication; 6 | import org.springframework.boot.autoconfigure.SpringBootApplication; 7 | 8 | import javax.annotation.PostConstruct; 9 | 10 | @SpringBootApplication 11 | public class TestMain { 12 | 13 | @Autowired 14 | private HelloService helloService; 15 | 16 | 17 | @PostConstruct 18 | public void init() { 19 | helloService.sayHello(); 20 | } 21 | 22 | public static void main(String[] args) { 23 | SpringApplication.run(TestMain.class); 24 | } 25 | } 26 | -------------------------------------------------------------------------------- /quick-container/src/main/k3s/ingress/nginx-a.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: apps/v1 2 | kind: Deployment 3 | metadata: 4 | creationTimestamp: null 5 | labels: 6 | app: web-a 7 | name: web-a 8 | spec: 9 | replicas: 1 10 | selector: 11 | matchLabels: 12 | app: web-a 13 | strategy: {} 14 | template: 15 | metadata: 16 | creationTimestamp: null 17 | labels: 18 | app: web-a 19 | spec: 20 | containers: 21 | - image: nginx 22 | name: nginx 23 | ports: 24 | - containerPort: 80 25 | resources: 26 | limits: 27 | cpu: 100m 28 | memory: 256Mi 29 | requests: 30 | cpu: 80m 31 | memory: 128Mi 32 | status: {} 33 | -------------------------------------------------------------------------------- /quick-container/src/main/k3s/ingress/nginx-b.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: apps/v1 2 | kind: Deployment 3 | metadata: 4 | creationTimestamp: null 5 | labels: 6 | app: web-b 7 | name: web-b 8 | spec: 9 | replicas: 1 10 | selector: 11 | matchLabels: 12 | app: web-b 13 | strategy: {} 14 | template: 15 | metadata: 16 | creationTimestamp: null 17 | labels: 18 | app: web-b 19 | spec: 20 | containers: 21 | - image: nginx 22 | name: nginx 23 | ports: 24 | - containerPort: 80 25 | resources: 26 | limits: 27 | cpu: 100m 28 | memory: 256Mi 29 | requests: 30 | cpu: 80m 31 | memory: 128Mi 32 | status: {} 33 | -------------------------------------------------------------------------------- /quick-modules/service2/src/main/java/com/modules/service/impl/CountryServiceImpl.java: -------------------------------------------------------------------------------- 1 | package com.modules.service.impl; 2 | 3 | import com.modules.dao.CountryMapper; 4 | import com.modules.entity.Country; 5 | import com.modules.service.CountryService; 6 | import org.springframework.beans.factory.annotation.Autowired; 7 | import org.springframework.stereotype.Service; 8 | 9 | /** 10 | * @author vector 11 | * @Data 2018/8/9 0009 12 | * @Description TODO 13 | */ 14 | @Service 15 | public class CountryServiceImpl implements CountryService { 16 | 17 | @Autowired 18 | private CountryMapper countryMapper; 19 | 20 | @Override 21 | public Country selectByCode(String code) { 22 | return countryMapper.selectByPrimaryKey(code); 23 | } 24 | } 25 | -------------------------------------------------------------------------------- /quick-abstract-template/src/main/java/com/quick/abs/strategy/base/Animal.java: -------------------------------------------------------------------------------- 1 | package com.quick.abs.strategy.base; 2 | 3 | import com.quick.abs.strategy.base.component.Oxygen; 4 | import com.quick.abs.strategy.base.component.Water; 5 | 6 | import java.util.List; 7 | 8 | public abstract class Animal implements Creature { 9 | 10 | /** 11 | * 是否活着 12 | * 13 | * @return 默认活着 14 | */ 15 | public boolean isAlive() { 16 | return true; 17 | } 18 | 19 | 20 | /** 21 | * 新陈代谢 22 | */ 23 | public abstract void metabolism(Oxygen oxygen, Water water); 24 | 25 | /** 26 | * 繁殖 27 | * 28 | * @return 小动物 29 | */ 30 | public abstract void reproduction(); 31 | 32 | 33 | } 34 | -------------------------------------------------------------------------------- /quick-dubbo-nacos/provider/pom.xml: -------------------------------------------------------------------------------- 1 | 2 | 5 | 6 | quick-dubbo-nacos 7 | com.quick 8 | 1.0-SNAPSHOT 9 | 10 | 4.0.0 11 | 12 | provider 13 | 14 | 15 | 8 16 | 8 17 | 18 | 19 | -------------------------------------------------------------------------------- /quick-swagger/src/main/java/com/quick/config/CorsConfig.java: -------------------------------------------------------------------------------- 1 | package com.quick.config; 2 | 3 | import org.springframework.context.annotation.Configuration; 4 | import org.springframework.web.servlet.config.annotation.CorsRegistry; 5 | import org.springframework.web.servlet.config.annotation.WebMvcConfigurerAdapter; 6 | 7 | @Configuration 8 | public class CorsConfig extends WebMvcConfigurerAdapter { 9 | 10 | 11 | @Override 12 | public void addCorsMappings(CorsRegistry registry) { 13 | 14 | registry.addMapping("/**") 15 | .allowedOrigins("*") 16 | .allowCredentials(true) 17 | .allowedMethods("GET", "POST", "DELETE", "PUT") 18 | .maxAge(3600); 19 | } 20 | 21 | } -------------------------------------------------------------------------------- /quick-wx-public/src/main/java/com/wx/pn/config/CorsConfig.java: -------------------------------------------------------------------------------- 1 | package com.wx.pn.config; 2 | 3 | import org.springframework.context.annotation.Configuration; 4 | import org.springframework.web.servlet.config.annotation.CorsRegistry; 5 | import org.springframework.web.servlet.config.annotation.WebMvcConfigurerAdapter; 6 | 7 | @Configuration 8 | public class CorsConfig extends WebMvcConfigurerAdapter { 9 | 10 | 11 | @Override 12 | public void addCorsMappings(CorsRegistry registry) { 13 | 14 | registry.addMapping("/**") 15 | .allowedOrigins("*") 16 | .allowCredentials(true) 17 | .allowedMethods("GET", "POST", "DELETE", "PUT") 18 | .maxAge(3600); 19 | } 20 | 21 | } -------------------------------------------------------------------------------- /quick-config-server/ReadMe.md: -------------------------------------------------------------------------------- 1 | ### 各配置中心比较 2 | https://www.cnblogs.com/xiaoqi/p/configserver-compair.html 3 | 4 | ## Apollo 5 | 6 | ### 部署 7 | 推荐手动部署,刚开始我用的是docker,后面总是pull不到配置,再后来改成手动部署 8 | 什么问题没有,一把过~ 9 | 10 | 一定要看准版本号,网上浏览别人的使用过程,版本号几乎没见到过一样的,所以一定要确保当前使用的跟部署的版本号一致 11 | 12 | `https://github.com/ctripcorp/apollo/wiki/Quick-Start` 13 | ```text 14 | 用户名apollo,密码admin 15 | ``` 16 | 17 | 18 | 19 | ### namespace 核心 20 | https://github.com/ctripcorp/apollo/wiki/Apollo%E6%A0%B8%E5%BF%83%E6%A6%82%E5%BF%B5%E4%B9%8B%E2%80%9CNamespace%E2%80%9D 21 | 22 | #### 部署配置中心 23 | 本地多环境部署成功案例 24 | https://blog.csdn.net/qq_15070281/article/details/83583052 25 | 26 | 27 | ### 经典案例 28 | https://github.com/ctripcorp/apollo-use-cases/blob/master/README.md 29 | 30 | 31 | 32 | 33 | -------------------------------------------------------------------------------- /quick-kafka/src/main/java/com/quick/kafka/service/simulation/SimulationService.java: -------------------------------------------------------------------------------- 1 | package com.quick.kafka.service.simulation; 2 | 3 | import com.quick.kafka.service.ProducerService; 4 | import org.springframework.stereotype.Service; 5 | 6 | import javax.annotation.Resource; 7 | import java.util.Date; 8 | 9 | /** 10 | * 11 | * @author wangxc 12 | * @date: 2019/7/18 下午9:01 13 | * 14 | */ 15 | @Service 16 | public class SimulationService { 17 | 18 | @Resource 19 | private ProducerService producerService; 20 | 21 | /** 22 | * 只是测试,暂且不对body做验证,默认body一定不为空 23 | * @param topic 24 | * @param body 25 | */ 26 | public void send(String topic, String body) { 27 | System.out.println(body); 28 | producerService.sendMessage(topic,body); 29 | } 30 | } 31 | -------------------------------------------------------------------------------- /quick-kafka/src/main/resources/application.yml: -------------------------------------------------------------------------------- 1 | 2 | spring: 3 | kafka: 4 | bootstrap-servers: 192.168.1.7:9092 5 | 6 | producer: 7 | key-serializer: org.apache.kafka.common.serialization.StringSerializer 8 | value-serializer: org.apache.kafka.common.serialization.StringSerializer 9 | 10 | batch-size: 65536 11 | buffer-memory: 524288 12 | 13 | 14 | consumer: 15 | group-id: 0 16 | key-deserializer: org.apache.kafka.common.serialization.StringDeserializer 17 | value-deserializer: org.apache.kafka.common.serialization.StringDeserializer 18 | 19 | 20 | kafka: 21 | topic: 22 | group-id: topicGroupId 23 | topic-name: 24 | - topic1 25 | - topic2 26 | - topic3 27 | server: 28 | port: 8091 -------------------------------------------------------------------------------- /quick-dubbo-nacos/service/src/main/resources/application.properties: -------------------------------------------------------------------------------- 1 | 2 | spring.application.name=nacos-provider 3 | 4 | spring.cloud.nacos.discovery.server-addr=localhost:8848 5 | #nacos.discovery.server-addr=localhost:8848 6 | #spring.main.allow-bean-definition-overriding=true 7 | 8 | dubbo.scan.base-packages=com.quick.nacos 9 | dubbo.registry.address=spring-cloud://localhost:8848 10 | dubbo.protocol.id=dubbo 11 | dubbo.registry.id=nacos 12 | dubbo.protocol.name=dubbo 13 | dubbo.protocol.port=-1 14 | dubbo.consumer.check=false 15 | dubbo.application.id=dubbo-nacos-provider 16 | dubbo.application.name=dubbo-nacos-provider 17 | dubbo.cloud.subscribed-services=nacos-provider 18 | 19 | logging.level.root=info 20 | 21 | service.version=1.0.0 22 | service.name=helloService -------------------------------------------------------------------------------- /quick-framework/pom.xml: -------------------------------------------------------------------------------- 1 | 2 | 5 | 6 | quick-platform 7 | com.quick 8 | 1.0-SNAPSHOT 9 | ../quick-platform/pom.xml 10 | 11 | 4.0.0 12 | 13 | quick-framework 14 | pom 15 | 16 | 17 | base-adapter 18 | 19 | 20 | 21 | -------------------------------------------------------------------------------- /quick-jsp/src/main/java/com/quick/QuickJspApplication.java: -------------------------------------------------------------------------------- 1 | package com.quick; 2 | 3 | import org.springframework.boot.SpringApplication; 4 | import org.springframework.boot.autoconfigure.SpringBootApplication; 5 | import org.springframework.boot.builder.SpringApplicationBuilder; 6 | import org.springframework.boot.web.support.SpringBootServletInitializer; 7 | 8 | @SpringBootApplication 9 | public class QuickJspApplication extends SpringBootServletInitializer { 10 | 11 | @Override 12 | protected SpringApplicationBuilder configure(SpringApplicationBuilder application) { 13 | return application.sources(QuickJspApplication.class); 14 | } 15 | 16 | public static void main(String[] args) { 17 | SpringApplication.run(QuickJspApplication.class, args); 18 | } 19 | } 20 | -------------------------------------------------------------------------------- /quick-rabbitmq/src/main/java/com/quick/mq/scenes/fanoutExChange/FanoutReceiverA.java: -------------------------------------------------------------------------------- 1 | package com.quick.mq.scenes.fanoutExChange; 2 | 3 | import org.springframework.amqp.rabbit.annotation.RabbitHandler; 4 | import org.springframework.amqp.rabbit.annotation.RabbitListener; 5 | import org.springframework.stereotype.Component; 6 | 7 | /** 8 | * @Author: wangxc 9 | * @GitHub: https://github.com/vector4wang 10 | * @CSDN: http://blog.csdn.net/qqhjqs?viewmode=contents 11 | * @BLOG: http://vector4wang.tk 12 | * @wxid: BMHJQS 13 | */ 14 | @Component 15 | @RabbitListener(queues = "fanout.A") 16 | public class FanoutReceiverA { 17 | 18 | @RabbitHandler 19 | public void process(String msg) { 20 | System.out.println("FanoutReceiverA : " + msg); 21 | } 22 | 23 | } -------------------------------------------------------------------------------- /quick-rabbitmq/src/main/java/com/quick/mq/scenes/fanoutExChange/FanoutReceiverB.java: -------------------------------------------------------------------------------- 1 | package com.quick.mq.scenes.fanoutExChange; 2 | 3 | import org.springframework.amqp.rabbit.annotation.RabbitHandler; 4 | import org.springframework.amqp.rabbit.annotation.RabbitListener; 5 | import org.springframework.stereotype.Component; 6 | 7 | /** 8 | * @Author: wangxc 9 | * @GitHub: https://github.com/vector4wang 10 | * @CSDN: http://blog.csdn.net/qqhjqs?viewmode=contents 11 | * @BLOG: http://vector4wang.tk 12 | * @wxid: BMHJQS 13 | */ 14 | @Component 15 | @RabbitListener(queues = "fanout.B") 16 | public class FanoutReceiverB { 17 | 18 | @RabbitHandler 19 | public void process(String msg) { 20 | System.out.println("FanoutReceiverB : " + msg); 21 | } 22 | 23 | } -------------------------------------------------------------------------------- /quick-rabbitmq/src/main/java/com/quick/mq/scenes/fanoutExChange/FanoutReceiverC.java: -------------------------------------------------------------------------------- 1 | package com.quick.mq.scenes.fanoutExChange; 2 | 3 | import org.springframework.amqp.rabbit.annotation.RabbitHandler; 4 | import org.springframework.amqp.rabbit.annotation.RabbitListener; 5 | import org.springframework.stereotype.Component; 6 | 7 | /** 8 | * @Author: wangxc 9 | * @GitHub: https://github.com/vector4wang 10 | * @CSDN: http://blog.csdn.net/qqhjqs?viewmode=contents 11 | * @BLOG: http://vector4wang.tk 12 | * @wxid: BMHJQS 13 | */ 14 | @Component 15 | @RabbitListener(queues = "fanout.C") 16 | public class FanoutReceiverC { 17 | 18 | @RabbitHandler 19 | public void process(String msg) { 20 | System.out.println("FanoutReceiverC : " + msg); 21 | } 22 | 23 | } -------------------------------------------------------------------------------- /quick-rabbitmq/src/main/java/com/quick/mq/util/ExpirationMessagePostProcessor.java: -------------------------------------------------------------------------------- 1 | package com.quick.mq.util; 2 | 3 | import org.springframework.amqp.AmqpException; 4 | import org.springframework.amqp.core.Message; 5 | import org.springframework.amqp.core.MessagePostProcessor; 6 | 7 | public class ExpirationMessagePostProcessor implements MessagePostProcessor { 8 | private final Long ttl; // 毫秒 9 | 10 | public ExpirationMessagePostProcessor(Long ttl) { 11 | this.ttl = ttl; 12 | } 13 | 14 | @Override 15 | public Message postProcessMessage(Message message) throws AmqpException { 16 | message.getMessageProperties() 17 | .setExpiration(ttl.toString()); // 设置per-message的失效时间 18 | return message; 19 | } 20 | 21 | } -------------------------------------------------------------------------------- /quick-sample-server/sample-server/src/main/resources/application-jdbc.properties: -------------------------------------------------------------------------------- 1 | spring.datasource.driver-class-name=com.mysql.cj.jdbc.Driver 2 | spring.datasource.url=jdbc:mysql://127.0.0.1:3306/cg?useUnicode=true&characterEncoding=utf-8&useSSL=false&serverTimezone=UTC&allowPublicKeyRetrieval=true 3 | spring.datasource.username=root 4 | spring.datasource.password=123456 5 | 6 | 7 | mybatis-plus.configuration.map-underscore-to-camel-case=true 8 | mybatis-plus.configuration.auto-mapping-behavior=full 9 | mybatis-plus.configuration.log-impl=org.apache.ibatis.logging.stdout.StdOutImpl 10 | mybatis-plus.mapper-locations=classpath*:mapper/**/*Mapper.xml 11 | mybatis-plus.global-config.db-config.logic-not-delete-value=0 12 | mybatis-plus.global-config.db-config.logic-delete-value=1 -------------------------------------------------------------------------------- /mybatis-crypt-plugin/src/main/java/com/quick/db/crypt/encrypt/BaseEncrypt.java: -------------------------------------------------------------------------------- 1 | package com.quick.db.crypt.encrypt; 2 | 3 | /** 4 | * 继承此类,必须实现实现无参数和有参数的构造器 5 | */ 6 | public abstract class BaseEncrypt implements Encrypt { 7 | 8 | private static final String DEFAULT_SEC = "FMjDV69Xkd6y9HVVK"; 9 | 10 | public String password; 11 | 12 | public String getDefaultPassword() { 13 | return password; 14 | } 15 | 16 | public BaseEncrypt() { 17 | this.password = DEFAULT_SEC; 18 | } 19 | 20 | public BaseEncrypt(String password) { 21 | this.password = password; 22 | } 23 | 24 | @Override 25 | public abstract String encrypt(String src); 26 | 27 | @Override 28 | public abstract String decrypt(String encrypt); 29 | } -------------------------------------------------------------------------------- /quick-feign/src/main/java/com/quick/feign/TestMain.java: -------------------------------------------------------------------------------- 1 | package com.quick.feign; 2 | 3 | import com.alibaba.fastjson.JSON; 4 | import com.quick.feign.entity.BaseResp; 5 | 6 | /** 7 | * @author 01390942 8 | * @Description 9 | * @create 2022/1/24 10 | * @since 1.0.0 11 | */ 12 | public class TestMain { 13 | public static void main(String[] args) { 14 | BaseResp baseResp = JSON.parseObject( 15 | "{\"data\":{\"id\":\"11000002000016\",\"sitename\":\"新浪网\",\"sitedomain\":\"sina.com.cn\",\"sitetype\":\"交互式\",\"cdate\":\"2016-01-21\",\"comtype\":\"企业单位\",\"comname\":\"北京新浪互联信息服务有限公司\",\"comaddress\":\"北京市网安总队\",\"updateTime\":\"2017-09-09\"},\"status\":200}", 16 | BaseResp.class); 17 | System.out.println(baseResp); 18 | } 19 | } -------------------------------------------------------------------------------- /quick-wx-public/src/main/java/com/wx/pn/api/response/GetJsApiTicketResponse.java: -------------------------------------------------------------------------------- 1 | package com.wx.pn.api.response; 2 | 3 | import com.alibaba.fastjson.annotation.JSONField; 4 | import com.wx.pn.api.model.BaseResponse; 5 | 6 | public class GetJsApiTicketResponse extends BaseResponse { 7 | 8 | private String ticket; 9 | 10 | @JSONField(name = "expires_in") 11 | private Integer expiresIn; 12 | 13 | public String getTicket() { 14 | return ticket; 15 | } 16 | 17 | public void setTicket(String ticket) { 18 | this.ticket = ticket; 19 | } 20 | 21 | public Integer getExpiresIn() { 22 | return expiresIn; 23 | } 24 | 25 | public void setExpiresIn(Integer expiresIn) { 26 | this.expiresIn = expiresIn; 27 | } 28 | } 29 | -------------------------------------------------------------------------------- /mybatis-crypt-plugin-test/src/main/java/com/quick/crypt/test/config/CustomerCryptor.java: -------------------------------------------------------------------------------- 1 | package com.quick.crypt.test.config; 2 | 3 | import com.quick.db.crypt.encrypt.BaseEncrypt; 4 | 5 | /** 6 | * @author 01390942 7 | * @Description 8 | * @create 2022/5/25 9 | * @since 1.0.0 10 | */ 11 | public class CustomerCryptor extends BaseEncrypt { 12 | 13 | public CustomerCryptor() { 14 | super(); 15 | } 16 | 17 | public CustomerCryptor(String password) { 18 | super(password); 19 | } 20 | 21 | @Override 22 | public String encrypt(String src) { 23 | return src + " 使用 " + password + "已加密"; 24 | } 25 | 26 | @Override 27 | public String decrypt(String encrypt) { 28 | return encrypt + " 使用" + password + "已解密"; 29 | } 30 | } -------------------------------------------------------------------------------- /quick-platform-common/src/main/java/com/quick/common/base/rest/BaseController.java: -------------------------------------------------------------------------------- 1 | package com.quick.common.base.rest; 2 | 3 | /** 4 | * 后续可在此提供公共方法 5 | */ 6 | public interface BaseController { 7 | 8 | default BaseResp success() { 9 | return BaseResp.success(); 10 | } 11 | 12 | default BaseResp success(T data) { 13 | return success(data,""); 14 | } 15 | 16 | default BaseResp success(T data, String msg) { 17 | return BaseResp.success(data, msg); 18 | } 19 | 20 | default BaseResp fail(String msg) { 21 | return BaseResp.fail(msg); 22 | } 23 | 24 | default BaseResp fail(ResultStatus code, String msg) { 25 | return BaseResp.fail(code, msg); 26 | } 27 | 28 | } 29 | -------------------------------------------------------------------------------- /quick-activemq2/src/main/java/com/active2/mq/SingleConsumer.java: -------------------------------------------------------------------------------- 1 | package com.active2.mq; 2 | 3 | import org.springframework.jms.annotation.JmsListener; 4 | 5 | import javax.jms.JMSException; 6 | import javax.jms.Session; 7 | import javax.jms.TextMessage; 8 | 9 | /** 10 | * 11 | * @author wangxc 12 | * @date: 2019/3/6 下午11:21 13 | * 14 | */ 15 | public class SingleConsumer { 16 | @JmsListener(destination = "${jsa.activemq.simple.queue.name_1}", containerFactory = "jmsSimpeQueueListener1") 17 | public void receiveQueue1(final TextMessage text, Session session) 18 | throws JMSException { 19 | doMsg(text, session, "Consumer1收到的报文为:" + text.getText()); 20 | } 21 | 22 | private void doMsg(TextMessage text, Session session, String s) { 23 | System.out.println(text); 24 | } 25 | } 26 | -------------------------------------------------------------------------------- /quick-multi-data/src/main/java/com/quick/mulit/service/impl/CityServiceImpl.java: -------------------------------------------------------------------------------- 1 | package com.quick.mulit.service.impl; 2 | 3 | import com.quick.mulit.entity.primary.City; 4 | import com.quick.mulit.mapper.primary.CityMapper; 5 | import com.quick.mulit.service.CityService; 6 | import org.springframework.beans.factory.annotation.Autowired; 7 | import org.springframework.stereotype.Service; 8 | 9 | /** 10 | * Created with IDEA 11 | * User: vector 12 | * Data: 2017/8/22 13 | * Time: 19:14 14 | * Description: 15 | */ 16 | @Service 17 | public class CityServiceImpl implements CityService { 18 | 19 | @Autowired 20 | private CityMapper cityMapper; 21 | 22 | @Override 23 | public City getCity(short i) { 24 | return cityMapper.selectByPrimaryKey(i); 25 | } 26 | } 27 | -------------------------------------------------------------------------------- /quick-oauth2/quick-oauth2-server/src/main/resources/application.properties: -------------------------------------------------------------------------------- 1 | #web server 2 | server.port=1130 3 | 4 | #spring.jpa.show-sql=true 5 | spring.jpa.generate-ddl=true 6 | spring.datasource.url=jdbc:mysql://localhost:3308/test?useUnicode=true&characterEncoding=utf-8&useSSL=false 7 | spring.datasource.username=root 8 | spring.datasource.password=123456 9 | spring.datasource.driver-class-name=com.mysql.jdbc.Driver 10 | spring.jpa.properties.hibernate.hbm2ddl.auto=update 11 | 12 | 13 | # REDIS (RedisProperties) 14 | spring.redis.database=1 15 | spring.redis.host=localhost 16 | spring.redis.port=6379 17 | spring.redis.password= 18 | spring.redis.pool.max-active=8 19 | spring.redis.pool.max-wait=-1 20 | spring.redis.pool.max-idle=8 21 | spring.redis.pool.min-idle=0 22 | spring.redis.timeout=0 -------------------------------------------------------------------------------- /quick-rabbitmq/src/main/java/com/quick/mq/scenes/topicExChange/TopicMessageReceiver.java: -------------------------------------------------------------------------------- 1 | package com.quick.mq.scenes.topicExChange; 2 | 3 | import org.springframework.amqp.rabbit.annotation.RabbitHandler; 4 | import org.springframework.amqp.rabbit.annotation.RabbitListener; 5 | import org.springframework.stereotype.Component; 6 | 7 | /** 8 | * @Author: wangxc 9 | * @GitHub: https://github.com/vector4wang 10 | * @CSDN: http://blog.csdn.net/qqhjqs?viewmode=contents 11 | * @BLOG: http://vector4wang.tk 12 | * @wxid: BMHJQS 13 | */ 14 | @Component 15 | @RabbitListener(queues = "topic.message") 16 | public class TopicMessageReceiver { 17 | 18 | @RabbitHandler 19 | public void process(String msg) { 20 | System.out.println("topicMessageReceiver : " +msg); 21 | } 22 | } 23 | -------------------------------------------------------------------------------- /quick-spring-shiro/README.md: -------------------------------------------------------------------------------- 1 | ### 参考链接 2 | - https://zhuanlan.zhihu.com/p/140454269 3 | 4 | 5 | 1、身份认证和鉴权; 6 | 7 | 认证成功后的信息保存 8 | 9 | 2、访问之前的拦截; 10 | 11 | 3、认证之后的拦截; 12 | 13 | 4、支持 oauth2、session、jwt 14 | 15 | 5、session 存在 16 | 17 | ### 问题 18 | 1、 提示如下 19 | ```text 20 | Parameter 0 of method authorizationAttributeSourceAdvisor in org.apache.shiro.spring.boot.autoconfigure.ShiroAnnotationProcessorAutoConfiguration required a bean named 'authenticator' that could not be found. 21 | Action: 22 | Consider defining a bean named 'authenticator' in your configuration. 23 | ``` 24 | 25 | 排查`SecurityManager`实例话的类型是否为`SessionsSecurityManager` 26 | 27 | 2、Request method 'GET' not supported 28 | 29 | shiroFilterFactoryBean实例化是,设置的setLogin method为post,其他无权限访问的get接口会重定向到setlogin 30 | 就会出现此错误; 31 | -------------------------------------------------------------------------------- /mybatis-crypt-plugin-test/src/main/java/com/quick/crypt/test/entity/User.java: -------------------------------------------------------------------------------- 1 | package com.quick.crypt.test.entity; 2 | 3 | import com.quick.db.crypt.annotation.CryptEntity; 4 | import com.quick.db.crypt.annotation.CryptField; 5 | import lombok.Data; 6 | 7 | import javax.persistence.Id; 8 | import javax.persistence.Table; 9 | import java.io.Serializable; 10 | 11 | /** 12 | * (User)实体类 13 | * 14 | * @author makejava 15 | * @since 2022-05-18 16:51:55 16 | */ 17 | @Data 18 | @CryptEntity 19 | @Table(name = "user") 20 | public class User implements Serializable { 21 | private static final long serialVersionUID = -33370517147127073L; 22 | 23 | @Id 24 | private Integer id; 25 | 26 | private String name; 27 | 28 | @CryptField 29 | private String phone; 30 | 31 | } 32 | 33 | -------------------------------------------------------------------------------- /mybatis-crypt-plugin/src/main/java/com/quick/db/crypt/util/PluginUtils.java: -------------------------------------------------------------------------------- 1 | package com.quick.db.crypt.util; 2 | 3 | import org.apache.ibatis.reflection.MetaObject; 4 | import org.apache.ibatis.reflection.SystemMetaObject; 5 | 6 | import java.lang.reflect.Proxy; 7 | 8 | public final class PluginUtils { 9 | 10 | private PluginUtils() { 11 | // to do nothing 12 | } 13 | 14 | /** 15 | * 获得真正的处理对象,可能多层代理. 16 | */ 17 | @SuppressWarnings("unchecked") 18 | public static T realTarget(Object target) { 19 | if (Proxy.isProxyClass(target.getClass())) { 20 | MetaObject metaObject = SystemMetaObject.forObject(target); 21 | return realTarget(metaObject.getValue("h.target")); 22 | } 23 | return (T) target; 24 | } 25 | } -------------------------------------------------------------------------------- /quick-lombok/src/main/java/com/lombok/SynchronizedTestMain.java: -------------------------------------------------------------------------------- 1 | package com.lombok; 2 | 3 | import lombok.Synchronized; 4 | 5 | /** 6 | * @Synchronized:用在方法上,将方法声明为同步的,并自动加锁,而锁对象是一个私有的属性$lock或$LOCK,而java中的synchronized关键字锁对象是this,锁在this或者自己的类对象上存在副作用,就是你不能阻止非受控代码去锁this或者类对象,这可能会导致竞争条件或者其它线程错误 7 | * @author vector 8 | * @date: 2019/2/27 0027 10:59 9 | */ 10 | public class SynchronizedTestMain { 11 | @Synchronized 12 | public static void hello() { 13 | System.out.println("world"); 14 | } 15 | //相当于 16 | /** 17 | * private static final Object $LOCK = new Object[0]; 18 | * public static void hello() { 19 | * synchronized ($LOCK) { 20 | * System.out.println("world"); 21 | * } 22 | * } 23 | */ 24 | } 25 | -------------------------------------------------------------------------------- /quick-rabbitmq/src/main/java/com/quick/mq/scenes/topicExChange/TopicMessagesReceiver.java: -------------------------------------------------------------------------------- 1 | package com.quick.mq.scenes.topicExChange; 2 | 3 | import org.springframework.amqp.rabbit.annotation.RabbitHandler; 4 | import org.springframework.amqp.rabbit.annotation.RabbitListener; 5 | import org.springframework.stereotype.Component; 6 | 7 | /** 8 | * @Author: wangxc 9 | * @GitHub: https://github.com/vector4wang 10 | * @CSDN: http://blog.csdn.net/qqhjqs?viewmode=contents 11 | * @BLOG: http://vector4wang.tk 12 | * @wxid: BMHJQS 13 | */ 14 | @Component 15 | @RabbitListener(queues = "topic.messages") 16 | public class TopicMessagesReceiver { 17 | 18 | @RabbitHandler 19 | public void process(String msg) { 20 | System.out.println("topicMessagesReceiver : " +msg); 21 | } 22 | } 23 | -------------------------------------------------------------------------------- /quick-rabbitmq/src/main/java/com/quick/mq/scenes/single/HelloSender1.java: -------------------------------------------------------------------------------- 1 | package com.quick.mq.scenes.single; 2 | 3 | import org.springframework.amqp.core.AmqpTemplate; 4 | import org.springframework.beans.factory.annotation.Autowired; 5 | import org.springframework.stereotype.Component; 6 | 7 | import java.util.Date; 8 | 9 | /** 10 | * Created with IDEA 11 | * User: vector 12 | * Data: 2017/7/7 13 | * Time: 16:41 14 | * Description: 15 | */ 16 | @Component 17 | public class HelloSender1 { 18 | 19 | @Autowired 20 | private AmqpTemplate rabbitTemplate; 21 | 22 | public void send() { 23 | String sendMsg = "hello1 " + new Date(); 24 | System.out.println("Sender1 : " + sendMsg); 25 | this.rabbitTemplate.convertAndSend("helloQueue", sendMsg); 26 | } 27 | 28 | } -------------------------------------------------------------------------------- /quick-wx-public/src/main/java/com/wx/pn/api/model/ReqType.java: -------------------------------------------------------------------------------- 1 | package com.wx.pn.api.model; 2 | 3 | public final class ReqType { 4 | 5 | public static final String TEXT = "text"; 6 | public static final String IMAGE = "image"; 7 | public static final String LINK = "link"; 8 | public static final String LOCATION = "location"; 9 | public static final String VOICE = "voice"; 10 | public static final String VIDEO = "video"; 11 | public static final String SHORT_VIDEO = "shortvideo"; 12 | public static final String EVENT = "event"; 13 | public static final String SUBSCRIBE = "subscribe"; 14 | public static final String UNSUBSCRIBE = "unsubscribe"; 15 | 16 | 17 | private ReqType() { 18 | } 19 | 20 | } 21 | -------------------------------------------------------------------------------- /quick-multi-data/src/main/java/com/quick/mulit/service/impl/ReaderServiceImpl.java: -------------------------------------------------------------------------------- 1 | package com.quick.mulit.service.impl; 2 | 3 | import com.quick.mulit.entity.secondary.Reader; 4 | import com.quick.mulit.mapper.secondary.ReaderMapper; 5 | import com.quick.mulit.service.ReaderService; 6 | import org.springframework.beans.factory.annotation.Autowired; 7 | import org.springframework.stereotype.Service; 8 | 9 | /** 10 | * Created with IDEA 11 | * User: vector 12 | * Data: 2017/8/22 13 | * Time: 19:15 14 | * Description: 15 | */ 16 | @Service 17 | public class ReaderServiceImpl implements ReaderService { 18 | 19 | @Autowired 20 | private ReaderMapper readerMapper; 21 | 22 | @Override 23 | public Reader getReader(int i) { 24 | return readerMapper.selectByPrimaryKey(i); 25 | } 26 | } 27 | -------------------------------------------------------------------------------- /quick-abstract-template/src/main/java/com/quick/abs/AbstractTemplateApplication.java: -------------------------------------------------------------------------------- 1 | package com.quick.abs; 2 | 3 | import com.quick.abs.service.CreatureLifeService; 4 | import org.springframework.boot.SpringApplication; 5 | import org.springframework.boot.autoconfigure.SpringBootApplication; 6 | import org.springframework.context.ConfigurableApplicationContext; 7 | 8 | @SpringBootApplication 9 | public class AbstractTemplateApplication { 10 | 11 | 12 | public static void main(String[] args) { 13 | ConfigurableApplicationContext applicationContext = SpringApplication.run(AbstractTemplateApplication.class); 14 | 15 | CreatureLifeService creatureLifeService = applicationContext.getBean("creatureLifeService",CreatureLifeService.class); 16 | creatureLifeService.birth2die("Duck"); 17 | } 18 | } -------------------------------------------------------------------------------- /quick-app/src/main/java/com/app/controller/AppController.java: -------------------------------------------------------------------------------- 1 | package com.app.controller; 2 | 3 | import org.springframework.web.bind.annotation.RequestMapping; 4 | import org.springframework.web.bind.annotation.RestController; 5 | 6 | import javax.servlet.http.HttpServletRequest; 7 | import java.util.UUID; 8 | 9 | @RestController("index") 10 | public class AppController { 11 | 12 | @RequestMapping 13 | public Object hello(HttpServletRequest request) { 14 | String remoteHost = request.getRemoteHost(); 15 | String html = "

Hello " + UUID.randomUUID().toString() + "!

" + 16 | "Hostname: " + remoteHost + "
"; 17 | 18 | return html; 19 | } 20 | 21 | @RequestMapping("/login") 22 | public String myTranslate3(){ 23 | return "login"; 24 | } 25 | 26 | } 27 | -------------------------------------------------------------------------------- /quick-mail/src/main/resources/application.properties: -------------------------------------------------------------------------------- 1 | spring.mail.host=smtp.qq.com 2 | #spring.mail.host=smtp.gmail.com 3 | spring.mail.username=772704457@qq.com 4 | spring.mail.password=xxxxxxxxx授权码 5 | 6 | # Other properties 7 | spring.mail.protocol=smtp 8 | spring.mail.properties.mail.smtp.auth=true 9 | spring.mail.properties.mail.smtp.connectiontimeout=5000 10 | spring.mail.properties.mail.smtp.timeout=5000 11 | spring.mail.properties.mail.smtp.writetimeout=5000 12 | spring.mail.default-encoding=UTF-8 13 | 14 | # TLS , port 587 15 | spring.mail.properties.mail.smtp.starttls.enable=true 16 | spring.mail.properties.mail.smtp.starttls.required=true 17 | 18 | # SSL, post 465 19 | #spring.mail.properties.mail.smtp.socketFactory.port = 465 20 | #spring.mail.properties.mail.smtp.socketFactory.class = javax.net.ssl.SSLSocketFactory -------------------------------------------------------------------------------- /quick-multi-data/src/main/java/com/quick/mulit/Application.java: -------------------------------------------------------------------------------- 1 | package com.quick.mulit; 2 | 3 | import org.springframework.boot.SpringApplication; 4 | import org.springframework.boot.autoconfigure.SpringBootApplication; 5 | import org.springframework.boot.web.servlet.ServletComponentScan; 6 | import org.springframework.transaction.annotation.EnableTransactionManagement; 7 | 8 | /** 9 | * @Author: wangxc 10 | * @GitHub: https://github.com/vector4wang 11 | * @CSDN: http://blog.csdn.net/qqhjqs?viewmode=contents 12 | * @BLOG: http://vector4wang.tk 13 | * @wxid: BMHJQS 14 | */ 15 | @SpringBootApplication 16 | @ServletComponentScan 17 | @EnableTransactionManagement 18 | public class Application { 19 | public static void main(String[] args) { 20 | SpringApplication.run(Application.class, args); 21 | } 22 | } 23 | -------------------------------------------------------------------------------- /quick-profiles/module2/pom.xml: -------------------------------------------------------------------------------- 1 | 2 | 5 | 6 | quick-profiles 7 | com.quick 8 | 1.0-SNAPSHOT 9 | 10 | 4.0.0 11 | 12 | module2 13 | 14 | 15 | 16 | 17 | base 18 | com.quick 19 | 1.0-SNAPSHOT 20 | 21 | 22 | 23 | -------------------------------------------------------------------------------- /quick-rocketmq/src/main/java/com/rocketmq/controller/ApiController.java: -------------------------------------------------------------------------------- 1 | package com.rocketmq.controller; 2 | 3 | import com.rocketmq.service.MQService; 4 | import org.springframework.web.bind.annotation.RequestMapping; 5 | import org.springframework.web.bind.annotation.RequestParam; 6 | import org.springframework.web.bind.annotation.RestController; 7 | 8 | import javax.annotation.Resource; 9 | 10 | /** 11 | * Created with IDEA 12 | * User: vector 13 | * Data: 2017/12/5 14 | * Time: 19:43 15 | * Description: 16 | */ 17 | @RestController 18 | public class ApiController { 19 | 20 | @Resource 21 | private MQService mqService; 22 | 23 | @RequestMapping("/send") 24 | public String sendMsg(@RequestParam("msg") String msg) { 25 | mqService.sendMsg(msg); 26 | return "hello world"; 27 | } 28 | } 29 | --------------------------------------------------------------------------------