16. springcloud Integrates Swagger 2 to Build APIs for Restful Services
Public number: java paradise
Spring Cloud registers services on Eureka. From Eureka's UI interface, you can see which services have been registered on Eureka Server. But if you want to see what RESTful interface methods the current service provides, you can't get them from Eureka Server. The traditional method is to sort out an interface docume ...
Posted by jim.davidson on Fri, 04 Oct 2019 18:34:44 -0700
rocketmq Source Resolution namesrvController Launch 3
Said ahead
Next, the introduction of namesrvController startup
Source code analysis
Return method, process request, org. apache. rocketmq. remoting. netty. Netty Remoting Abstract # process RequestCommand
public void processRequestCommand(final ChannelHandlerContext ctx, final RemotingCommand cmd) {
// ...
Posted by darf on Fri, 04 Oct 2019 06:44:32 -0700
java.sql.SQLException: No suitable driver solution (due to your own carelessness)
java.sql.SQLException: No suitable driver solution
warning: com.mchange.v2.resourcepool.BasicResourcePool$ScatteredAcquireTask@5466b465 -- Acquisition Attempt Failed!!! Clearing pending acquires. While trying to acquire a needed new resource, we failed to succeed more than the maximum number of allo ...
Posted by graham23s on Fri, 04 Oct 2019 05:27:50 -0700
Create Spring Cloud Project (Service Registration and Discovery)
Create a registry
1. Create a maven project first:
Go straight to the next step.
2. Create an eureka project:
Then
Click on the next step.
Import dependencies in pom after project creation: (generally after project creation)
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven. ...
Posted by phpbeginer on Fri, 04 Oct 2019 03:03:39 -0700
Express Bird Logistics Single Number Query api interface integration, can be directly used if necessary
With the development of online shopping, the express industry has also grown. The demand for the docking of express inquiry interface is also growing. The following is the collation of free express interface, with the call process attached, to share with you.
In the project development, some requirements will inevitably use some Api interfaces ...
Posted by Boris Senker on Thu, 03 Oct 2019 20:59:20 -0700
Spark Learning 02 - A Method to Create DStream
Spark Streaming provides two types of built-in streaming media sources.
Basic source: The source directly provided in the StreamingContext API. Example: File system and socket connection.
Advanced resources: Kafka, Flume, Kinesis and other resources can be obtained through additional utility classes.
...
Posted by leebo on Thu, 03 Oct 2019 10:21:03 -0700
Spark is exported to an existing directory
Links to the original text: https://my.oschina.net/asparagus/blog/699814
Spark saves the output data to an existing directory
Save by the saveAsTextFile method of RDD
String input = ...
Posted by webguync on Thu, 03 Oct 2019 07:17:07 -0700
Redis-Xi-01-Redis Distributed Lock (Single Node Lua script)
Article directory
Redis-Xi-01-Redis Distributed Lock (Lua script)
Get Lock Release Lock Code
test
Code
Testing process
Redis-Xi-01-Redis Distributed Lock (Lua script)
In SpringBook project, set key value nx px command is used to ensure the atomic operation of acquiring lock, and Lua script ...
Posted by rimedey on Wed, 02 Oct 2019 16:52:10 -0700
Analysis of MyBatis Log Module
Label (Space Separation): Uncategorized
The package where the log function code resides
org.apache.ibatis.logging
Loading order of log module
mybatis does not have its own log module. It uses third-party logs (and jdk has its own logs)
Log loading order slf4J_commonsLoging_Log4J2_Log4J_JdkLog
Related code
Declare the loading order in the stati ...
Posted by TecTao on Wed, 02 Oct 2019 13:50:26 -0700
rocketmq Source Parsing NamesrvController Launch 2 Create mqclient 1
Said ahead
Last time
Source code analysis
Return to the method org. apache. rocketmq. tools. admin. DefaultMQ AdminExtImpl start
@Override
public void start() throws MQClientException {
switch (this.serviceState) {
case CREATE_JUST://Services are only started, not created
...
Posted by psy on Wed, 02 Oct 2019 04:24:14 -0700