Compare commits
2 Commits
Author | SHA1 | Date |
---|---|---|
|
c66aef8d6f | |
|
d97349d5bd |
|
@ -7,32 +7,38 @@
|
|||
<sourceOutputDir name="target/generated-sources/annotations" />
|
||||
<sourceTestOutputDir name="target/generated-test-sources/test-annotations" />
|
||||
<outputRelativeToContentRoot value="true" />
|
||||
<module name="boot-auth" />
|
||||
<module name="boot-mq" />
|
||||
<module name="rush-order-remote" />
|
||||
<module name="boot-common-seata" />
|
||||
<module name="boot-visual-monitor" />
|
||||
<module name="car-charging-common" />
|
||||
<module name="boot-job" />
|
||||
<module name="car-pay-server" />
|
||||
<module name="boot-common-redis" />
|
||||
<module name="rush-order-common" />
|
||||
<module name="boot-common-datasource" />
|
||||
<module name="boot-gen" />
|
||||
<module name="boot-common-core" />
|
||||
<module name="boot-common-swagger" />
|
||||
<module name="boot-system-server" />
|
||||
<module name="car-pay-remote" />
|
||||
<module name="boot-auth" />
|
||||
<module name="car-charging-server" />
|
||||
<module name="rush-order-remote" />
|
||||
<module name="car-charging-remote" />
|
||||
<module name="rush-order-server" />
|
||||
<module name="car-pay-common" />
|
||||
<module name="boot-file-common" />
|
||||
<module name="boot-file-remote" />
|
||||
<module name="boot-system-remote" />
|
||||
<module name="boot-job" />
|
||||
<module name="boot-common-log" />
|
||||
<module name="boot-common-datascope" />
|
||||
<module name="boot-common-redis" />
|
||||
<module name="boot-common-security" />
|
||||
<module name="rush-order-common" />
|
||||
<module name="boot-common-datasource" />
|
||||
<module name="boot-file-server" />
|
||||
<module name="boot-system-common" />
|
||||
<module name="boot-gen" />
|
||||
<module name="boot-common-core" />
|
||||
<module name="boot-gateway" />
|
||||
<module name="boot-common-swagger" />
|
||||
<module name="boot-system-server" />
|
||||
</profile>
|
||||
</annotationProcessing>
|
||||
<bytecodeTargetLevel>
|
||||
<module name="boot-mq" target="1.8" />
|
||||
<module name="boot-system (1)" target="1.8" />
|
||||
<module name="boot-system (2)" target="1.8" />
|
||||
<module name="car_server" target="1.8" />
|
||||
|
|
|
@ -51,6 +51,22 @@
|
|||
<file url="file://$PROJECT_DIR$/boot-visual/boot-monitor/src/main/resources" charset="UTF-8" />
|
||||
<file url="file://$PROJECT_DIR$/boot-visual/src/main/java" charset="UTF-8" />
|
||||
<file url="file://$PROJECT_DIR$/boot-visual/src/main/resources" charset="UTF-8" />
|
||||
<file url="file://$PROJECT_DIR$/car-charging/car-charging-common/src/main/java" charset="UTF-8" />
|
||||
<file url="file://$PROJECT_DIR$/car-charging/car-charging-common/src/main/resources" charset="UTF-8" />
|
||||
<file url="file://$PROJECT_DIR$/car-charging/car-charging-remote/src/main/java" charset="UTF-8" />
|
||||
<file url="file://$PROJECT_DIR$/car-charging/car-charging-remote/src/main/resources" charset="UTF-8" />
|
||||
<file url="file://$PROJECT_DIR$/car-charging/car-charging-server/src/main/java" charset="UTF-8" />
|
||||
<file url="file://$PROJECT_DIR$/car-charging/car-charging-server/src/main/resources" charset="UTF-8" />
|
||||
<file url="file://$PROJECT_DIR$/car-charging/src/main/java" charset="UTF-8" />
|
||||
<file url="file://$PROJECT_DIR$/car-charging/src/main/resources" charset="UTF-8" />
|
||||
<file url="file://$PROJECT_DIR$/car-pay/car-pay-common/src/main/java" charset="UTF-8" />
|
||||
<file url="file://$PROJECT_DIR$/car-pay/car-pay-common/src/main/resources" charset="UTF-8" />
|
||||
<file url="file://$PROJECT_DIR$/car-pay/car-pay-remote/src/main/java" charset="UTF-8" />
|
||||
<file url="file://$PROJECT_DIR$/car-pay/car-pay-remote/src/main/resources" charset="UTF-8" />
|
||||
<file url="file://$PROJECT_DIR$/car-pay/car-pay-server/src/main/java" charset="UTF-8" />
|
||||
<file url="file://$PROJECT_DIR$/car-pay/car-pay-server/src/main/resources" charset="UTF-8" />
|
||||
<file url="file://$PROJECT_DIR$/car-pay/src/main/java" charset="UTF-8" />
|
||||
<file url="file://$PROJECT_DIR$/car-pay/src/main/resources" charset="UTF-8" />
|
||||
<file url="file://$PROJECT_DIR$/rush-order/rush-order-common/src/main/java" charset="UTF-8" />
|
||||
<file url="file://$PROJECT_DIR$/rush-order/rush-order-common/src/main/resources" charset="UTF-8" />
|
||||
<file url="file://$PROJECT_DIR$/rush-order/rush-order-remote/src/main/java" charset="UTF-8" />
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project version="4">
|
||||
<component name="ExternalStorageConfigurationManager" enabled="true" />
|
||||
<component name="MavenProjectsManager">
|
||||
|
@ -9,6 +10,11 @@
|
|||
<option value="$PROJECT_DIR$/boot-car-order/pom.xml" />
|
||||
</list>
|
||||
</option>
|
||||
<option name="ignoredFiles">
|
||||
<set>
|
||||
<option value="$PROJECT_DIR$/boot-mq/pom.xml" />
|
||||
</set>
|
||||
</option>
|
||||
</component>
|
||||
<component name="ProjectRootManager" version="2" languageLevel="JDK_17" default="true" project-jdk-name="17" project-jdk-type="JavaSDK" />
|
||||
</project>
|
|
@ -0,0 +1,124 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project version="4">
|
||||
<component name="Palette2">
|
||||
<group name="Swing">
|
||||
<item class="com.intellij.uiDesigner.HSpacer" tooltip-text="Horizontal Spacer" icon="/com/intellij/uiDesigner/icons/hspacer.svg" removable="false" auto-create-binding="false" can-attach-label="false">
|
||||
<default-constraints vsize-policy="1" hsize-policy="6" anchor="0" fill="1" />
|
||||
</item>
|
||||
<item class="com.intellij.uiDesigner.VSpacer" tooltip-text="Vertical Spacer" icon="/com/intellij/uiDesigner/icons/vspacer.svg" removable="false" auto-create-binding="false" can-attach-label="false">
|
||||
<default-constraints vsize-policy="6" hsize-policy="1" anchor="0" fill="2" />
|
||||
</item>
|
||||
<item class="javax.swing.JPanel" icon="/com/intellij/uiDesigner/icons/panel.svg" removable="false" auto-create-binding="false" can-attach-label="false">
|
||||
<default-constraints vsize-policy="3" hsize-policy="3" anchor="0" fill="3" />
|
||||
</item>
|
||||
<item class="javax.swing.JScrollPane" icon="/com/intellij/uiDesigner/icons/scrollPane.svg" removable="false" auto-create-binding="false" can-attach-label="true">
|
||||
<default-constraints vsize-policy="7" hsize-policy="7" anchor="0" fill="3" />
|
||||
</item>
|
||||
<item class="javax.swing.JButton" icon="/com/intellij/uiDesigner/icons/button.svg" removable="false" auto-create-binding="true" can-attach-label="false">
|
||||
<default-constraints vsize-policy="0" hsize-policy="3" anchor="0" fill="1" />
|
||||
<initial-values>
|
||||
<property name="text" value="Button" />
|
||||
</initial-values>
|
||||
</item>
|
||||
<item class="javax.swing.JRadioButton" icon="/com/intellij/uiDesigner/icons/radioButton.svg" removable="false" auto-create-binding="true" can-attach-label="false">
|
||||
<default-constraints vsize-policy="0" hsize-policy="3" anchor="8" fill="0" />
|
||||
<initial-values>
|
||||
<property name="text" value="RadioButton" />
|
||||
</initial-values>
|
||||
</item>
|
||||
<item class="javax.swing.JCheckBox" icon="/com/intellij/uiDesigner/icons/checkBox.svg" removable="false" auto-create-binding="true" can-attach-label="false">
|
||||
<default-constraints vsize-policy="0" hsize-policy="3" anchor="8" fill="0" />
|
||||
<initial-values>
|
||||
<property name="text" value="CheckBox" />
|
||||
</initial-values>
|
||||
</item>
|
||||
<item class="javax.swing.JLabel" icon="/com/intellij/uiDesigner/icons/label.svg" removable="false" auto-create-binding="false" can-attach-label="false">
|
||||
<default-constraints vsize-policy="0" hsize-policy="0" anchor="8" fill="0" />
|
||||
<initial-values>
|
||||
<property name="text" value="Label" />
|
||||
</initial-values>
|
||||
</item>
|
||||
<item class="javax.swing.JTextField" icon="/com/intellij/uiDesigner/icons/textField.svg" removable="false" auto-create-binding="true" can-attach-label="true">
|
||||
<default-constraints vsize-policy="0" hsize-policy="6" anchor="8" fill="1">
|
||||
<preferred-size width="150" height="-1" />
|
||||
</default-constraints>
|
||||
</item>
|
||||
<item class="javax.swing.JPasswordField" icon="/com/intellij/uiDesigner/icons/passwordField.svg" removable="false" auto-create-binding="true" can-attach-label="true">
|
||||
<default-constraints vsize-policy="0" hsize-policy="6" anchor="8" fill="1">
|
||||
<preferred-size width="150" height="-1" />
|
||||
</default-constraints>
|
||||
</item>
|
||||
<item class="javax.swing.JFormattedTextField" icon="/com/intellij/uiDesigner/icons/formattedTextField.svg" removable="false" auto-create-binding="true" can-attach-label="true">
|
||||
<default-constraints vsize-policy="0" hsize-policy="6" anchor="8" fill="1">
|
||||
<preferred-size width="150" height="-1" />
|
||||
</default-constraints>
|
||||
</item>
|
||||
<item class="javax.swing.JTextArea" icon="/com/intellij/uiDesigner/icons/textArea.svg" removable="false" auto-create-binding="true" can-attach-label="true">
|
||||
<default-constraints vsize-policy="6" hsize-policy="6" anchor="0" fill="3">
|
||||
<preferred-size width="150" height="50" />
|
||||
</default-constraints>
|
||||
</item>
|
||||
<item class="javax.swing.JTextPane" icon="/com/intellij/uiDesigner/icons/textPane.svg" removable="false" auto-create-binding="true" can-attach-label="true">
|
||||
<default-constraints vsize-policy="6" hsize-policy="6" anchor="0" fill="3">
|
||||
<preferred-size width="150" height="50" />
|
||||
</default-constraints>
|
||||
</item>
|
||||
<item class="javax.swing.JEditorPane" icon="/com/intellij/uiDesigner/icons/editorPane.svg" removable="false" auto-create-binding="true" can-attach-label="true">
|
||||
<default-constraints vsize-policy="6" hsize-policy="6" anchor="0" fill="3">
|
||||
<preferred-size width="150" height="50" />
|
||||
</default-constraints>
|
||||
</item>
|
||||
<item class="javax.swing.JComboBox" icon="/com/intellij/uiDesigner/icons/comboBox.svg" removable="false" auto-create-binding="true" can-attach-label="true">
|
||||
<default-constraints vsize-policy="0" hsize-policy="2" anchor="8" fill="1" />
|
||||
</item>
|
||||
<item class="javax.swing.JTable" icon="/com/intellij/uiDesigner/icons/table.svg" removable="false" auto-create-binding="true" can-attach-label="false">
|
||||
<default-constraints vsize-policy="6" hsize-policy="6" anchor="0" fill="3">
|
||||
<preferred-size width="150" height="50" />
|
||||
</default-constraints>
|
||||
</item>
|
||||
<item class="javax.swing.JList" icon="/com/intellij/uiDesigner/icons/list.svg" removable="false" auto-create-binding="true" can-attach-label="false">
|
||||
<default-constraints vsize-policy="6" hsize-policy="2" anchor="0" fill="3">
|
||||
<preferred-size width="150" height="50" />
|
||||
</default-constraints>
|
||||
</item>
|
||||
<item class="javax.swing.JTree" icon="/com/intellij/uiDesigner/icons/tree.svg" removable="false" auto-create-binding="true" can-attach-label="false">
|
||||
<default-constraints vsize-policy="6" hsize-policy="6" anchor="0" fill="3">
|
||||
<preferred-size width="150" height="50" />
|
||||
</default-constraints>
|
||||
</item>
|
||||
<item class="javax.swing.JTabbedPane" icon="/com/intellij/uiDesigner/icons/tabbedPane.svg" removable="false" auto-create-binding="true" can-attach-label="false">
|
||||
<default-constraints vsize-policy="3" hsize-policy="3" anchor="0" fill="3">
|
||||
<preferred-size width="200" height="200" />
|
||||
</default-constraints>
|
||||
</item>
|
||||
<item class="javax.swing.JSplitPane" icon="/com/intellij/uiDesigner/icons/splitPane.svg" removable="false" auto-create-binding="false" can-attach-label="false">
|
||||
<default-constraints vsize-policy="3" hsize-policy="3" anchor="0" fill="3">
|
||||
<preferred-size width="200" height="200" />
|
||||
</default-constraints>
|
||||
</item>
|
||||
<item class="javax.swing.JSpinner" icon="/com/intellij/uiDesigner/icons/spinner.svg" removable="false" auto-create-binding="true" can-attach-label="true">
|
||||
<default-constraints vsize-policy="0" hsize-policy="6" anchor="8" fill="1" />
|
||||
</item>
|
||||
<item class="javax.swing.JSlider" icon="/com/intellij/uiDesigner/icons/slider.svg" removable="false" auto-create-binding="true" can-attach-label="false">
|
||||
<default-constraints vsize-policy="0" hsize-policy="6" anchor="8" fill="1" />
|
||||
</item>
|
||||
<item class="javax.swing.JSeparator" icon="/com/intellij/uiDesigner/icons/separator.svg" removable="false" auto-create-binding="false" can-attach-label="false">
|
||||
<default-constraints vsize-policy="6" hsize-policy="6" anchor="0" fill="3" />
|
||||
</item>
|
||||
<item class="javax.swing.JProgressBar" icon="/com/intellij/uiDesigner/icons/progressbar.svg" removable="false" auto-create-binding="true" can-attach-label="false">
|
||||
<default-constraints vsize-policy="0" hsize-policy="6" anchor="0" fill="1" />
|
||||
</item>
|
||||
<item class="javax.swing.JToolBar" icon="/com/intellij/uiDesigner/icons/toolbar.svg" removable="false" auto-create-binding="false" can-attach-label="false">
|
||||
<default-constraints vsize-policy="0" hsize-policy="6" anchor="0" fill="1">
|
||||
<preferred-size width="-1" height="20" />
|
||||
</default-constraints>
|
||||
</item>
|
||||
<item class="javax.swing.JToolBar$Separator" icon="/com/intellij/uiDesigner/icons/toolbarSeparator.svg" removable="false" auto-create-binding="false" can-attach-label="false">
|
||||
<default-constraints vsize-policy="0" hsize-policy="0" anchor="0" fill="1" />
|
||||
</item>
|
||||
<item class="javax.swing.JScrollBar" icon="/com/intellij/uiDesigner/icons/scrollbar.svg" removable="false" auto-create-binding="true" can-attach-label="false">
|
||||
<default-constraints vsize-policy="6" hsize-policy="0" anchor="0" fill="2" />
|
||||
</item>
|
||||
</group>
|
||||
</component>
|
||||
</project>
|
|
@ -0,0 +1,6 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project version="4">
|
||||
<component name="VcsDirectoryMappings">
|
||||
<mapping directory="" vcs="Git" />
|
||||
</component>
|
||||
</project>
|
|
@ -15,6 +15,7 @@ spring:
|
|||
discovery:
|
||||
# 服务注册地址
|
||||
server-addr: 122.152.215.207:8848
|
||||
namespace: wdwdwd
|
||||
config:
|
||||
# 配置中心地址
|
||||
server-addr: 122.152.215.207:8848
|
||||
|
@ -23,4 +24,4 @@ spring:
|
|||
# 共享配置
|
||||
shared-configs:
|
||||
- application-${spring.profiles.active}.${spring.cloud.nacos.config.file-extension}
|
||||
namespace: 123456789
|
||||
namespace: wdwdwd
|
||||
|
|
|
@ -15,6 +15,7 @@ spring:
|
|||
discovery:
|
||||
# 服务注册地址
|
||||
server-addr: 122.152.215.207:8848
|
||||
namespace: wdwdwd
|
||||
config:
|
||||
# 配置中心地址
|
||||
server-addr: 122.152.215.207:8848
|
||||
|
@ -23,4 +24,4 @@ spring:
|
|||
# 共享配置
|
||||
shared-configs:
|
||||
- application-${spring.profiles.active}.${spring.cloud.nacos.config.file-extension}
|
||||
namespace: 123456789
|
||||
namespace: wdwdwd
|
||||
|
|
|
@ -12,7 +12,7 @@ import com.boot.common.security.interceptor.HeaderInterceptor;
|
|||
public class WebMvcConfig implements WebMvcConfigurer
|
||||
{
|
||||
/** 不需要拦截地址 */
|
||||
public static final String[] excludeUrls = { "/login", "/logout", "/refresh" };
|
||||
public static final String[] excludeUrls = { "/login", "/logout", "/refresh","/pay","/notify"};
|
||||
|
||||
@Override
|
||||
public void addInterceptors(InterceptorRegistry registry)
|
||||
|
|
Binary file not shown.
|
@ -15,6 +15,7 @@ spring:
|
|||
discovery:
|
||||
# 服务注册地址
|
||||
server-addr: 122.152.215.207:8848
|
||||
namespace: wdwdwd
|
||||
config:
|
||||
# 配置中心地址
|
||||
server-addr: 122.152.215.207:8848
|
||||
|
@ -23,7 +24,7 @@ spring:
|
|||
# 共享配置
|
||||
shared-configs:
|
||||
- application-${spring.profiles.active}.${spring.cloud.nacos.config.file-extension}
|
||||
namespace: 123456789
|
||||
namespace: wdwdwd
|
||||
sentinel:
|
||||
# 取消控制台懒加载
|
||||
eager: true
|
||||
|
|
|
@ -15,6 +15,7 @@ spring:
|
|||
discovery:
|
||||
# 服务注册地址
|
||||
server-addr: 122.152.215.207:8848
|
||||
namespace: wdwdwd
|
||||
config:
|
||||
# 配置中心地址
|
||||
server-addr: 122.152.215.207:8848
|
||||
|
@ -23,7 +24,7 @@ spring:
|
|||
# 共享配置
|
||||
shared-configs:
|
||||
- application-${spring.profiles.active}.${spring.cloud.nacos.config.file-extension}
|
||||
namespace: 123456789
|
||||
namespace: wdwdwd
|
||||
sentinel:
|
||||
# 取消控制台懒加载
|
||||
eager: true
|
||||
|
|
|
@ -15,6 +15,7 @@ spring:
|
|||
discovery:
|
||||
# 服务注册地址
|
||||
server-addr: 122.152.215.207:8848
|
||||
namespace: wdwdwd
|
||||
config:
|
||||
# 配置中心地址
|
||||
server-addr: 122.152.215.207:8848
|
||||
|
@ -23,4 +24,4 @@ spring:
|
|||
# 共享配置
|
||||
shared-configs:
|
||||
- application-${spring.profiles.active}.${spring.cloud.nacos.config.file-extension}
|
||||
namespace: 123456789
|
||||
namespace: wdwdwd
|
||||
|
|
|
@ -15,6 +15,7 @@ spring:
|
|||
discovery:
|
||||
# 服务注册地址
|
||||
server-addr: 122.152.215.207:8848
|
||||
namespace: wdwdwd
|
||||
config:
|
||||
# 配置中心地址
|
||||
server-addr: 122.152.215.207:8848
|
||||
|
@ -23,4 +24,4 @@ spring:
|
|||
# 共享配置
|
||||
shared-configs:
|
||||
- application-${spring.profiles.active}.${spring.cloud.nacos.config.file-extension}
|
||||
namespace: 123456789
|
||||
namespace: wdwdwd
|
||||
|
|
|
@ -15,6 +15,7 @@ spring:
|
|||
discovery:
|
||||
# 服务注册地址
|
||||
server-addr: 122.152.215.207:8848
|
||||
namespace: wdwdwd
|
||||
config:
|
||||
# 配置中心地址
|
||||
server-addr: 122.152.215.207:8848
|
||||
|
@ -23,4 +24,4 @@ spring:
|
|||
# 共享配置
|
||||
shared-configs:
|
||||
- application-${spring.profiles.active}.${spring.cloud.nacos.config.file-extension}
|
||||
namespace: 123456789
|
||||
namespace: wdwdwd
|
||||
|
|
|
@ -15,6 +15,7 @@ spring:
|
|||
discovery:
|
||||
# 服务注册地址
|
||||
server-addr: 122.152.215.207:8848
|
||||
namespace: wdwdwd
|
||||
config:
|
||||
# 配置中心地址
|
||||
server-addr: 122.152.215.207:8848
|
||||
|
@ -23,4 +24,4 @@ spring:
|
|||
# 共享配置
|
||||
shared-configs:
|
||||
- application-${spring.profiles.active}.${spring.cloud.nacos.config.file-extension}
|
||||
namespace: 123456789
|
||||
namespace: wdwdwd
|
||||
|
|
|
@ -15,6 +15,7 @@ spring:
|
|||
discovery:
|
||||
# 服务注册地址
|
||||
server-addr: 122.152.215.207:8848
|
||||
namespace: wdwdwd
|
||||
config:
|
||||
# 配置中心地址
|
||||
server-addr: 122.152.215.207:8848
|
||||
|
@ -23,4 +24,4 @@ spring:
|
|||
# 共享配置
|
||||
shared-configs:
|
||||
- application-${spring.profiles.active}.${spring.cloud.nacos.config.file-extension}
|
||||
namespace: 123456789
|
||||
namespace: wdwdwd
|
||||
|
|
|
@ -15,6 +15,7 @@ spring:
|
|||
discovery:
|
||||
# 服务注册地址
|
||||
server-addr: 122.152.215.207:8848
|
||||
namespace: wdwdwd
|
||||
config:
|
||||
# 配置中心地址
|
||||
server-addr: 122.152.215.207:8848
|
||||
|
@ -23,4 +24,4 @@ spring:
|
|||
# 共享配置
|
||||
shared-configs:
|
||||
- application-${spring.profiles.active}.${spring.cloud.nacos.config.file-extension}
|
||||
namespace: 123456789
|
||||
namespace: wdwdwd
|
||||
|
|
|
@ -15,6 +15,7 @@ spring:
|
|||
discovery:
|
||||
# 服务注册地址
|
||||
server-addr: 122.152.215.207:8848
|
||||
namespace: wdwdwd
|
||||
config:
|
||||
# 配置中心地址
|
||||
server-addr: 122.152.215.207:8848
|
||||
|
@ -23,4 +24,4 @@ spring:
|
|||
# 共享配置
|
||||
shared-configs:
|
||||
- application-${spring.profiles.active}.${spring.cloud.nacos.config.file-extension}
|
||||
namespace: 123456789
|
||||
namespace: wdwdwd
|
||||
|
|
|
@ -15,6 +15,7 @@ spring:
|
|||
discovery:
|
||||
# 服务注册地址
|
||||
server-addr: 122.152.215.207:8848
|
||||
namespace: wdwdwd
|
||||
config:
|
||||
# 配置中心地址
|
||||
server-addr: 122.152.215.207:8848
|
||||
|
@ -23,4 +24,4 @@ spring:
|
|||
# 共享配置
|
||||
shared-configs:
|
||||
- application-${spring.profiles.active}.${spring.cloud.nacos.config.file-extension}
|
||||
namespace: 123456789
|
||||
namespace: wdwdwd
|
||||
|
|
|
@ -1,40 +0,0 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project xmlns="http://maven.apache.org/POM/4.0.0"
|
||||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
<parent>
|
||||
<groupId>com.boot</groupId>
|
||||
<artifactId>boot</artifactId>
|
||||
<version>3.6.3</version>
|
||||
</parent>
|
||||
|
||||
<groupId>com.bwie</groupId>
|
||||
<artifactId>boot-mq</artifactId>
|
||||
|
||||
<properties>
|
||||
<maven.compiler.source>17</maven.compiler.source>
|
||||
<maven.compiler.target>17</maven.compiler.target>
|
||||
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
||||
</properties>
|
||||
|
||||
<dependencies>
|
||||
<dependency>
|
||||
<groupId>com.boot</groupId>
|
||||
<artifactId>boot-common-core</artifactId>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.springframework.boot</groupId>
|
||||
<artifactId>spring-boot-starter-web</artifactId>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.springframework.boot</groupId>
|
||||
<artifactId>spring-boot-starter-amqp</artifactId>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>com.fasterxml.jackson.dataformat</groupId>
|
||||
<artifactId>jackson-dataformat-xml</artifactId>
|
||||
</dependency>
|
||||
</dependencies>
|
||||
|
||||
</project>
|
|
@ -15,6 +15,7 @@ spring:
|
|||
discovery:
|
||||
# 服务注册地址
|
||||
server-addr: 122.152.215.207:8848
|
||||
namespace: wdwdwd
|
||||
config:
|
||||
# 配置中心地址
|
||||
server-addr: 122.152.215.207:8848
|
||||
|
@ -23,4 +24,4 @@ spring:
|
|||
# 共享配置
|
||||
shared-configs:
|
||||
- application-${spring.profiles.active}.${spring.cloud.nacos.config.file-extension}
|
||||
namespace: 123456789
|
||||
namespace: wdwdwd
|
||||
|
|
|
@ -15,6 +15,7 @@ spring:
|
|||
discovery:
|
||||
# 服务注册地址
|
||||
server-addr: 122.152.215.207:8848
|
||||
namespace: wdwdwd
|
||||
config:
|
||||
# 配置中心地址
|
||||
server-addr: 122.152.215.207:8848
|
||||
|
@ -23,4 +24,4 @@ spring:
|
|||
# 共享配置
|
||||
shared-configs:
|
||||
- application-${spring.profiles.active}.${spring.cloud.nacos.config.file-extension}
|
||||
namespace: 123456789
|
||||
namespace: wdwdwd
|
||||
|
|
|
@ -0,0 +1,33 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project xmlns="http://maven.apache.org/POM/4.0.0"
|
||||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
<parent>
|
||||
<groupId>com.bawei</groupId>
|
||||
<artifactId>car-charging</artifactId>
|
||||
<version>3.6.3</version>
|
||||
</parent>
|
||||
|
||||
<artifactId>car-charging-common</artifactId>
|
||||
|
||||
<properties>
|
||||
<maven.compiler.source>17</maven.compiler.source>
|
||||
<maven.compiler.target>17</maven.compiler.target>
|
||||
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
||||
</properties>
|
||||
|
||||
|
||||
<dependencies>
|
||||
<!-- 系统服务 公共依赖-->
|
||||
<dependency>
|
||||
<groupId>com.boot</groupId>
|
||||
<artifactId>boot-common-core</artifactId>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.projectlombok</groupId>
|
||||
<artifactId>lombok</artifactId>
|
||||
</dependency>
|
||||
</dependencies>
|
||||
|
||||
</project>
|
|
@ -0,0 +1,90 @@
|
|||
package com.car.charging.common.domain;
|
||||
|
||||
import java.util.Date;
|
||||
|
||||
/**
|
||||
* @ClassName Channel
|
||||
* @Description 描述
|
||||
* @Author Di.Wu
|
||||
* @Date 2024/2/26 9:42
|
||||
*/
|
||||
public class Channel {
|
||||
|
||||
private Integer channelId;
|
||||
private String channelName;
|
||||
private Date createTime;
|
||||
private Integer createUser;
|
||||
private Date updTime;
|
||||
private Integer updUser;
|
||||
private Integer isDel;
|
||||
|
||||
|
||||
public Channel() {
|
||||
}
|
||||
|
||||
public Channel(Integer channelId, String channelName, Date createTime, Integer createUser, Date updTime, Integer updUser, Integer isDel) {
|
||||
this.channelId = channelId;
|
||||
this.channelName = channelName;
|
||||
this.createTime = createTime;
|
||||
this.createUser = createUser;
|
||||
this.updTime = updTime;
|
||||
this.updUser = updUser;
|
||||
this.isDel = isDel;
|
||||
}
|
||||
|
||||
public Integer getChannelId() {
|
||||
return channelId;
|
||||
}
|
||||
|
||||
public void setChannelId(Integer channelId) {
|
||||
this.channelId = channelId;
|
||||
}
|
||||
|
||||
public String getChannelName() {
|
||||
return channelName;
|
||||
}
|
||||
|
||||
public void setChannelName(String channelName) {
|
||||
this.channelName = channelName;
|
||||
}
|
||||
|
||||
public Date getCreateTime() {
|
||||
return createTime;
|
||||
}
|
||||
|
||||
public void setCreateTime(Date createTime) {
|
||||
this.createTime = createTime;
|
||||
}
|
||||
|
||||
public Integer getCreateUser() {
|
||||
return createUser;
|
||||
}
|
||||
|
||||
public void setCreateUser(Integer createUser) {
|
||||
this.createUser = createUser;
|
||||
}
|
||||
|
||||
public Date getUpdTime() {
|
||||
return updTime;
|
||||
}
|
||||
|
||||
public void setUpdTime(Date updTime) {
|
||||
this.updTime = updTime;
|
||||
}
|
||||
|
||||
public Integer getUpdUser() {
|
||||
return updUser;
|
||||
}
|
||||
|
||||
public void setUpdUser(Integer updUser) {
|
||||
this.updUser = updUser;
|
||||
}
|
||||
|
||||
public Integer getIsDel() {
|
||||
return isDel;
|
||||
}
|
||||
|
||||
public void setIsDel(Integer isDel) {
|
||||
this.isDel = isDel;
|
||||
}
|
||||
}
|
|
@ -0,0 +1,40 @@
|
|||
package com.car.charging.common.domain;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.Data;
|
||||
import lombok.NoArgsConstructor;
|
||||
import org.springframework.format.annotation.DateTimeFormat;
|
||||
|
||||
import java.util.Date;
|
||||
|
||||
/**
|
||||
* @ClassName ChargingMiddleTable
|
||||
* @Description 描述
|
||||
* @Author Di.Wu
|
||||
* @Date 2024/2/26 14:02
|
||||
*/
|
||||
|
||||
@Data
|
||||
@AllArgsConstructor
|
||||
@NoArgsConstructor
|
||||
public class ChargingMiddleTable {
|
||||
private Integer id;
|
||||
private Integer cityId;
|
||||
private Integer channelId;
|
||||
private Integer serverTypeId;
|
||||
private Integer rankId;
|
||||
private Integer estimatedId;
|
||||
@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
|
||||
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
|
||||
private Date updateTime;
|
||||
private String userName;
|
||||
private Integer availableState;
|
||||
@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
|
||||
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
|
||||
private Date createTime;
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
|
@ -0,0 +1,23 @@
|
|||
package com.car.charging.common.domain;
|
||||
|
||||
import lombok.Data;
|
||||
|
||||
/**
|
||||
* @ClassName City 城市 类
|
||||
* @Version 1.0
|
||||
* @Description 描述
|
||||
* @Author Di.Wu
|
||||
* @Date 2024/2/26 9:31
|
||||
*/
|
||||
@Data
|
||||
public class City {
|
||||
|
||||
|
||||
private Integer cityId;
|
||||
|
||||
private String cityName;
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
|
@ -0,0 +1,40 @@
|
|||
package com.car.charging.common.domain;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||
import lombok.Data;
|
||||
import org.springframework.format.annotation.DateTimeFormat;
|
||||
|
||||
import java.math.BigDecimal;
|
||||
import java.util.Date;
|
||||
|
||||
/**
|
||||
* @ClassName EstimatedOrder
|
||||
* @Description 描述
|
||||
* @Author Di.Wu
|
||||
* @Date 2024/2/27 19:56
|
||||
*/
|
||||
@Data
|
||||
public class EstimatedOrder {
|
||||
|
||||
private Integer id;
|
||||
private Integer cityId;
|
||||
private Integer serverTypeId;
|
||||
private Integer channelId;
|
||||
private Integer rankId;
|
||||
private Integer kilometres;
|
||||
private Integer serverTime;
|
||||
private BigDecimal mealPrice;
|
||||
private BigDecimal basicsPrice;
|
||||
private Integer nightId;
|
||||
private String sectionId;
|
||||
@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
|
||||
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
|
||||
private Date createTime;
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
|
@ -0,0 +1,26 @@
|
|||
package com.car.charging.common.domain;
|
||||
|
||||
import lombok.Data;
|
||||
|
||||
import java.math.BigDecimal;
|
||||
|
||||
/**
|
||||
* @ClassName NightServer
|
||||
* @Description 描述
|
||||
* @Author Di.Wu
|
||||
* @Date 2024/2/27 19:53
|
||||
*/
|
||||
@Data
|
||||
public class NightServer {
|
||||
|
||||
|
||||
private Integer id;
|
||||
private Double nightServerMileagePrice;
|
||||
private BigDecimal nightServerTimePrice;
|
||||
private BigDecimal mileagePrice;
|
||||
private BigDecimal timePrice;
|
||||
private Double longWayMileage;
|
||||
private BigDecimal longWayPrice;
|
||||
|
||||
|
||||
}
|
|
@ -0,0 +1,36 @@
|
|||
package com.car.charging.common.domain;
|
||||
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.Data;
|
||||
import lombok.NoArgsConstructor;
|
||||
|
||||
import java.util.Date;
|
||||
|
||||
/**
|
||||
* @ClassName Rank
|
||||
* @Description 描述
|
||||
* @Author Di.Wu
|
||||
* @Date 2024/2/26 9:44
|
||||
*/
|
||||
@Data
|
||||
@NoArgsConstructor
|
||||
@AllArgsConstructor
|
||||
|
||||
|
||||
|
||||
|
||||
public class Rank {
|
||||
|
||||
private Integer rankId;
|
||||
private String rankName;
|
||||
private Date createTime;
|
||||
private Integer createUser;
|
||||
private Date updTime;
|
||||
private Integer updUser;
|
||||
private Integer isDel;
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
|
@ -0,0 +1,28 @@
|
|||
package com.car.charging.common.domain;
|
||||
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.Data;
|
||||
import lombok.NoArgsConstructor;
|
||||
|
||||
import java.math.BigDecimal;
|
||||
|
||||
/**
|
||||
* @ClassName Section
|
||||
* @Description 描述
|
||||
* @Author Di.Wu
|
||||
* @Date 2024/2/28 22:04
|
||||
*/
|
||||
@Data
|
||||
@NoArgsConstructor
|
||||
@AllArgsConstructor
|
||||
public class Section {
|
||||
|
||||
|
||||
private Integer id;
|
||||
private Integer startTime;
|
||||
private Integer endTime;
|
||||
private BigDecimal kilometrePrice;
|
||||
private BigDecimal timePrice;
|
||||
|
||||
|
||||
}
|
|
@ -0,0 +1,82 @@
|
|||
package com.car.charging.common.domain.req;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.Data;
|
||||
import lombok.NoArgsConstructor;
|
||||
import org.springframework.format.annotation.DateTimeFormat;
|
||||
import com.car.charging.common.domain.Section;
|
||||
import java.math.BigDecimal;
|
||||
import java.util.Date;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* @ClassName AddChannel
|
||||
* @Description 描述
|
||||
* @Author Di.Wu
|
||||
* @Date 2024/2/28 15:36
|
||||
*/
|
||||
@Data
|
||||
@NoArgsConstructor
|
||||
@AllArgsConstructor
|
||||
public class AddChannel {
|
||||
|
||||
private Integer id;
|
||||
|
||||
private Integer cityId;
|
||||
|
||||
private Integer channelId;
|
||||
|
||||
private Integer serverTypeId;
|
||||
|
||||
private Integer rankId;
|
||||
|
||||
@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
|
||||
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
|
||||
private Date createTime;
|
||||
|
||||
// 套餐id
|
||||
private Integer estimatedId;
|
||||
|
||||
//夜间服务id
|
||||
private Integer nightId;
|
||||
|
||||
|
||||
private BigDecimal mealPrice;
|
||||
|
||||
private BigDecimal basicsPrice;
|
||||
|
||||
private Integer kilometres;
|
||||
|
||||
|
||||
|
||||
private Integer serverTime;
|
||||
|
||||
private Integer nightServerTime;
|
||||
|
||||
|
||||
|
||||
private BigDecimal mileagePrice;
|
||||
|
||||
private BigDecimal timePrice;
|
||||
|
||||
private Double longWayMileage;
|
||||
|
||||
private BigDecimal longWayPrice;
|
||||
|
||||
private BigDecimal nightServerMileagePrice;
|
||||
|
||||
private BigDecimal nightServerTimePrice;
|
||||
|
||||
|
||||
private BigDecimal kilometrePrice;
|
||||
|
||||
|
||||
private Integer startTime;
|
||||
|
||||
private Integer endTime;
|
||||
|
||||
|
||||
// 分段计费规则List集合
|
||||
private List<Section> sectionList;
|
||||
}
|
|
@ -0,0 +1,50 @@
|
|||
package com.car.charging.common.domain.req;
|
||||
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.Data;
|
||||
import lombok.NoArgsConstructor;
|
||||
|
||||
/**
|
||||
* @ClassName ChargingMiddleTableReq
|
||||
* @Description 描述
|
||||
* @Author Di.Wu
|
||||
* @Date 2024/2/26 14:40
|
||||
*/
|
||||
@Data
|
||||
@AllArgsConstructor
|
||||
@NoArgsConstructor
|
||||
public class ChargingMiddleTableReq {
|
||||
|
||||
private Integer pageNum =1;
|
||||
|
||||
private Integer pageSize =3;
|
||||
|
||||
/**
|
||||
* 城市id
|
||||
*/
|
||||
private Integer cityId;
|
||||
/**
|
||||
* 渠道id
|
||||
*/
|
||||
private Integer channelId;
|
||||
/**
|
||||
* 服务类型id
|
||||
*/
|
||||
private Integer serverTypeId;
|
||||
/**
|
||||
* 所属级别id
|
||||
*/
|
||||
private Integer rankId;
|
||||
|
||||
|
||||
/**
|
||||
* 状态
|
||||
*/
|
||||
private Integer availableState;
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
|
@ -0,0 +1,39 @@
|
|||
package com.car.charging.common.domain.req;
|
||||
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.Data;
|
||||
import lombok.NoArgsConstructor;
|
||||
|
||||
/**
|
||||
* @ClassName charginListAdd
|
||||
* @Description 描述
|
||||
* @Author Di.Wu
|
||||
* @Date 2024/2/28 9:44
|
||||
*/
|
||||
@Data
|
||||
@NoArgsConstructor
|
||||
@AllArgsConstructor
|
||||
public class charginListAdd {
|
||||
|
||||
/**
|
||||
* 城市id
|
||||
*/
|
||||
private Integer cityId;
|
||||
/**
|
||||
* 渠道id
|
||||
*/
|
||||
private Integer channelId;
|
||||
/**
|
||||
* 服务类型id
|
||||
*/
|
||||
private Integer serverTypeId;
|
||||
/**
|
||||
* 所属级别id
|
||||
*/
|
||||
private Integer rankId;
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
|
@ -0,0 +1,34 @@
|
|||
package com.car.charging.common.domain;
|
||||
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.Data;
|
||||
import lombok.NoArgsConstructor;
|
||||
|
||||
import java.util.Date;
|
||||
|
||||
/**
|
||||
* @ClassName serverType
|
||||
* @Description 描述
|
||||
* @Author Di.Wu
|
||||
* @Date 2024/2/26 9:47
|
||||
*/
|
||||
@Data
|
||||
@NoArgsConstructor
|
||||
@AllArgsConstructor
|
||||
public class serverType {
|
||||
|
||||
|
||||
private Integer serverTypeId;
|
||||
private String typeName;
|
||||
private Date createTime;
|
||||
private Integer createUser;
|
||||
private Date updTime;
|
||||
private Integer updUser;
|
||||
private Integer isDel;
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
|
@ -0,0 +1,57 @@
|
|||
package com.car.charging.common.domain.vo;
|
||||
|
||||
import com.car.charging.common.domain.*;
|
||||
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.Data;
|
||||
import lombok.NoArgsConstructor;
|
||||
import org.springframework.format.annotation.DateTimeFormat;
|
||||
|
||||
import java.math.BigDecimal;
|
||||
import java.util.Date;
|
||||
|
||||
/**
|
||||
* @ClassName ChargingMiddleTableVo
|
||||
* @Description 描述
|
||||
* @Author Di.Wu
|
||||
* @Date 2024/2/26 14:37
|
||||
*/
|
||||
@Data
|
||||
@AllArgsConstructor
|
||||
@NoArgsConstructor
|
||||
public class ChargingMiddleTableVo {
|
||||
|
||||
|
||||
private Integer id;
|
||||
private Integer cityId;
|
||||
private Integer channelId;
|
||||
private Integer serverTypeId;
|
||||
private Integer rankId;
|
||||
@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
|
||||
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
|
||||
private Date updateTime;
|
||||
private String userName;
|
||||
private Integer availableState;
|
||||
@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
|
||||
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
|
||||
private Date createTime;
|
||||
|
||||
private Channel channel;
|
||||
|
||||
private City city;
|
||||
|
||||
private Rank rank;
|
||||
|
||||
private serverType type;
|
||||
|
||||
private EstimatedOrder estimatedOrder;
|
||||
|
||||
private NightServer nightServer;
|
||||
|
||||
private Section section;
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
|
@ -0,0 +1,35 @@
|
|||
package com.car.charging.common.result;
|
||||
|
||||
import com.boot.common.core.domain.Result;
|
||||
import lombok.Data;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* @author DongZl
|
||||
* @description: 列表返回结果集
|
||||
*/
|
||||
@Data
|
||||
public class PageResult<T> implements Serializable {
|
||||
/**
|
||||
* 总条数
|
||||
*/
|
||||
private long total;
|
||||
/**
|
||||
* 结果集合
|
||||
*/
|
||||
private List<T> list;
|
||||
public PageResult() {
|
||||
}
|
||||
public PageResult(long total, List<T> list) {
|
||||
this.total = total;
|
||||
this.list = list;
|
||||
}
|
||||
public static <T> PageResult<T> toPageResult(long total, List<T> list){
|
||||
return new PageResult(total , list);
|
||||
}
|
||||
public static <T> Result<PageResult<T>> toResult(long total, List<T> list){
|
||||
return Result.ok(PageResult.toPageResult(total,list));
|
||||
}
|
||||
}
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
|
@ -0,0 +1,30 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project xmlns="http://maven.apache.org/POM/4.0.0"
|
||||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
<parent>
|
||||
<groupId>com.bawei</groupId>
|
||||
<artifactId>car-charging</artifactId>
|
||||
<version>3.6.3</version>
|
||||
</parent>
|
||||
|
||||
<artifactId>car-charging-remote</artifactId>
|
||||
|
||||
<properties>
|
||||
<maven.compiler.source>17</maven.compiler.source>
|
||||
<maven.compiler.target>17</maven.compiler.target>
|
||||
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
||||
</properties>
|
||||
|
||||
|
||||
<dependencies>
|
||||
<dependency>
|
||||
<groupId>com.bawei</groupId>
|
||||
<artifactId>car-charging-common</artifactId>
|
||||
<version>3.6.3</version>
|
||||
</dependency>
|
||||
</dependencies>
|
||||
|
||||
|
||||
</project>
|
|
@ -0,0 +1,120 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project xmlns="http://maven.apache.org/POM/4.0.0"
|
||||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
<parent>
|
||||
<groupId>com.bawei</groupId>
|
||||
<artifactId>car-charging</artifactId>
|
||||
<version>3.6.3</version>
|
||||
</parent>
|
||||
|
||||
<artifactId>car-charging-server</artifactId>
|
||||
|
||||
<properties>
|
||||
<maven.compiler.source>17</maven.compiler.source>
|
||||
<maven.compiler.target>17</maven.compiler.target>
|
||||
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
||||
</properties>
|
||||
|
||||
<dependencies>
|
||||
|
||||
<!-- SpringCloud Alibaba Nacos -->
|
||||
<dependency>
|
||||
<groupId>com.alibaba.cloud</groupId>
|
||||
<artifactId>spring-cloud-starter-alibaba-nacos-discovery</artifactId>
|
||||
</dependency>
|
||||
|
||||
<!-- SpringCloud Alibaba Nacos Config -->
|
||||
<dependency>
|
||||
<groupId>com.alibaba.cloud</groupId>
|
||||
<artifactId>spring-cloud-starter-alibaba-nacos-config</artifactId>
|
||||
</dependency>
|
||||
|
||||
<!-- SpringCloud Alibaba Sentinel -->
|
||||
<dependency>
|
||||
<groupId>com.alibaba.cloud</groupId>
|
||||
<artifactId>spring-cloud-starter-alibaba-sentinel</artifactId>
|
||||
</dependency>
|
||||
|
||||
<!-- SpringBoot Actuator -->
|
||||
<dependency>
|
||||
<groupId>org.springframework.boot</groupId>
|
||||
<artifactId>spring-boot-starter-actuator</artifactId>
|
||||
</dependency>
|
||||
|
||||
<!-- Swagger UI -->
|
||||
<dependency>
|
||||
<groupId>io.springfox</groupId>
|
||||
<artifactId>springfox-swagger-ui</artifactId>
|
||||
<version>${swagger.fox.version}</version>
|
||||
</dependency>
|
||||
|
||||
<!-- Mysql Connector -->
|
||||
<dependency>
|
||||
<groupId>com.mysql</groupId>
|
||||
<artifactId>mysql-connector-j</artifactId>
|
||||
</dependency>
|
||||
|
||||
<!-- RuoYi Common DataSource -->
|
||||
<dependency>
|
||||
<groupId>com.boot</groupId>
|
||||
<artifactId>boot-common-datasource</artifactId>
|
||||
</dependency>
|
||||
|
||||
<!-- RuoYi Common DataScope -->
|
||||
<dependency>
|
||||
<groupId>com.boot</groupId>
|
||||
<artifactId>boot-common-datascope</artifactId>
|
||||
</dependency>
|
||||
|
||||
<!-- RuoYi Common Log -->
|
||||
<dependency>
|
||||
<groupId>com.boot</groupId>
|
||||
<artifactId>boot-common-log</artifactId>
|
||||
</dependency>
|
||||
|
||||
<!-- RuoYi Common Swagger -->
|
||||
<dependency>
|
||||
<groupId>com.boot</groupId>
|
||||
<artifactId>boot-common-swagger</artifactId>
|
||||
</dependency>
|
||||
|
||||
<!-- 系统服务的公共依赖-->
|
||||
<dependency>
|
||||
<groupId>com.boot</groupId>
|
||||
<artifactId>boot-system-common</artifactId>
|
||||
</dependency>
|
||||
|
||||
<dependency>
|
||||
<groupId>com.boot</groupId>
|
||||
<artifactId>boot-file-remote</artifactId>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>com.bawei</groupId>
|
||||
<artifactId>car-charging-common</artifactId>
|
||||
<version>3.6.3</version>
|
||||
</dependency>
|
||||
|
||||
</dependencies>
|
||||
|
||||
<build>
|
||||
<finalName>${project.artifactId}</finalName>
|
||||
<plugins>
|
||||
<plugin>
|
||||
<groupId>org.springframework.boot</groupId>
|
||||
<artifactId>spring-boot-maven-plugin</artifactId>
|
||||
<executions>
|
||||
<execution>
|
||||
<goals>
|
||||
<goal>repackage</goal>
|
||||
</goals>
|
||||
</execution>
|
||||
</executions>
|
||||
</plugin>
|
||||
</plugins>
|
||||
</build>
|
||||
|
||||
|
||||
|
||||
</project>
|
|
@ -0,0 +1,36 @@
|
|||
package com.car.charging;
|
||||
|
||||
import com.boot.common.security.annotation.EnableCustomConfig;
|
||||
import com.boot.common.security.annotation.EnableRyFeignClients;
|
||||
import com.boot.common.swagger.annotation.EnableCustomSwagger2;
|
||||
import org.mybatis.spring.annotation.MapperScan;
|
||||
import org.springframework.boot.SpringApplication;
|
||||
import org.springframework.boot.autoconfigure.SpringBootApplication;
|
||||
|
||||
/**
|
||||
* 系统模块
|
||||
*
|
||||
* @author boot
|
||||
*/
|
||||
@EnableCustomConfig
|
||||
@EnableCustomSwagger2
|
||||
@EnableRyFeignClients
|
||||
@SpringBootApplication
|
||||
@MapperScan("com.car.charging.mapper")
|
||||
public class CarChargingApplication
|
||||
{
|
||||
public static void main(String[] args)
|
||||
{
|
||||
SpringApplication.run(CarChargingApplication.class, args);
|
||||
System.out.println("~~|~~~ 计费模块启动成功 ~~~|~~\n" +
|
||||
" --------- ---------\n" +
|
||||
" ||| ||| \n" +
|
||||
" \n" +
|
||||
" | | \n" +
|
||||
" (_ o _) \n" +
|
||||
" ||||||||||||||| \n" +
|
||||
" ~~~~~~~~~~~~~~~~~~~~~~~ \n" +
|
||||
" \n" +
|
||||
" ");
|
||||
}
|
||||
}
|
|
@ -0,0 +1,101 @@
|
|||
package com.car.charging.controller;
|
||||
|
||||
import com.boot.common.core.domain.Result;
|
||||
|
||||
import com.car.charging.common.domain.*;
|
||||
import com.car.charging.common.domain.req.AddChannel;
|
||||
import com.car.charging.common.domain.req.ChargingMiddleTableReq;
|
||||
import com.car.charging.common.domain.vo.ChargingMiddleTableVo;
|
||||
import com.car.charging.common.result.PageResult;
|
||||
import com.car.charging.service.ChargingService;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.web.bind.annotation.PostMapping;
|
||||
import org.springframework.web.bind.annotation.RequestBody;
|
||||
import org.springframework.web.bind.annotation.RequestParam;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
|
||||
import com.car.charging.common.domain.Channel;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* @ClassName CharginController
|
||||
* @Description 描述
|
||||
* @Author Di.Wu
|
||||
* @Date 2024/2/26 14:33
|
||||
*/
|
||||
@RestController
|
||||
public class CharginController {
|
||||
|
||||
|
||||
@Autowired
|
||||
private ChargingService charginService;
|
||||
|
||||
/*
|
||||
*计费列表
|
||||
*/
|
||||
@PostMapping("/charginList")
|
||||
public Result<PageResult<ChargingMiddleTableVo>> charginList(@RequestBody ChargingMiddleTableReq req){
|
||||
|
||||
Result<PageResult<ChargingMiddleTableVo>> result = charginService.list(req);
|
||||
|
||||
return result;
|
||||
|
||||
}
|
||||
|
||||
@PostMapping("/AddChannel")
|
||||
public Result AddChannel(@RequestBody AddChannel addChannel){
|
||||
|
||||
return Result.ok(charginService.addCharging(addChannel));
|
||||
}
|
||||
|
||||
@PostMapping("/updChannel")
|
||||
public Result updChannel(@RequestBody AddChannel addChannel){
|
||||
return Result.ok(charginService.updCharging(addChannel));
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
@PostMapping("/ChannelList")
|
||||
public Result<List<Channel>> ChannelList(){
|
||||
|
||||
// List<Channel> result = charginService.ChannelList();
|
||||
|
||||
List<Channel> result = charginService.ChannelList();
|
||||
|
||||
return Result.ok(result);
|
||||
}
|
||||
|
||||
@PostMapping("/CityList")
|
||||
public Result<List<City>> CityList(){
|
||||
List<City> result = charginService.CityList();
|
||||
|
||||
return Result.ok(result);
|
||||
}
|
||||
|
||||
@PostMapping("/RankList")
|
||||
public Result<List<Rank>> RankList(){
|
||||
List<Rank> result = charginService.RankList();
|
||||
|
||||
return Result.ok(result);
|
||||
}
|
||||
|
||||
@PostMapping("/serverTypeList")
|
||||
public Result<List<serverType>> serverTypeList(){
|
||||
List<serverType> result = charginService.serverTypeList();
|
||||
|
||||
return Result.ok(result);
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
|
@ -0,0 +1,49 @@
|
|||
package com.car.charging.mapper;
|
||||
|
||||
import com.car.charging.common.domain.*;
|
||||
import com.car.charging.common.domain.req.AddChannel;
|
||||
import com.car.charging.common.domain.req.ChargingMiddleTableReq;
|
||||
import com.car.charging.common.domain.vo.ChargingMiddleTableVo;
|
||||
import com.car.charging.common.domain.Section;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* @ClassName ChargingMapper
|
||||
* @Description 描述
|
||||
* @Author Di.Wu
|
||||
* @Date 2024/2/26 14:14
|
||||
*/
|
||||
|
||||
public interface ChargingMapper {
|
||||
|
||||
|
||||
List<ChargingMiddleTableVo> list(ChargingMiddleTableReq res);
|
||||
|
||||
List<Channel> ChannelList();
|
||||
|
||||
List<City> CityList();
|
||||
|
||||
List<Rank> RankList();
|
||||
|
||||
List<serverType> serverTypeList();
|
||||
|
||||
|
||||
|
||||
|
||||
void addChargingMiddleTable(ChargingMiddleTable chargingMiddleTable );
|
||||
|
||||
void addNightServer(NightServer nightServer);
|
||||
|
||||
void addEstimatedOrder(EstimatedOrder eniteration);
|
||||
|
||||
|
||||
void addSection(Section section1);
|
||||
|
||||
void updNightServer(AddChannel addChannel);
|
||||
|
||||
void updEstimatedOrder(AddChannel addChannel);
|
||||
|
||||
void updSection(AddChannel addChannel);
|
||||
|
||||
void updChargingMiddleTable(AddChannel addChannel);
|
||||
}
|
|
@ -0,0 +1,37 @@
|
|||
package com.car.charging.service;
|
||||
|
||||
import com.boot.common.core.domain.Result;
|
||||
import com.car.charging.common.domain.*;
|
||||
import com.car.charging.common.domain.req.AddChannel;
|
||||
import com.car.charging.common.domain.req.ChargingMiddleTableReq;
|
||||
import com.car.charging.common.domain.vo.ChargingMiddleTableVo;
|
||||
import com.car.charging.common.result.PageResult;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* @ClassName ChargingService
|
||||
* @Description 描述
|
||||
* @Author Di.Wu
|
||||
* @Date 2024/2/26 14:17
|
||||
*/
|
||||
public interface ChargingService {
|
||||
Result<PageResult<ChargingMiddleTableVo>> list(ChargingMiddleTableReq req);
|
||||
|
||||
List<Channel> ChannelList();
|
||||
|
||||
List<City> CityList();
|
||||
|
||||
List<Rank> RankList();
|
||||
|
||||
List<serverType> serverTypeList();
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
boolean addCharging(AddChannel addChannel);
|
||||
|
||||
boolean updCharging(AddChannel addChannel);
|
||||
}
|
|
@ -0,0 +1,140 @@
|
|||
package com.car.charging.service.impl;
|
||||
|
||||
import com.boot.common.core.domain.Result;
|
||||
import com.car.charging.common.domain.*;
|
||||
import com.car.charging.common.domain.req.AddChannel;
|
||||
import com.car.charging.common.domain.req.ChargingMiddleTableReq;
|
||||
import com.car.charging.common.domain.vo.ChargingMiddleTableVo;
|
||||
import com.car.charging.common.result.PageResult;
|
||||
|
||||
import com.car.charging.mapper.ChargingMapper;
|
||||
import com.car.charging.service.ChargingService;
|
||||
import com.github.pagehelper.PageHelper;
|
||||
import com.github.pagehelper.PageInfo;
|
||||
import org.springframework.beans.BeanUtils;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Service;
|
||||
import org.springframework.transaction.PlatformTransactionManager;
|
||||
import org.springframework.transaction.annotation.Transactional;
|
||||
import org.springframework.transaction.interceptor.TransactionAspectSupport;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* @ClassName ChargingServiceImpl
|
||||
* @Description 描述
|
||||
* @Author Di.Wu
|
||||
* @Date 2024/2/26 14:17
|
||||
*/
|
||||
@Service
|
||||
public class ChargingServiceImpl implements ChargingService {
|
||||
|
||||
@Autowired
|
||||
private ChargingMapper mapper;
|
||||
|
||||
@Override
|
||||
public Result<PageResult<ChargingMiddleTableVo>> list(ChargingMiddleTableReq req) {
|
||||
|
||||
PageHelper.startPage(req.getPageNum(), req.getPageSize());
|
||||
|
||||
|
||||
List<ChargingMiddleTableVo> list = mapper.list(req);
|
||||
|
||||
PageInfo<ChargingMiddleTableVo> chargingMiddleTableVoPageInfo = new PageInfo<>(list);
|
||||
|
||||
|
||||
return PageResult.toResult(chargingMiddleTableVoPageInfo.getTotal(), list);
|
||||
}
|
||||
|
||||
@Override
|
||||
public List<Channel> ChannelList() {
|
||||
|
||||
return mapper.ChannelList();
|
||||
}
|
||||
|
||||
@Override
|
||||
public List<City> CityList() {
|
||||
return mapper.CityList();
|
||||
}
|
||||
|
||||
@Override
|
||||
public List<Rank> RankList() {
|
||||
return mapper.RankList();
|
||||
}
|
||||
|
||||
@Override
|
||||
public List<serverType> serverTypeList() {
|
||||
return mapper.serverTypeList();
|
||||
}
|
||||
|
||||
|
||||
// 需要回滚的异常类
|
||||
// @Transactional( rollbackFor={Exception.class})
|
||||
@Transactional
|
||||
@Override
|
||||
public boolean addCharging(AddChannel addChannel) {
|
||||
String Id = "";
|
||||
|
||||
NightServer nightServer = new NightServer();
|
||||
|
||||
EstimatedOrder estimatedOrder = new EstimatedOrder();
|
||||
|
||||
Section section = new Section();
|
||||
|
||||
ChargingMiddleTable chargingMiddleTable = new ChargingMiddleTable();
|
||||
|
||||
|
||||
if (addChannel.getSectionList() != null) {
|
||||
|
||||
for (Section section1 : addChannel.getSectionList()) {
|
||||
BeanUtils.copyProperties(addChannel,section1 );
|
||||
mapper.addSection(section1);
|
||||
Integer id = section.getId();
|
||||
Id += "," + id;
|
||||
}
|
||||
//分段计费
|
||||
estimatedOrder.setSectionId(Id.substring(1));
|
||||
|
||||
} else {
|
||||
//整段计费
|
||||
estimatedOrder.setSectionId(String.valueOf(0));
|
||||
}
|
||||
//赋值给 nightServer
|
||||
BeanUtils.copyProperties(addChannel, nightServer);
|
||||
|
||||
mapper.addNightServer(nightServer);
|
||||
//赋值给 estimatedOrder
|
||||
BeanUtils.copyProperties(addChannel, estimatedOrder);
|
||||
estimatedOrder.setNightId(nightServer.getId());
|
||||
//赋值给 chargingMiddleTable
|
||||
mapper.addEstimatedOrder(estimatedOrder);
|
||||
BeanUtils.copyProperties(addChannel, chargingMiddleTable);
|
||||
chargingMiddleTable.setEstimatedId(estimatedOrder.getId());
|
||||
|
||||
|
||||
mapper.addChargingMiddleTable(chargingMiddleTable);
|
||||
|
||||
|
||||
return true;
|
||||
|
||||
|
||||
}
|
||||
|
||||
@Transactional
|
||||
@Override
|
||||
public boolean updCharging(AddChannel addChannel) {
|
||||
|
||||
|
||||
mapper.updNightServer(addChannel);
|
||||
|
||||
mapper.updEstimatedOrder(addChannel);
|
||||
|
||||
mapper.updSection(addChannel);
|
||||
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
}
|
|
@ -0,0 +1,22 @@
|
|||
Spring Boot Version: ${spring-boot.version}
|
||||
Spring Application Name: ${spring.application.name}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~}
|
||||
| | }
|
||||
| | }
|
||||
| | }
|
||||
| | }
|
||||
| | }
|
||||
| | }
|
||||
~~~~~~~~~~~~~~~~~~ |~~~~~~~~~~~~~~~~~ }
|
||||
| | }
|
||||
| | }
|
||||
| | }
|
||||
| | }
|
||||
| | }
|
||||
| | }
|
||||
~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~}
|
|
@ -0,0 +1,27 @@
|
|||
# Tomcat
|
||||
server:
|
||||
port: 9002
|
||||
|
||||
# Spring
|
||||
spring:
|
||||
application:
|
||||
# 应用名称
|
||||
name: car-charging
|
||||
profiles:
|
||||
# 环境配置
|
||||
active: dev
|
||||
cloud:
|
||||
nacos:
|
||||
discovery:
|
||||
# 服务注册地址
|
||||
server-addr: 122.152.215.207:8848
|
||||
namespace: wdwdwd
|
||||
config:
|
||||
# 配置中心地址
|
||||
server-addr: 122.152.215.207:8848
|
||||
# 配置文件格式
|
||||
file-extension: yml
|
||||
# 共享配置
|
||||
shared-configs:
|
||||
- application-${spring.profiles.active}.${spring.cloud.nacos.config.file-extension}
|
||||
namespace: wdwdwd
|
|
@ -0,0 +1,344 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
|
||||
<mapper namespace="com.car.charging.mapper.ChargingMapper">
|
||||
|
||||
<!-- <resultMap type="com.car.charging.common.domain.vo.ChargingMiddleTableVo" id="SysUserRoleResult">-->
|
||||
<!-- <result property="userId" column="user_id" />-->
|
||||
<!-- <result property="roleId" column="role_id" />-->
|
||||
<!-- </resultMap>-->
|
||||
|
||||
|
||||
|
||||
<resultMap type="com.car.charging.common.domain.vo.ChargingMiddleTableVo" id="ChargingMiddleTableResultMap">
|
||||
<id property="id" column="id"/>
|
||||
<result property="cityId" column="city_id"/>
|
||||
<result property="channelId" column="channel_id"/>
|
||||
<result property="serverTypeId" column="server_type_id"/>
|
||||
<result property="rankId" column="rank_id"/>
|
||||
<result property="updateTime" column="update_time"/>
|
||||
<result property="userName" column="user_name"/>
|
||||
<result property="availableState" column="available_state"/>
|
||||
<result property="createTime" column="create_time"/>
|
||||
|
||||
|
||||
<!-- <association property="channel" javaType="com.car.charging.common.domain.Channel">-->
|
||||
<!-- <id property="channelId" column="channel_id"/>–>-->
|
||||
<!-- <result property="channelName" column="channel_name"/>-->
|
||||
<!-- <result property="createTime" column="create_time"/>-->
|
||||
<!-- <result property="createUser" column="create_user"/>-->
|
||||
<!-- <result property="updTime" column="upd_time"/>-->
|
||||
<!-- <result property="updUser" column="upd_user"/>-->
|
||||
<!-- <result property="isDel" column="is_del"/>-->
|
||||
<!-- </association>-->
|
||||
|
||||
<association property="channel" javaType="com.car.charging.common.domain.Channel">
|
||||
<id property="channelId" column="channel_id"/>
|
||||
<result property="channelName" column="channel_name"/>
|
||||
<result property="createTime" column="create_time"/>
|
||||
<result property="createUser" column="create_user"/>
|
||||
<result property="updTime" column="upd_time"/>
|
||||
<result property="updUser" column="upd_user"/>
|
||||
<result property="isDel" column="is_del"/>
|
||||
</association>
|
||||
|
||||
|
||||
<association property="city" javaType="com.car.charging.common.domain.City">
|
||||
<id property="cityId" column="city_id"/>
|
||||
<result property="cityName" column="city_name"/>
|
||||
</association>
|
||||
|
||||
<association property="rank" javaType="com.car.charging.common.domain.Rank">
|
||||
<id property="rankId" column="rank_id"/>
|
||||
<result property="rankName" column="rank_name"/>
|
||||
<result property="createTime" column="create_time"/>
|
||||
<result property="createUser" column="create_user"/>
|
||||
<result property="updTime" column="upd_time"/>
|
||||
<result property="updUser" column="upd_user"/>
|
||||
<result property="isDel" column="is_del"/>
|
||||
</association>
|
||||
|
||||
<association property="type" javaType="com.car.charging.common.domain.serverType">
|
||||
<id property="serverTypeId" column="server_type_id"/>
|
||||
<result property="typeName" column="type_name"/>
|
||||
<result property="createTime" column="create_time"/>
|
||||
<result property="createUser" column="create_user"/>
|
||||
<result property="updTime" column="upd_time"/>
|
||||
<result property="updUser" column="upd_user"/>
|
||||
<result property="isDel" column="is_del"/>
|
||||
</association>
|
||||
|
||||
<association property="estimatedOrder" javaType="com.car.charging.common.domain.EstimatedOrder">
|
||||
|
||||
<id property="id" column="id"/>
|
||||
<result property="cityId" column="city_id"/>
|
||||
<result property="serverTypeId" column="server_type_id"/>
|
||||
<result property="channelId" column="channel_id"/>
|
||||
<result property="rankId" column="rank_id"/>
|
||||
<result property="kilometres" column="kilometres"/>
|
||||
<result property="serverTime" column="server_time"/>
|
||||
<result property="mealPrice" column="meal_price"/>
|
||||
<result property="basicsPrice" column="basics_price"/>
|
||||
<result property="nightId" column="night_id"/>
|
||||
<result property="sectionId" column="section_id"/>
|
||||
<result property="createTime" column="create_time"/>
|
||||
|
||||
</association>
|
||||
|
||||
<association property="nightServer" javaType="com.car.charging.common.domain.NightServer">
|
||||
<id property="id" column="id"/>
|
||||
<result property="nightServerMileagePrice" column="night_server_mileage_price"/>
|
||||
<result property="nightServerTimePrice" column="night_server_time_price"/>
|
||||
<result property="mileagePrice" column="mileage_price"/>
|
||||
<result property="timePrice" column="time_price"/>
|
||||
<result property="longWayMileage" column="long_way_mileage"/>
|
||||
<result property="longWayPrice" column="long_way_price"/>
|
||||
</association>
|
||||
|
||||
<association property="section" javaType="com.car.charging.common.domain.Section">
|
||||
<id property="id" column="id"/>
|
||||
<result property="startTime" column="start_time"/>
|
||||
<result property="endTime" column="end_time"/>
|
||||
<result property="kilometrePrice" column="kilometre_price"/>
|
||||
<result property="timePrice" column="time_price"/>
|
||||
</association>
|
||||
|
||||
|
||||
|
||||
</resultMap>
|
||||
|
||||
<resultMap type="com.car.charging.common.domain.Channel" id="ChannelMap">
|
||||
<id property="channelId" column="channel_id"/>
|
||||
<result property="channelName" column="channel_name"/>
|
||||
<result property="createTime" column="create_time"/>
|
||||
<result property="createUser" column="create_user"/>
|
||||
<result property="updTime" column="upd_time"/>
|
||||
<result property="updUser" column="upd_user"/>
|
||||
<result property="isDel" column="is_del"/>
|
||||
|
||||
</resultMap>
|
||||
|
||||
<resultMap type="com.car.charging.common.domain.City" id="CityMap">
|
||||
<id property="cityId" column="city_id"/>
|
||||
<result property="cityName" column="city_name"/>
|
||||
|
||||
</resultMap>
|
||||
|
||||
<resultMap type="com.car.charging.common.domain.Rank" id="RankMap">
|
||||
<id property="rankId" column="rank_id"/>
|
||||
<result property="rankName" column="rank_name"/>
|
||||
<result property="createTime" column="create_time"/>
|
||||
<result property="createUser" column="create_user"/>
|
||||
<result property="updTime" column="upd_time"/>
|
||||
<result property="updUser" column="upd_user"/>
|
||||
<result property="isDel" column="is_del"/>
|
||||
</resultMap>
|
||||
|
||||
<resultMap type="com.car.charging.common.domain.serverType" id="serverTypeMap">
|
||||
<id property="serverTypeId" column="server_type_id"/>
|
||||
<result property="typeName" column="type_name"/>
|
||||
<result property="createTime" column="create_time"/>
|
||||
<result property="createUser" column="create_user"/>
|
||||
<result property="updTime" column="upd_time"/>
|
||||
<result property="updUser" column="upd_user"/>
|
||||
<result property="isDel" column="is_del"/>
|
||||
|
||||
</resultMap>
|
||||
|
||||
<insert id="addChargingMiddleTable" >
|
||||
INSERT INTO
|
||||
charging_middle_table(
|
||||
`city_id`,
|
||||
`channel_id`,
|
||||
`server_type_id`,
|
||||
`rank_id`,
|
||||
`estimated_id`,
|
||||
`create_time`)
|
||||
VALUES
|
||||
( #{cityId},#{channelId},#{serverTypeId},#{rankId},#{estimatedId},#{createTime});
|
||||
</insert>
|
||||
|
||||
<insert id="addNightServer" keyProperty="id" useGeneratedKeys="true">
|
||||
INSERT INTO
|
||||
`night_server`
|
||||
(
|
||||
`night_server_mileage_price`,
|
||||
`night_server_time_price`,
|
||||
`mileage_price`,
|
||||
`time_price`,
|
||||
`long_way_mileage`,
|
||||
`long_way_price`)
|
||||
VALUES
|
||||
(#{nightServerMileagePrice}, #{nightServerTimePrice}, #{mileagePrice}, #{timePrice}, #{longWayMileage}, #{longWayPrice});
|
||||
|
||||
</insert>
|
||||
<insert id="addEstimatedOrder" keyProperty="id" useGeneratedKeys="true">
|
||||
INSERT INTO `estimated_order`
|
||||
(
|
||||
`city_id`,
|
||||
`server_type_id`,
|
||||
`channel_id`,
|
||||
`rank_id`,
|
||||
`kilometres`,
|
||||
`server_time`,
|
||||
`meal_price`,
|
||||
`basics_price`,
|
||||
`night_id`)
|
||||
VALUES
|
||||
(#{cityId}, #{serverTypeId}, #{channelId}, #{rankId},#{kilometres},#{serverTime}, #{mealPrice}, #{basicsPrice}, #{nightId});
|
||||
|
||||
</insert>
|
||||
|
||||
<insert id="addSection" keyProperty="id" useGeneratedKeys="true" >
|
||||
INSERT INTO `tb_section`
|
||||
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||
`start_time`,
|
||||
`end_time`,
|
||||
`kilometre_price`,
|
||||
`time_price`
|
||||
</trim>
|
||||
VALUES
|
||||
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||
#{startTime},
|
||||
#{endTime},
|
||||
#{kilometrePrice},
|
||||
#{timePrice}
|
||||
</trim>
|
||||
</insert>
|
||||
|
||||
<update id="updNightServer">
|
||||
UPDATE
|
||||
`night_server`
|
||||
SET
|
||||
`night_server_mileage_price` = #{nightServerMileagePrice},
|
||||
`night_server_time_price` = #{nightServerTimePrice},
|
||||
`mileage_price` = #{mealPrice},
|
||||
`time_price` = #{timePrice},
|
||||
`long_way_mileage` = #{longWayMileage},
|
||||
`long_way_price` = #{longWayPrice}
|
||||
WHERE
|
||||
`id` = #{id};
|
||||
|
||||
</update>
|
||||
|
||||
<update id="updEstimatedOrder">
|
||||
UPDATE `estimated_order`
|
||||
SET
|
||||
`kilometres` = #{kilometres},
|
||||
`server_time` = #{serverTime},
|
||||
`meal_price` = #{mealPrice},
|
||||
`basics_price` = #{basicsPrice},
|
||||
WHERE `id` = #{id};
|
||||
|
||||
</update>
|
||||
|
||||
<update id="updSection">
|
||||
UPDATE `tb_section`
|
||||
SET `start_time` = #{startTime},
|
||||
`end_time` = #{endTime},
|
||||
`kilometre_price` = #{kilometrePrice},
|
||||
`time_price` = #{timePrice}
|
||||
WHERE `id` = #{id};
|
||||
|
||||
</update>
|
||||
|
||||
<update id="updChargingMiddleTable">
|
||||
|
||||
</update>
|
||||
|
||||
|
||||
<select id="list" resultMap="ChargingMiddleTableResultMap">
|
||||
SELECT t.id,
|
||||
c.city_id,
|
||||
c.city_name,
|
||||
l.channel_id,
|
||||
l.channel_name,
|
||||
st.server_type_id,
|
||||
st.type_name,
|
||||
t.rank_id,
|
||||
r.rank_name,
|
||||
t.update_time,
|
||||
t.user_name,
|
||||
t.create_time,
|
||||
t.available_state,
|
||||
eo.kilometres,
|
||||
eo.server_time,
|
||||
eo.meal_price,
|
||||
eo.basics_price,
|
||||
ns.night_server_mileage_price,
|
||||
ns.night_server_time_price,
|
||||
ns.mileage_price,
|
||||
ns.time_price,
|
||||
ns.long_way_mileage,
|
||||
ns.long_way_price,
|
||||
ts.kilometre_price,
|
||||
ts.start_time,
|
||||
ts.end_time,
|
||||
ts.time_price
|
||||
FROM charging_middle_table t
|
||||
LEFT JOIN city c ON t.city_id = c.city_id
|
||||
LEFT JOIN channel l ON t.channel_id = l.channel_id
|
||||
LEFT JOIN server_type st ON t.server_type_id = st.server_type_id
|
||||
LEFT JOIN t_rank r ON t.rank_id = r.rank_id
|
||||
LEFT JOIN estimated_order eo ON t.estimated_id = eo.id
|
||||
LEFT JOIN night_server ns on eo.night_id = ns.id
|
||||
LEFT JOIN tb_section ts on eo.section_id = ts.id
|
||||
|
||||
<where>
|
||||
|
||||
<if test="cityId!=null">
|
||||
and c.city_id = #{cityId}
|
||||
</if>
|
||||
|
||||
<if test="channelId!=null">
|
||||
and l.channel_id = #{channelId}
|
||||
</if>
|
||||
|
||||
<if test="serverTypeId!=null">
|
||||
and st.server_type_id = #{serverTypeId}
|
||||
</if>
|
||||
|
||||
<if test="rankId!=null">
|
||||
and t.rank_id = #{rankId}
|
||||
</if>
|
||||
|
||||
<if test="availableState!=null">
|
||||
and t.available_state = #{availableState}
|
||||
</if>
|
||||
|
||||
</where>
|
||||
|
||||
|
||||
</select>
|
||||
|
||||
<select id="ChannelList" resultMap="ChannelMap">
|
||||
select * from channel
|
||||
</select>
|
||||
|
||||
<select id="CityList" resultMap="CityMap">
|
||||
select * from city
|
||||
</select>
|
||||
|
||||
<select id="RankList" resultMap="RankMap">
|
||||
select * from t_rank
|
||||
</select>
|
||||
|
||||
<select id="serverTypeList" resultMap="serverTypeMap">
|
||||
select * from server_type
|
||||
</select>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</mapper>
|
|
@ -0,0 +1,22 @@
|
|||
Spring Boot Version: ${spring-boot.version}
|
||||
Spring Application Name: ${spring.application.name}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~}
|
||||
| | }
|
||||
| | }
|
||||
| | }
|
||||
| | }
|
||||
| | }
|
||||
| | }
|
||||
~~~~~~~~~~~~~~~~~~ |~~~~~~~~~~~~~~~~~ }
|
||||
| | }
|
||||
| | }
|
||||
| | }
|
||||
| | }
|
||||
| | }
|
||||
| | }
|
||||
~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~}
|
|
@ -0,0 +1,27 @@
|
|||
# Tomcat
|
||||
server:
|
||||
port: 9002
|
||||
|
||||
# Spring
|
||||
spring:
|
||||
application:
|
||||
# 应用名称
|
||||
name: car-charging
|
||||
profiles:
|
||||
# 环境配置
|
||||
active: dev
|
||||
cloud:
|
||||
nacos:
|
||||
discovery:
|
||||
# 服务注册地址
|
||||
server-addr: 122.152.215.207:8848
|
||||
namespace: wdwdwd
|
||||
config:
|
||||
# 配置中心地址
|
||||
server-addr: 122.152.215.207:8848
|
||||
# 配置文件格式
|
||||
file-extension: yml
|
||||
# 共享配置
|
||||
shared-configs:
|
||||
- application-${spring.profiles.active}.${spring.cloud.nacos.config.file-extension}
|
||||
namespace: wdwdwd
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
|
@ -0,0 +1,344 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
|
||||
<mapper namespace="com.car.charging.mapper.ChargingMapper">
|
||||
|
||||
<!-- <resultMap type="com.car.charging.common.domain.vo.ChargingMiddleTableVo" id="SysUserRoleResult">-->
|
||||
<!-- <result property="userId" column="user_id" />-->
|
||||
<!-- <result property="roleId" column="role_id" />-->
|
||||
<!-- </resultMap>-->
|
||||
|
||||
|
||||
|
||||
<resultMap type="com.car.charging.common.domain.vo.ChargingMiddleTableVo" id="ChargingMiddleTableResultMap">
|
||||
<id property="id" column="id"/>
|
||||
<result property="cityId" column="city_id"/>
|
||||
<result property="channelId" column="channel_id"/>
|
||||
<result property="serverTypeId" column="server_type_id"/>
|
||||
<result property="rankId" column="rank_id"/>
|
||||
<result property="updateTime" column="update_time"/>
|
||||
<result property="userName" column="user_name"/>
|
||||
<result property="availableState" column="available_state"/>
|
||||
<result property="createTime" column="create_time"/>
|
||||
|
||||
|
||||
<!-- <association property="channel" javaType="com.car.charging.common.domain.Channel">-->
|
||||
<!-- <id property="channelId" column="channel_id"/>–>-->
|
||||
<!-- <result property="channelName" column="channel_name"/>-->
|
||||
<!-- <result property="createTime" column="create_time"/>-->
|
||||
<!-- <result property="createUser" column="create_user"/>-->
|
||||
<!-- <result property="updTime" column="upd_time"/>-->
|
||||
<!-- <result property="updUser" column="upd_user"/>-->
|
||||
<!-- <result property="isDel" column="is_del"/>-->
|
||||
<!-- </association>-->
|
||||
|
||||
<association property="channel" javaType="com.car.charging.common.domain.Channel">
|
||||
<id property="channelId" column="channel_id"/>
|
||||
<result property="channelName" column="channel_name"/>
|
||||
<result property="createTime" column="create_time"/>
|
||||
<result property="createUser" column="create_user"/>
|
||||
<result property="updTime" column="upd_time"/>
|
||||
<result property="updUser" column="upd_user"/>
|
||||
<result property="isDel" column="is_del"/>
|
||||
</association>
|
||||
|
||||
|
||||
<association property="city" javaType="com.car.charging.common.domain.City">
|
||||
<id property="cityId" column="city_id"/>
|
||||
<result property="cityName" column="city_name"/>
|
||||
</association>
|
||||
|
||||
<association property="rank" javaType="com.car.charging.common.domain.Rank">
|
||||
<id property="rankId" column="rank_id"/>
|
||||
<result property="rankName" column="rank_name"/>
|
||||
<result property="createTime" column="create_time"/>
|
||||
<result property="createUser" column="create_user"/>
|
||||
<result property="updTime" column="upd_time"/>
|
||||
<result property="updUser" column="upd_user"/>
|
||||
<result property="isDel" column="is_del"/>
|
||||
</association>
|
||||
|
||||
<association property="type" javaType="com.car.charging.common.domain.serverType">
|
||||
<id property="serverTypeId" column="server_type_id"/>
|
||||
<result property="typeName" column="type_name"/>
|
||||
<result property="createTime" column="create_time"/>
|
||||
<result property="createUser" column="create_user"/>
|
||||
<result property="updTime" column="upd_time"/>
|
||||
<result property="updUser" column="upd_user"/>
|
||||
<result property="isDel" column="is_del"/>
|
||||
</association>
|
||||
|
||||
<association property="estimatedOrder" javaType="com.car.charging.common.domain.EstimatedOrder">
|
||||
|
||||
<id property="id" column="id"/>
|
||||
<result property="cityId" column="city_id"/>
|
||||
<result property="serverTypeId" column="server_type_id"/>
|
||||
<result property="channelId" column="channel_id"/>
|
||||
<result property="rankId" column="rank_id"/>
|
||||
<result property="kilometres" column="kilometres"/>
|
||||
<result property="serverTime" column="server_time"/>
|
||||
<result property="mealPrice" column="meal_price"/>
|
||||
<result property="basicsPrice" column="basics_price"/>
|
||||
<result property="nightId" column="night_id"/>
|
||||
<result property="sectionId" column="section_id"/>
|
||||
<result property="createTime" column="create_time"/>
|
||||
|
||||
</association>
|
||||
|
||||
<association property="nightServer" javaType="com.car.charging.common.domain.NightServer">
|
||||
<id property="id" column="id"/>
|
||||
<result property="nightServerMileagePrice" column="night_server_mileage_price"/>
|
||||
<result property="nightServerTimePrice" column="night_server_time_price"/>
|
||||
<result property="mileagePrice" column="mileage_price"/>
|
||||
<result property="timePrice" column="time_price"/>
|
||||
<result property="longWayMileage" column="long_way_mileage"/>
|
||||
<result property="longWayPrice" column="long_way_price"/>
|
||||
</association>
|
||||
|
||||
<association property="section" javaType="com.car.charging.common.domain.Section">
|
||||
<id property="id" column="id"/>
|
||||
<result property="startTime" column="start_time"/>
|
||||
<result property="endTime" column="end_time"/>
|
||||
<result property="kilometrePrice" column="kilometre_price"/>
|
||||
<result property="timePrice" column="time_price"/>
|
||||
</association>
|
||||
|
||||
|
||||
|
||||
</resultMap>
|
||||
|
||||
<resultMap type="com.car.charging.common.domain.Channel" id="ChannelMap">
|
||||
<id property="channelId" column="channel_id"/>
|
||||
<result property="channelName" column="channel_name"/>
|
||||
<result property="createTime" column="create_time"/>
|
||||
<result property="createUser" column="create_user"/>
|
||||
<result property="updTime" column="upd_time"/>
|
||||
<result property="updUser" column="upd_user"/>
|
||||
<result property="isDel" column="is_del"/>
|
||||
|
||||
</resultMap>
|
||||
|
||||
<resultMap type="com.car.charging.common.domain.City" id="CityMap">
|
||||
<id property="cityId" column="city_id"/>
|
||||
<result property="cityName" column="city_name"/>
|
||||
|
||||
</resultMap>
|
||||
|
||||
<resultMap type="com.car.charging.common.domain.Rank" id="RankMap">
|
||||
<id property="rankId" column="rank_id"/>
|
||||
<result property="rankName" column="rank_name"/>
|
||||
<result property="createTime" column="create_time"/>
|
||||
<result property="createUser" column="create_user"/>
|
||||
<result property="updTime" column="upd_time"/>
|
||||
<result property="updUser" column="upd_user"/>
|
||||
<result property="isDel" column="is_del"/>
|
||||
</resultMap>
|
||||
|
||||
<resultMap type="com.car.charging.common.domain.serverType" id="serverTypeMap">
|
||||
<id property="serverTypeId" column="server_type_id"/>
|
||||
<result property="typeName" column="type_name"/>
|
||||
<result property="createTime" column="create_time"/>
|
||||
<result property="createUser" column="create_user"/>
|
||||
<result property="updTime" column="upd_time"/>
|
||||
<result property="updUser" column="upd_user"/>
|
||||
<result property="isDel" column="is_del"/>
|
||||
|
||||
</resultMap>
|
||||
|
||||
<insert id="addChargingMiddleTable" >
|
||||
INSERT INTO
|
||||
charging_middle_table(
|
||||
`city_id`,
|
||||
`channel_id`,
|
||||
`server_type_id`,
|
||||
`rank_id`,
|
||||
`estimated_id`,
|
||||
`create_time`)
|
||||
VALUES
|
||||
( #{cityId},#{channelId},#{serverTypeId},#{rankId},#{estimatedId},#{createTime});
|
||||
</insert>
|
||||
|
||||
<insert id="addNightServer" keyProperty="id" useGeneratedKeys="true">
|
||||
INSERT INTO
|
||||
`night_server`
|
||||
(
|
||||
`night_server_mileage_price`,
|
||||
`night_server_time_price`,
|
||||
`mileage_price`,
|
||||
`time_price`,
|
||||
`long_way_mileage`,
|
||||
`long_way_price`)
|
||||
VALUES
|
||||
(#{nightServerMileagePrice}, #{nightServerTimePrice}, #{mileagePrice}, #{timePrice}, #{longWayMileage}, #{longWayPrice});
|
||||
|
||||
</insert>
|
||||
<insert id="addEstimatedOrder" keyProperty="id" useGeneratedKeys="true">
|
||||
INSERT INTO `estimated_order`
|
||||
(
|
||||
`city_id`,
|
||||
`server_type_id`,
|
||||
`channel_id`,
|
||||
`rank_id`,
|
||||
`kilometres`,
|
||||
`server_time`,
|
||||
`meal_price`,
|
||||
`basics_price`,
|
||||
`night_id`)
|
||||
VALUES
|
||||
(#{cityId}, #{serverTypeId}, #{channelId}, #{rankId},#{kilometres},#{serverTime}, #{mealPrice}, #{basicsPrice}, #{nightId});
|
||||
|
||||
</insert>
|
||||
|
||||
<insert id="addSection" keyProperty="id" useGeneratedKeys="true" >
|
||||
INSERT INTO `tb_section`
|
||||
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||
`start_time`,
|
||||
`end_time`,
|
||||
`kilometre_price`,
|
||||
`time_price`
|
||||
</trim>
|
||||
VALUES
|
||||
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||
#{startTime},
|
||||
#{endTime},
|
||||
#{kilometrePrice},
|
||||
#{timePrice}
|
||||
</trim>
|
||||
</insert>
|
||||
|
||||
<update id="updNightServer">
|
||||
UPDATE
|
||||
`night_server`
|
||||
SET
|
||||
`night_server_mileage_price` = #{nightServerMileagePrice},
|
||||
`night_server_time_price` = #{nightServerTimePrice},
|
||||
`mileage_price` = #{mealPrice},
|
||||
`time_price` = #{timePrice},
|
||||
`long_way_mileage` = #{longWayMileage},
|
||||
`long_way_price` = #{longWayPrice}
|
||||
WHERE
|
||||
`id` = #{id};
|
||||
|
||||
</update>
|
||||
|
||||
<update id="updEstimatedOrder">
|
||||
UPDATE `estimated_order`
|
||||
SET
|
||||
`kilometres` = #{kilometres},
|
||||
`server_time` = #{serverTime},
|
||||
`meal_price` = #{mealPrice},
|
||||
`basics_price` = #{basicsPrice},
|
||||
WHERE `id` = #{id};
|
||||
|
||||
</update>
|
||||
|
||||
<update id="updSection">
|
||||
UPDATE `tb_section`
|
||||
SET `start_time` = #{startTime},
|
||||
`end_time` = #{endTime},
|
||||
`kilometre_price` = #{kilometrePrice},
|
||||
`time_price` = #{timePrice}
|
||||
WHERE `id` = #{id};
|
||||
|
||||
</update>
|
||||
|
||||
<update id="updChargingMiddleTable">
|
||||
|
||||
</update>
|
||||
|
||||
|
||||
<select id="list" resultMap="ChargingMiddleTableResultMap">
|
||||
SELECT t.id,
|
||||
c.city_id,
|
||||
c.city_name,
|
||||
l.channel_id,
|
||||
l.channel_name,
|
||||
st.server_type_id,
|
||||
st.type_name,
|
||||
t.rank_id,
|
||||
r.rank_name,
|
||||
t.update_time,
|
||||
t.user_name,
|
||||
t.create_time,
|
||||
t.available_state,
|
||||
eo.kilometres,
|
||||
eo.server_time,
|
||||
eo.meal_price,
|
||||
eo.basics_price,
|
||||
ns.night_server_mileage_price,
|
||||
ns.night_server_time_price,
|
||||
ns.mileage_price,
|
||||
ns.time_price,
|
||||
ns.long_way_mileage,
|
||||
ns.long_way_price,
|
||||
ts.kilometre_price,
|
||||
ts.start_time,
|
||||
ts.end_time,
|
||||
ts.time_price
|
||||
FROM charging_middle_table t
|
||||
LEFT JOIN city c ON t.city_id = c.city_id
|
||||
LEFT JOIN channel l ON t.channel_id = l.channel_id
|
||||
LEFT JOIN server_type st ON t.server_type_id = st.server_type_id
|
||||
LEFT JOIN t_rank r ON t.rank_id = r.rank_id
|
||||
LEFT JOIN estimated_order eo ON t.estimated_id = eo.id
|
||||
LEFT JOIN night_server ns on eo.night_id = ns.id
|
||||
LEFT JOIN tb_section ts on eo.section_id = ts.id
|
||||
|
||||
<where>
|
||||
|
||||
<if test="cityId!=null">
|
||||
and c.city_id = #{cityId}
|
||||
</if>
|
||||
|
||||
<if test="channelId!=null">
|
||||
and l.channel_id = #{channelId}
|
||||
</if>
|
||||
|
||||
<if test="serverTypeId!=null">
|
||||
and st.server_type_id = #{serverTypeId}
|
||||
</if>
|
||||
|
||||
<if test="rankId!=null">
|
||||
and t.rank_id = #{rankId}
|
||||
</if>
|
||||
|
||||
<if test="availableState!=null">
|
||||
and t.available_state = #{availableState}
|
||||
</if>
|
||||
|
||||
</where>
|
||||
|
||||
|
||||
</select>
|
||||
|
||||
<select id="ChannelList" resultMap="ChannelMap">
|
||||
select * from channel
|
||||
</select>
|
||||
|
||||
<select id="CityList" resultMap="CityMap">
|
||||
select * from city
|
||||
</select>
|
||||
|
||||
<select id="RankList" resultMap="RankMap">
|
||||
select * from t_rank
|
||||
</select>
|
||||
|
||||
<select id="serverTypeList" resultMap="serverTypeMap">
|
||||
select * from server_type
|
||||
</select>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</mapper>
|
|
@ -0,0 +1,27 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project xmlns="http://maven.apache.org/POM/4.0.0"
|
||||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
<parent>
|
||||
<groupId>com.boot</groupId>
|
||||
<artifactId>boot</artifactId>
|
||||
<version>3.6.3</version>
|
||||
</parent>
|
||||
|
||||
<groupId>com.bawei</groupId>
|
||||
<artifactId>car-charging</artifactId>
|
||||
<packaging>pom</packaging>
|
||||
<modules>
|
||||
<module>car-charging-common</module>
|
||||
<module>car-charging-remote</module>
|
||||
<module>car-charging-server</module>
|
||||
</modules>
|
||||
|
||||
<properties>
|
||||
<maven.compiler.source>17</maven.compiler.source>
|
||||
<maven.compiler.target>17</maven.compiler.target>
|
||||
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
||||
</properties>
|
||||
|
||||
</project>
|
|
@ -0,0 +1,54 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project xmlns="http://maven.apache.org/POM/4.0.0"
|
||||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
<parent>
|
||||
<groupId>com.bawei</groupId>
|
||||
<artifactId>car-pay</artifactId>
|
||||
<version>3.6.3</version>
|
||||
</parent>
|
||||
|
||||
<artifactId>car-pay-common</artifactId>
|
||||
|
||||
<properties>
|
||||
<maven.compiler.source>17</maven.compiler.source>
|
||||
<maven.compiler.target>17</maven.compiler.target>
|
||||
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
||||
</properties>
|
||||
|
||||
|
||||
<dependencies>
|
||||
|
||||
<dependency>
|
||||
<groupId>com.alipay.sdk</groupId>
|
||||
<artifactId>alipay-sdk-java</artifactId>
|
||||
<version>4.9.5.ALL</version>
|
||||
</dependency>
|
||||
|
||||
<dependency>
|
||||
<groupId>com.alipay.sdk</groupId>
|
||||
<artifactId>alipay-easysdk</artifactId>
|
||||
<version>2.2.0</version>
|
||||
</dependency>
|
||||
|
||||
|
||||
<dependency>
|
||||
<groupId>cn.hutool</groupId>
|
||||
<artifactId>hutool-all</artifactId>
|
||||
<version>5.8.3</version>
|
||||
</dependency>
|
||||
|
||||
<!-- 系统服务 公共依赖-->
|
||||
<dependency>
|
||||
<groupId>com.boot</groupId>
|
||||
<artifactId>boot-common-core</artifactId>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.projectlombok</groupId>
|
||||
<artifactId>lombok</artifactId>
|
||||
</dependency>
|
||||
</dependencies>
|
||||
|
||||
|
||||
</project>
|
|
@ -0,0 +1,58 @@
|
|||
package com.pay.common;
|
||||
|
||||
import com.alipay.easysdk.factory.Factory;
|
||||
import com.alipay.easysdk.kernel.Config;
|
||||
import lombok.Data;
|
||||
import org.springframework.boot.context.properties.ConfigurationProperties;
|
||||
import org.springframework.stereotype.Component;
|
||||
|
||||
|
||||
import javax.annotation.PostConstruct;
|
||||
|
||||
/**
|
||||
* @ClassName 支付配置类
|
||||
* @Description 里面的类要可以一一对应配置信息会从application.yml中读取
|
||||
* @Author Di.Wu
|
||||
* @Date 2024/3/5 20:33
|
||||
*/
|
||||
@Data
|
||||
@Component
|
||||
@ConfigurationProperties(prefix = "alipay")
|
||||
public class AlipayConfig {
|
||||
|
||||
private String appId;
|
||||
|
||||
private String appPrivateKey;
|
||||
|
||||
private String alipayPublicKey;
|
||||
|
||||
private String notifyUrl;
|
||||
|
||||
private String returnUrl;
|
||||
|
||||
|
||||
|
||||
@PostConstruct
|
||||
public void init(){
|
||||
//设置参数(全局只用设置一次)
|
||||
Config config = new Config();
|
||||
config.protocol="https";
|
||||
config.gatewayHost ="openapi.alipaydev.com";
|
||||
config.signType="RSA2";
|
||||
config.appId = this.appId;
|
||||
config.merchantPrivateKey = this.appPrivateKey;
|
||||
config.alipayPublicKey=this.alipayPublicKey;
|
||||
config.notifyUrl=this.notifyUrl;
|
||||
Factory.setOptions(config);
|
||||
System.out.println("----------支付配置类初始化成功----------" +
|
||||
".." + ".." +
|
||||
|
||||
"||" +
|
||||
"~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~" +
|
||||
"++++++++++++++++++++++++++++++++");
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
}
|
|
@ -0,0 +1,27 @@
|
|||
package com.pay.common;
|
||||
|
||||
import lombok.Data;
|
||||
|
||||
import java.math.BigDecimal;
|
||||
import java.math.BigInteger;
|
||||
|
||||
/**
|
||||
* @ClassName CustomerOrder
|
||||
* @Description 描述
|
||||
* @Author Di.Wu
|
||||
* @Date 2024/3/5 22:16
|
||||
*/
|
||||
@Data
|
||||
public class CustomerOrder {
|
||||
private Integer id;
|
||||
|
||||
private String orderId;
|
||||
|
||||
private Integer payStatus;
|
||||
|
||||
private String orderSubject;
|
||||
|
||||
private String orderPrice;
|
||||
|
||||
|
||||
}
|
|
@ -0,0 +1,46 @@
|
|||
package com.pay.common;
|
||||
|
||||
import java.util.StringJoiner;
|
||||
|
||||
/**
|
||||
* @ClassName Demo
|
||||
* @Description 描述
|
||||
* @Author Di.Wu
|
||||
* @Date 2024/3/5 20:58
|
||||
*/
|
||||
public class Demo extends Thread{
|
||||
@Override
|
||||
public void run() {
|
||||
System.out.println("Demo");
|
||||
}
|
||||
|
||||
public static void main(String[] args) {
|
||||
|
||||
|
||||
Demo demo = new Demo();
|
||||
|
||||
demo.start();
|
||||
|
||||
|
||||
//{123,456,789}
|
||||
StringJoiner sj = new StringJoiner(",","{", "}");
|
||||
sj.add("123");
|
||||
sj.add("456");
|
||||
sj.add("789");
|
||||
System.out.println(sj);
|
||||
System.out.println("运行结束");
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
|
@ -0,0 +1,20 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project xmlns="http://maven.apache.org/POM/4.0.0"
|
||||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
<parent>
|
||||
<groupId>com.bawei</groupId>
|
||||
<artifactId>car-pay</artifactId>
|
||||
<version>3.6.3</version>
|
||||
</parent>
|
||||
|
||||
<artifactId>car-pay-remote</artifactId>
|
||||
|
||||
<properties>
|
||||
<maven.compiler.source>17</maven.compiler.source>
|
||||
<maven.compiler.target>17</maven.compiler.target>
|
||||
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
||||
</properties>
|
||||
|
||||
</project>
|
|
@ -0,0 +1,147 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project xmlns="http://maven.apache.org/POM/4.0.0"
|
||||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
<parent>
|
||||
<groupId>com.bawei</groupId>
|
||||
<artifactId>car-pay</artifactId>
|
||||
<version>3.6.3</version>
|
||||
</parent>
|
||||
|
||||
<artifactId>car-pay-server</artifactId>
|
||||
|
||||
<properties>
|
||||
<maven.compiler.source>17</maven.compiler.source>
|
||||
<maven.compiler.target>17</maven.compiler.target>
|
||||
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
||||
</properties>
|
||||
|
||||
<dependencies>
|
||||
|
||||
<!-- SpringCloud Alibaba Nacos -->
|
||||
<dependency>
|
||||
<groupId>com.alibaba.cloud</groupId>
|
||||
<artifactId>spring-cloud-starter-alibaba-nacos-discovery</artifactId>
|
||||
</dependency>
|
||||
|
||||
<!-- SpringCloud Alibaba Nacos Config -->
|
||||
<dependency>
|
||||
<groupId>com.alibaba.cloud</groupId>
|
||||
<artifactId>spring-cloud-starter-alibaba-nacos-config</artifactId>
|
||||
</dependency>
|
||||
|
||||
<!-- SpringCloud Alibaba Sentinel -->
|
||||
<dependency>
|
||||
<groupId>com.alibaba.cloud</groupId>
|
||||
<artifactId>spring-cloud-starter-alibaba-sentinel</artifactId>
|
||||
</dependency>
|
||||
|
||||
<!-- SpringBoot Actuator -->
|
||||
<dependency>
|
||||
<groupId>org.springframework.boot</groupId>
|
||||
<artifactId>spring-boot-starter-actuator</artifactId>
|
||||
</dependency>
|
||||
|
||||
<!-- Swagger UI -->
|
||||
<dependency>
|
||||
<groupId>io.springfox</groupId>
|
||||
<artifactId>springfox-swagger-ui</artifactId>
|
||||
<version>${swagger.fox.version}</version>
|
||||
</dependency>
|
||||
|
||||
<!-- Mysql Connector -->
|
||||
<dependency>
|
||||
<groupId>com.mysql</groupId>
|
||||
<artifactId>mysql-connector-j</artifactId>
|
||||
</dependency>
|
||||
|
||||
<!-- RuoYi Common DataSource -->
|
||||
<dependency>
|
||||
<groupId>com.boot</groupId>
|
||||
<artifactId>boot-common-datasource</artifactId>
|
||||
</dependency>
|
||||
|
||||
<!-- RuoYi Common DataScope -->
|
||||
<dependency>
|
||||
<groupId>com.boot</groupId>
|
||||
<artifactId>boot-common-datascope</artifactId>
|
||||
</dependency>
|
||||
|
||||
<!-- RuoYi Common Log -->
|
||||
<dependency>
|
||||
<groupId>com.boot</groupId>
|
||||
<artifactId>boot-common-log</artifactId>
|
||||
</dependency>
|
||||
|
||||
<!-- RuoYi Common Swagger -->
|
||||
<dependency>
|
||||
<groupId>com.boot</groupId>
|
||||
<artifactId>boot-common-swagger</artifactId>
|
||||
</dependency>
|
||||
|
||||
<!-- 系统服务的公共依赖-->
|
||||
<dependency>
|
||||
<groupId>com.boot</groupId>
|
||||
<artifactId>boot-system-common</artifactId>
|
||||
</dependency>
|
||||
|
||||
<dependency>
|
||||
<groupId>com.boot</groupId>
|
||||
<artifactId>boot-file-remote</artifactId>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>com.bawei</groupId>
|
||||
<artifactId>car-charging-common</artifactId>
|
||||
<version>3.6.3</version>
|
||||
</dependency>
|
||||
|
||||
|
||||
<dependency>
|
||||
<groupId>com.alipay.sdk</groupId>
|
||||
<artifactId>alipay-sdk-java</artifactId>
|
||||
<version>4.9.5.ALL</version>
|
||||
</dependency>
|
||||
|
||||
<dependency>
|
||||
<groupId>com.alipay.sdk</groupId>
|
||||
<artifactId>alipay-easysdk</artifactId>
|
||||
<version>2.2.0</version>
|
||||
</dependency>
|
||||
|
||||
|
||||
<dependency>
|
||||
<groupId>cn.hutool</groupId>
|
||||
<artifactId>hutool-all</artifactId>
|
||||
<version>5.8.3</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>com.bawei</groupId>
|
||||
<artifactId>car-pay-common</artifactId>
|
||||
<version>3.6.3</version>
|
||||
<scope>compile</scope>
|
||||
</dependency>
|
||||
|
||||
</dependencies>
|
||||
|
||||
<build>
|
||||
<finalName>${project.artifactId}</finalName>
|
||||
<plugins>
|
||||
<plugin>
|
||||
<groupId>org.springframework.boot</groupId>
|
||||
<artifactId>spring-boot-maven-plugin</artifactId>
|
||||
<executions>
|
||||
<execution>
|
||||
<goals>
|
||||
<goal>repackage</goal>
|
||||
</goals>
|
||||
</execution>
|
||||
</executions>
|
||||
</plugin>
|
||||
</plugins>
|
||||
</build>
|
||||
|
||||
|
||||
|
||||
|
||||
</project>
|
|
@ -0,0 +1,36 @@
|
|||
package com.pay;
|
||||
|
||||
import com.boot.common.security.annotation.EnableCustomConfig;
|
||||
import com.boot.common.security.annotation.EnableRyFeignClients;
|
||||
import com.boot.common.swagger.annotation.EnableCustomSwagger2;
|
||||
import org.mybatis.spring.annotation.MapperScan;
|
||||
import org.springframework.boot.SpringApplication;
|
||||
import org.springframework.boot.autoconfigure.SpringBootApplication;
|
||||
|
||||
/**
|
||||
* @ClassName PayApplication
|
||||
* @Description 描述
|
||||
* @Author Di.Wu
|
||||
* @Date 2024/3/6 19:53
|
||||
*/
|
||||
@EnableCustomConfig
|
||||
@EnableCustomSwagger2
|
||||
@EnableRyFeignClients
|
||||
@SpringBootApplication
|
||||
@MapperScan("com.pay.mapper")
|
||||
public class PayApplication {
|
||||
public static void main(String[] args)
|
||||
{
|
||||
SpringApplication.run(PayApplication.class, args);
|
||||
System.out.println("~~|~~~ 支付模块启动成功 ~~~|~~\n" +
|
||||
" --------- ---------\n" +
|
||||
" ||| ||| \n" +
|
||||
" \n" +
|
||||
" | | \n" +
|
||||
" (_ o _) \n" +
|
||||
" ||||||||||||||| \n" +
|
||||
" ~~~~~~~~~~~~~~~~~~~~~~~ \n" +
|
||||
" \n" +
|
||||
" ");
|
||||
}
|
||||
}
|
|
@ -0,0 +1,35 @@
|
|||
package com.pay.controller;
|
||||
|
||||
import com.boot.common.core.domain.Result;
|
||||
import com.pay.common.CustomerOrder;
|
||||
import com.pay.service.PayService;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.web.bind.annotation.PostMapping;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* @ClassName OrderController
|
||||
* @Description 描述
|
||||
* @Author Di.Wu
|
||||
* @Date 2024/3/6 22:38
|
||||
*/
|
||||
@RestController
|
||||
public class OrderController {
|
||||
|
||||
|
||||
@Autowired
|
||||
private PayService service;
|
||||
|
||||
@PostMapping("/list")
|
||||
public Result<List<CustomerOrder>> list(){
|
||||
|
||||
List<CustomerOrder> list = service.list();
|
||||
|
||||
return Result.ok(list);
|
||||
}
|
||||
|
||||
|
||||
|
||||
}
|
|
@ -0,0 +1,205 @@
|
|||
package com.pay.controller;
|
||||
|
||||
import com.alipay.api.AlipayApiException;
|
||||
import com.alipay.api.AlipayClient;
|
||||
import com.alipay.api.DefaultAlipayClient;
|
||||
import com.alipay.api.internal.util.AlipaySignature;
|
||||
import com.alipay.api.request.AlipayTradePagePayRequest;
|
||||
import com.pay.common.AlipayConfig;
|
||||
import com.pay.common.CustomerOrder;
|
||||
import com.pay.service.PayService;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.web.bind.annotation.GetMapping;
|
||||
import org.springframework.web.bind.annotation.PostMapping;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
|
||||
import javax.servlet.http.HttpServletRequest;
|
||||
import javax.servlet.http.HttpServletResponse;
|
||||
import java.util.HashMap;
|
||||
import java.util.Map;
|
||||
|
||||
/**
|
||||
* @ClassName payController
|
||||
* @Description 描述
|
||||
* @Author Di.Wu
|
||||
* @Date 2024/3/5 21:44
|
||||
*/
|
||||
@RestController
|
||||
public class payController {
|
||||
|
||||
@Autowired
|
||||
private AlipayConfig alipayConfig;
|
||||
|
||||
//支付宝网关地址
|
||||
private static final String GATEWAY_URL ="https://openapi-sandbox.dl.alipaydev.com/gateway.do";
|
||||
//格式
|
||||
private static final String FORMAT = "JSON";
|
||||
//字符集
|
||||
private static final String CHARSET = "UTF-8";
|
||||
//签名算法类型
|
||||
private static final String SIGN_TYPE = "RSA2";
|
||||
|
||||
private static final String PAY_SUCCESS = "支付成功";
|
||||
|
||||
|
||||
@Autowired
|
||||
private PayService service;
|
||||
|
||||
@GetMapping("/pay")
|
||||
public void pay(CustomerOrder customerOrder, HttpServletResponse httpServletResponse)throws Exception{
|
||||
|
||||
|
||||
// 创建支付宝客户端 // 创建支付宝客户端
|
||||
AlipayClient alipayClient = new DefaultAlipayClient(
|
||||
GATEWAY_URL, alipayConfig.getAppId(),
|
||||
alipayConfig.getAppPrivateKey(),
|
||||
FORMAT,
|
||||
CHARSET,
|
||||
alipayConfig.getAlipayPublicKey(),
|
||||
SIGN_TYPE
|
||||
);
|
||||
|
||||
// 创建支付请求
|
||||
AlipayTradePagePayRequest request = new AlipayTradePagePayRequest();
|
||||
// // 设置同步回调地址
|
||||
// alipayRequest.setReturnUrl(alipayConfig.getReturnUrl());
|
||||
// 设置异步通知地址
|
||||
request.setNotifyUrl(alipayConfig.getNotifyUrl());
|
||||
// // 设置异步回调地址
|
||||
// alipayRequest.setNotifyUrl(alipayConfig.getNotifyUrl());
|
||||
// 填充参数
|
||||
// 设置订单信息
|
||||
request.setBizContent("{\"out_trade_no\":\"" + customerOrder.getOrderId() + "\","
|
||||
+ "\"total_amount\":\"" + customerOrder.getOrderPrice() + "\","
|
||||
+ "\"subject\":\"" + customerOrder.getOrderSubject() + "\","
|
||||
+ "\"product_code\":\"FAST_INSTANT_TRADE_PAY\"}");
|
||||
|
||||
request.setReturnUrl("http://localhost:8080/pay/success");
|
||||
String form = "";
|
||||
try {
|
||||
form = alipayClient.pageExecute(request).getBody(); //调用SDK生成表单
|
||||
}catch (AlipayApiException e){
|
||||
e.printStackTrace();
|
||||
}
|
||||
httpServletResponse.setContentType("text/html;charset=" + CHARSET);
|
||||
httpServletResponse.getWriter().write(form); //直接将完整的表单html输出到页面
|
||||
httpServletResponse.getWriter().flush();
|
||||
// 直接将完整的表单html输出到页面
|
||||
httpServletResponse.getWriter().close();
|
||||
|
||||
}
|
||||
//
|
||||
//
|
||||
|
||||
|
||||
// @GetMapping("/pay") // &subject=xxx&traceNo=xxx&totalAmount=xxx
|
||||
// public void pay(CustomerOrder order, HttpServletResponse httpResponse) throws Exception {
|
||||
// AlipayClient alipayClient = new DefaultAlipayClient(GATEWAY_URL, alipayConfig.getAppId(),
|
||||
// alipayConfig.getAppPrivateKey(), FORMAT, CHARSET, alipayConfig.getAlipayPublicKey(), SIGN_TYPE);
|
||||
// AlipayTradePagePayRequest request = new AlipayTradePagePayRequest();
|
||||
// request.setNotifyUrl(alipayConfig.getNotifyUrl());
|
||||
// request.setBizContent("{\"out_trade_no\":\"" + order.getOrderId() + "\","
|
||||
// + "\"total_amount\":\"" + order.getOrderPrice() + "\","
|
||||
// + "\"subject\":\"" + order.getOrderSubject() + "\","
|
||||
// + "\"product_code\":\"FAST_INSTANT_TRADE_PAY\"}");
|
||||
// request.setReturnUrl("http://localhost/order/order");
|
||||
// String form = "";
|
||||
// try {
|
||||
// form = alipayClient.pageExecute(request).getBody(); // 调用SDK生成表单
|
||||
// } catch (AlipayApiException e) {
|
||||
// e.printStackTrace();
|
||||
// }
|
||||
// httpResponse.setContentType("text/html;charset=" + CHARSET);
|
||||
// httpResponse.getWriter().write(form);// 直接将完整的表单html输出到页面
|
||||
// httpResponse.getWriter().flush();
|
||||
// httpResponse.getWriter().close();
|
||||
// }
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
// @PostMapping("/notify") //注意这个必须是post接口 因为要接受到支付成功返回的信息
|
||||
// public String payNotify(HttpServletRequest request)throws Exception{
|
||||
// if(request.getParameter("trade_status").equals("TRADE_SUCCESS")){
|
||||
// System.out.println("~~~~~~~~支付异步回调~~~~~~~~~");
|
||||
// }
|
||||
//
|
||||
// HashMap<String, String> hashMap = new HashMap<>();
|
||||
//
|
||||
// Map<String, String[]> parameterMap = request.getParameterMap();
|
||||
//
|
||||
// for (String name : parameterMap.keySet()) {
|
||||
// hashMap.put(name, request.getParameter(name));
|
||||
// }
|
||||
//
|
||||
// String tradeNo = hashMap.get("out_trade_no");
|
||||
//
|
||||
// String gmtPayment = hashMap.get("gmt_payment");
|
||||
//
|
||||
// String alipayTradeNo = hashMap.get("trade_no");
|
||||
//
|
||||
// String sign = hashMap.get("sign");
|
||||
//
|
||||
// String content = AlipaySignature.getSignCheckContentV1(hashMap); //获取要验证支付宝返回参数
|
||||
//
|
||||
// boolean checkContent = AlipaySignature.rsa256CheckContent(content, sign, alipayConfig.getAlipayPublicKey(), "UTF-8" );
|
||||
//
|
||||
//
|
||||
// //支付宝验签
|
||||
// if(checkContent){
|
||||
// System.out.println("交易名称"+hashMap.get("subject"));
|
||||
// System.out.println("交易状态"+hashMap.get("trade_status"));
|
||||
// System.out.println("支付宝交易凭证号"+hashMap.get("trade_no"));
|
||||
// System.out.println("商户订单号"+hashMap.get("out_trade_no"));
|
||||
// System.out.println("交易金额"+hashMap.get("total_amount"));
|
||||
// }
|
||||
//
|
||||
// return PAY_SUCCESS;
|
||||
// }
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
@PostMapping("/notify") // 注意这里必须是POST接口
|
||||
public String payNotify(HttpServletRequest request) throws Exception {
|
||||
if (request.getParameter("trade_status").equals("TRADE_SUCCESS")) {
|
||||
System.out.println("=========支付宝异步回调========");
|
||||
|
||||
Map<String, String> params = new HashMap<>();
|
||||
Map<String, String[]> requestParams = request.getParameterMap();
|
||||
for (String name : requestParams.keySet()) {
|
||||
params.put(name, request.getParameter(name));
|
||||
// System.out.println(name + " = " + request.getParameter(name));
|
||||
}
|
||||
|
||||
String tradeNo = params.get("out_trade_no");
|
||||
String gmtPayment = params.get("gmt_payment");
|
||||
String alipayTradeNo = params.get("trade_no");
|
||||
String sign = params.get("sign");
|
||||
String content = AlipaySignature.getSignCheckContentV1(params);
|
||||
boolean checkSignature = AlipaySignature.rsa256CheckContent(content, sign, alipayConfig.getAlipayPublicKey(), "UTF-8");
|
||||
|
||||
// 支付宝验签
|
||||
if (checkSignature) {
|
||||
// 验签通过
|
||||
System.out.println("交易名称: " + params.get("subject"));
|
||||
System.out.println("交易状态: " + params.get("trade_status"));
|
||||
System.out.println("支付宝交易凭证号: " + params.get("trade_no"));
|
||||
System.out.println("商户订单号: " + params.get("out_trade_no"));
|
||||
System.out.println("交易金额: " + params.get("total_amount"));
|
||||
System.out.println("买家在支付宝唯一id: " + params.get("buyer_id"));
|
||||
System.out.println("买家付款时间: " + params.get("gmt_payment"));
|
||||
System.out.println("买家付款金额: " + params.get("buyer_pay_amount"));
|
||||
|
||||
// 更新订单未已支付
|
||||
|
||||
//查询订单表中的该订单的数据
|
||||
}
|
||||
}
|
||||
return PAY_SUCCESS;
|
||||
}
|
||||
|
||||
|
||||
}
|
|
@ -0,0 +1,17 @@
|
|||
package com.pay.mapper;
|
||||
|
||||
import com.pay.common.CustomerOrder;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* @ClassName PayMapper
|
||||
* @Description 描述
|
||||
* @Author Di.Wu
|
||||
* @Date 2024/3/6 19:05
|
||||
*/
|
||||
public interface PayMapper {
|
||||
|
||||
|
||||
List<CustomerOrder> list();
|
||||
}
|
|
@ -0,0 +1,17 @@
|
|||
package com.pay.service;
|
||||
|
||||
import com.pay.common.CustomerOrder;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* @ClassName PayService
|
||||
* @Description 描述
|
||||
* @Author Di.Wu
|
||||
* @Date 2024/3/6 19:04
|
||||
*/
|
||||
public interface PayService {
|
||||
|
||||
|
||||
List<CustomerOrder> list();
|
||||
}
|
|
@ -0,0 +1,33 @@
|
|||
package com.pay.service.impl;
|
||||
|
||||
import com.pay.common.CustomerOrder;
|
||||
import com.pay.mapper.PayMapper;
|
||||
import com.pay.service.PayService;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* @ClassName PayServiceImpl
|
||||
* @Description 描述
|
||||
* @Author Di.Wu
|
||||
* @Date 2024/3/6 19:04
|
||||
*/
|
||||
@Service
|
||||
public class PayServiceImpl implements PayService {
|
||||
|
||||
|
||||
@Autowired
|
||||
private PayMapper mapper;
|
||||
|
||||
|
||||
@Override
|
||||
public List<CustomerOrder> list() {
|
||||
|
||||
List<CustomerOrder> list = mapper.list();
|
||||
|
||||
return list;
|
||||
}
|
||||
|
||||
}
|
|
@ -0,0 +1,22 @@
|
|||
Spring Boot Version: ${spring-boot.version}
|
||||
Spring Application Name: ${spring.application.name}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~}
|
||||
| | }
|
||||
| | }
|
||||
| | }
|
||||
| | }
|
||||
| | }
|
||||
| | }
|
||||
~~~~~~~~~~~~~~~~~~ |~~~~~~~~~~~~~~~~~ }
|
||||
| | }
|
||||
| | }
|
||||
| | }
|
||||
| | }
|
||||
| | }
|
||||
| | }
|
||||
~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~}
|
|
@ -0,0 +1,34 @@
|
|||
# Tomcat
|
||||
server:
|
||||
port: 9003
|
||||
#支付宝
|
||||
alipay:
|
||||
app-id: 9021000135603046
|
||||
appPrivateKey: MIIEvgIBADANBgkqhkiG9w0BAQEFAASCBKgwggSkAgEAAoIBAQCt7JlHd+Z4BnKQRk0JCKZqqAYCfbWIit4LrcJO55f5odkynW3EtfgG7RtPkBBV0EFlF21M1IY1RJEp8UiEGSA9WCXM6XgQQEBPASQKUjuRgEDWOnylvhzprkZDuN1F35DXTl0GI09+60nmS9HO74n2tpuc2IdBQ6ZoYtgA4vtW75JFc07R9yWcPs/+aHaj6uvymE2DUTYn5S7DD+kpO3SNKuZnwLkDYTMRtWY9afTbIcE2vgT5SyF/ed70+L9fArIFWboC2Q91MqMIV5vnBu6mfMz5fvtb6f+r4lCM9qxgoQ3urAOvB3Yo6rFuwl4EOe3xDCw2DUXpolvPIoOedsoRAgMBAAECggEAa/lMl0/aZn0qNmNOg+M43VH+mSFNx7zeaMWwsaeZc8KEwqV1df+6QSKGJ/i6C2xEjOvkUSRHRV6R+EXwzQGEQFEu9m2iugQJaIK+yyGOFaBXoCejJopGDNTCjlyAElbe5quhmKPnQFX2BODhGeUf82geZ1sNbPkAoCFtE+/WNXtzgxGC6rzxAhhezFC4lOpd8wdt35CiMU7OMFrZU119QNXMRax48qotGhRkaUTsm2IJK4N9U6uiScmm+ZFn023VJxqLEqO9tlZoxXQuDGCkWLBe9vyFVyxUCeq5FFy2fSiUIwPMteH7dDHDNcF3ma0FSC+TmYfgs64Aj9M24ywEAQKBgQDVHA6dIukjeA2psb15Cd9aU4WfjXdLUCeuKQwS8XMDrnrqsJYdpnHyZ4OFRSYFDkvXdsMvOXEMnC02TONnyxhvuBbDdUfMJWW+LVjjzGEFs56ZajS4P9e3AUE/Xv+vcjLUeuF7sEWdQEYBC32tZv1zzc0wcP/Xh4IreseNEqgtIQKBgQDQ7ZyuYptRVvXilGaaQH187JhuXcFxUVKDymt4MzwmB5rFnpJ/e15fVLN67UImihXGOkTMqz7bIVCOG9428RcrE/4tRi9RawgiIPHJJvN5a1grYlFE/JNG0+NN0N5K4OvH/vKJvxB3ALJVggHYxpV916j4Az8szB4sfg+KpZyO8QKBgEIvnpJK/2FWrdegLhpjaIzjF8L/6qbnVAuREADqIDBqhh5Rja3TvdvtLjm7yh0T3ZYjemc2Tdf+wUP2CUJ5HzPDVr6JtCzBCKJR7yOAnDlrGbzH8Wuv2E0sBJmr5XkV3JeFOnZxvo0iIxu79+Jc9CZ9Klb7IVpM6a6bSVKVEspBAoGBALEUpBceFpzTgua/d1NIU9QdSHlK19lu3uw7Fem0K0fkbCcRZwPMEcnlJZaMH+RAZ4IzAvsiLc1XKEq6jhatM0Dc2jOPaC2u9R7QI36ll/mSpRFobI93MHD4yJC89pwqlU1W5kUf/xmOKpjU7zHH5w7ZSiqjvdj/TJfTZOLTyaVRAoGBAMHN6Wjhfp924nMoJBdoGzq4HRfbERMczJkMMuiw9QPr1UbgAOyOjWUsUwoTKkk17rZAoN2nXxfRMXxS2S9tAkJNmCcl65baXaKjwawXgWs5d4lwtv+o9mLf4pe+QQEg0W0ij+FOA9ahrZpMTrHmhjeYEYWO1U1luTpVfNaLdZwq
|
||||
aliPrivateKey: MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAlXwUY4he+8Eg7Wg60YMRbvpcUiEQtRteKK4q8oMP4pxOtql7SgYCkroRZN36Xx5vQcCsjTYGKQpQdOrJuL7Xz1w24HP9Uu06J+kNmsqmsWnq4GKnXy+uBQJxS78vfURK4nJ0Zsdwr/+Y00kQEWE2QAROLXLxsbaykBSTZZtgkt+OtCS6PTWq4qH9z2lRnSPJgVWnmKsHUeV7IO8KU0Szo08zcn4TZkWYUlRp6JXwk6ryYLczWRKVJhWu5y/YaPdPDA4AEN89eSLnDD4gOQc4hnwu6r9m21csGkMzEchuQ1GOs5hqi4qgo6Rkmo2vUsIqsfbDV0PLPd44GzoJUJCG5QIDAQAB
|
||||
notifyUrl: http://krkmsr.natappfree.cc/pay/notify
|
||||
returnUrl: http://127.0.0.1:9002/aliPay/return
|
||||
|
||||
# Spring
|
||||
spring:
|
||||
application:
|
||||
# 应用名称
|
||||
name: car-pay
|
||||
profiles:
|
||||
# 环境配置
|
||||
active: dev
|
||||
cloud:
|
||||
nacos:
|
||||
discovery:
|
||||
# 服务注册地址
|
||||
server-addr: 122.152.215.207:8848
|
||||
namespace: wdwdwd
|
||||
config:
|
||||
# 配置中心地址
|
||||
server-addr: 122.152.215.207:8848
|
||||
# 配置文件格式
|
||||
file-extension: yml
|
||||
# 共享配置
|
||||
shared-configs:
|
||||
- application-${spring.profiles.active}.${spring.cloud.nacos.config.file-extension}
|
||||
namespace: wdwdwd
|
|
@ -0,0 +1,30 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
|
||||
<mapper namespace="com.pay.mapper.PayMapper">
|
||||
|
||||
|
||||
<resultMap type="com.pay.common.CustomerOrder" id="OrderMap">
|
||||
<id property="id" column="id"/>
|
||||
<result property="orderId" column="order_id"/>
|
||||
<result property="payStatus" column="pay_status"/>
|
||||
<result property="orderSubject" column="order_subject"/>
|
||||
<result property="orderPrice" column="order_price"/>
|
||||
</resultMap>
|
||||
|
||||
|
||||
|
||||
<select id="list" resultMap="OrderMap">
|
||||
|
||||
SELECT
|
||||
customer_order.id ,
|
||||
customer_order.order_id,
|
||||
customer_order.pay_status,
|
||||
customer_order.order_subject,
|
||||
customer_order.order_price
|
||||
FROM customer_order
|
||||
|
||||
|
||||
|
||||
</select>
|
||||
</mapper>
|
|
@ -0,0 +1,22 @@
|
|||
Spring Boot Version: ${spring-boot.version}
|
||||
Spring Application Name: ${spring.application.name}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~}
|
||||
| | }
|
||||
| | }
|
||||
| | }
|
||||
| | }
|
||||
| | }
|
||||
| | }
|
||||
~~~~~~~~~~~~~~~~~~ |~~~~~~~~~~~~~~~~~ }
|
||||
| | }
|
||||
| | }
|
||||
| | }
|
||||
| | }
|
||||
| | }
|
||||
| | }
|
||||
~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~}
|
|
@ -0,0 +1,34 @@
|
|||
# Tomcat
|
||||
server:
|
||||
port: 9003
|
||||
#支付宝
|
||||
alipay:
|
||||
app-id: 9021000135603046
|
||||
appPrivateKey: MIIEvgIBADANBgkqhkiG9w0BAQEFAASCBKgwggSkAgEAAoIBAQCt7JlHd+Z4BnKQRk0JCKZqqAYCfbWIit4LrcJO55f5odkynW3EtfgG7RtPkBBV0EFlF21M1IY1RJEp8UiEGSA9WCXM6XgQQEBPASQKUjuRgEDWOnylvhzprkZDuN1F35DXTl0GI09+60nmS9HO74n2tpuc2IdBQ6ZoYtgA4vtW75JFc07R9yWcPs/+aHaj6uvymE2DUTYn5S7DD+kpO3SNKuZnwLkDYTMRtWY9afTbIcE2vgT5SyF/ed70+L9fArIFWboC2Q91MqMIV5vnBu6mfMz5fvtb6f+r4lCM9qxgoQ3urAOvB3Yo6rFuwl4EOe3xDCw2DUXpolvPIoOedsoRAgMBAAECggEAa/lMl0/aZn0qNmNOg+M43VH+mSFNx7zeaMWwsaeZc8KEwqV1df+6QSKGJ/i6C2xEjOvkUSRHRV6R+EXwzQGEQFEu9m2iugQJaIK+yyGOFaBXoCejJopGDNTCjlyAElbe5quhmKPnQFX2BODhGeUf82geZ1sNbPkAoCFtE+/WNXtzgxGC6rzxAhhezFC4lOpd8wdt35CiMU7OMFrZU119QNXMRax48qotGhRkaUTsm2IJK4N9U6uiScmm+ZFn023VJxqLEqO9tlZoxXQuDGCkWLBe9vyFVyxUCeq5FFy2fSiUIwPMteH7dDHDNcF3ma0FSC+TmYfgs64Aj9M24ywEAQKBgQDVHA6dIukjeA2psb15Cd9aU4WfjXdLUCeuKQwS8XMDrnrqsJYdpnHyZ4OFRSYFDkvXdsMvOXEMnC02TONnyxhvuBbDdUfMJWW+LVjjzGEFs56ZajS4P9e3AUE/Xv+vcjLUeuF7sEWdQEYBC32tZv1zzc0wcP/Xh4IreseNEqgtIQKBgQDQ7ZyuYptRVvXilGaaQH187JhuXcFxUVKDymt4MzwmB5rFnpJ/e15fVLN67UImihXGOkTMqz7bIVCOG9428RcrE/4tRi9RawgiIPHJJvN5a1grYlFE/JNG0+NN0N5K4OvH/vKJvxB3ALJVggHYxpV916j4Az8szB4sfg+KpZyO8QKBgEIvnpJK/2FWrdegLhpjaIzjF8L/6qbnVAuREADqIDBqhh5Rja3TvdvtLjm7yh0T3ZYjemc2Tdf+wUP2CUJ5HzPDVr6JtCzBCKJR7yOAnDlrGbzH8Wuv2E0sBJmr5XkV3JeFOnZxvo0iIxu79+Jc9CZ9Klb7IVpM6a6bSVKVEspBAoGBALEUpBceFpzTgua/d1NIU9QdSHlK19lu3uw7Fem0K0fkbCcRZwPMEcnlJZaMH+RAZ4IzAvsiLc1XKEq6jhatM0Dc2jOPaC2u9R7QI36ll/mSpRFobI93MHD4yJC89pwqlU1W5kUf/xmOKpjU7zHH5w7ZSiqjvdj/TJfTZOLTyaVRAoGBAMHN6Wjhfp924nMoJBdoGzq4HRfbERMczJkMMuiw9QPr1UbgAOyOjWUsUwoTKkk17rZAoN2nXxfRMXxS2S9tAkJNmCcl65baXaKjwawXgWs5d4lwtv+o9mLf4pe+QQEg0W0ij+FOA9ahrZpMTrHmhjeYEYWO1U1luTpVfNaLdZwq
|
||||
aliPrivateKey: MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAlXwUY4he+8Eg7Wg60YMRbvpcUiEQtRteKK4q8oMP4pxOtql7SgYCkroRZN36Xx5vQcCsjTYGKQpQdOrJuL7Xz1w24HP9Uu06J+kNmsqmsWnq4GKnXy+uBQJxS78vfURK4nJ0Zsdwr/+Y00kQEWE2QAROLXLxsbaykBSTZZtgkt+OtCS6PTWq4qH9z2lRnSPJgVWnmKsHUeV7IO8KU0Szo08zcn4TZkWYUlRp6JXwk6ryYLczWRKVJhWu5y/YaPdPDA4AEN89eSLnDD4gOQc4hnwu6r9m21csGkMzEchuQ1GOs5hqi4qgo6Rkmo2vUsIqsfbDV0PLPd44GzoJUJCG5QIDAQAB
|
||||
notifyUrl: http://krkmsr.natappfree.cc/pay/notify
|
||||
returnUrl: http://127.0.0.1:9002/aliPay/return
|
||||
|
||||
# Spring
|
||||
spring:
|
||||
application:
|
||||
# 应用名称
|
||||
name: car-pay
|
||||
profiles:
|
||||
# 环境配置
|
||||
active: dev
|
||||
cloud:
|
||||
nacos:
|
||||
discovery:
|
||||
# 服务注册地址
|
||||
server-addr: 122.152.215.207:8848
|
||||
namespace: wdwdwd
|
||||
config:
|
||||
# 配置中心地址
|
||||
server-addr: 122.152.215.207:8848
|
||||
# 配置文件格式
|
||||
file-extension: yml
|
||||
# 共享配置
|
||||
shared-configs:
|
||||
- application-${spring.profiles.active}.${spring.cloud.nacos.config.file-extension}
|
||||
namespace: wdwdwd
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
|
@ -0,0 +1,30 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
|
||||
<mapper namespace="com.pay.mapper.PayMapper">
|
||||
|
||||
|
||||
<resultMap type="com.pay.common.CustomerOrder" id="OrderMap">
|
||||
<id property="id" column="id"/>
|
||||
<result property="orderId" column="order_id"/>
|
||||
<result property="payStatus" column="pay_status"/>
|
||||
<result property="orderSubject" column="order_subject"/>
|
||||
<result property="orderPrice" column="order_price"/>
|
||||
</resultMap>
|
||||
|
||||
|
||||
|
||||
<select id="list" resultMap="OrderMap">
|
||||
|
||||
SELECT
|
||||
customer_order.id ,
|
||||
customer_order.order_id,
|
||||
customer_order.pay_status,
|
||||
customer_order.order_subject,
|
||||
customer_order.order_price
|
||||
FROM customer_order
|
||||
|
||||
|
||||
|
||||
</select>
|
||||
</mapper>
|
|
@ -0,0 +1,27 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project xmlns="http://maven.apache.org/POM/4.0.0"
|
||||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
<parent>
|
||||
<groupId>com.boot</groupId>
|
||||
<artifactId>boot</artifactId>
|
||||
<version>3.6.3</version>
|
||||
</parent>
|
||||
|
||||
<groupId>com.bawei</groupId>
|
||||
<artifactId>car-pay</artifactId>
|
||||
<packaging>pom</packaging>
|
||||
<modules>
|
||||
<module>car-pay-common</module>
|
||||
<module>car-pay-remote</module>
|
||||
<module>car-pay-server</module>
|
||||
</modules>
|
||||
|
||||
<properties>
|
||||
<maven.compiler.source>17</maven.compiler.source>
|
||||
<maven.compiler.target>17</maven.compiler.target>
|
||||
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
||||
</properties>
|
||||
|
||||
</project>
|
|
@ -0,0 +1,203 @@
|
|||
15:24:39.806 [http-nio-9200-exec-3] ERROR c.a.c.n.d.NacosDiscoveryClient - [getServices,86] - get service name from nacos server failed.
|
||||
com.alibaba.nacos.api.exception.NacosException: Client not connected, current status:UNHEALTHY
|
||||
at com.alibaba.nacos.common.remote.client.RpcClient.request(RpcClient.java:639)
|
||||
at com.alibaba.nacos.common.remote.client.RpcClient.request(RpcClient.java:619)
|
||||
at com.alibaba.nacos.client.naming.remote.gprc.NamingGrpcClientProxy.requestToServer(NamingGrpcClientProxy.java:356)
|
||||
at com.alibaba.nacos.client.naming.remote.gprc.NamingGrpcClientProxy.getServiceList(NamingGrpcClientProxy.java:282)
|
||||
at com.alibaba.nacos.client.naming.remote.NamingClientProxyDelegate.getServiceList(NamingClientProxyDelegate.java:162)
|
||||
at com.alibaba.nacos.client.naming.NacosNamingService.getServicesOfServer(NacosNamingService.java:461)
|
||||
at com.alibaba.nacos.client.naming.NacosNamingService.getServicesOfServer(NacosNamingService.java:449)
|
||||
at com.alibaba.cloud.nacos.discovery.NacosServiceDiscovery.getServices(NacosServiceDiscovery.java:70)
|
||||
at com.alibaba.cloud.nacos.discovery.NacosDiscoveryClient.getServices(NacosDiscoveryClient.java:80)
|
||||
at org.springframework.cloud.client.discovery.composite.CompositeDiscoveryClient.getServices(CompositeDiscoveryClient.java:68)
|
||||
at org.springframework.cloud.client.discovery.health.DiscoveryClientHealthIndicator.health(DiscoveryClientHealthIndicator.java:73)
|
||||
at org.springframework.boot.actuate.health.HealthIndicator.getHealth(HealthIndicator.java:37)
|
||||
at org.springframework.boot.actuate.health.HealthEndpointWebExtension.getHealth(HealthEndpointWebExtension.java:104)
|
||||
at org.springframework.boot.actuate.health.HealthEndpointWebExtension.getHealth(HealthEndpointWebExtension.java:46)
|
||||
at org.springframework.boot.actuate.health.HealthEndpointSupport.getLoggedHealth(HealthEndpointSupport.java:172)
|
||||
at org.springframework.boot.actuate.health.HealthEndpointSupport.getContribution(HealthEndpointSupport.java:145)
|
||||
at org.springframework.boot.actuate.health.HealthEndpointSupport.getAggregateContribution(HealthEndpointSupport.java:156)
|
||||
at org.springframework.boot.actuate.health.HealthEndpointSupport.getContribution(HealthEndpointSupport.java:141)
|
||||
at org.springframework.boot.actuate.health.HealthEndpointSupport.getAggregateContribution(HealthEndpointSupport.java:156)
|
||||
at org.springframework.boot.actuate.health.HealthEndpointSupport.getContribution(HealthEndpointSupport.java:141)
|
||||
at org.springframework.boot.actuate.health.HealthEndpointSupport.getHealth(HealthEndpointSupport.java:110)
|
||||
at org.springframework.boot.actuate.health.HealthEndpointSupport.getHealth(HealthEndpointSupport.java:81)
|
||||
at org.springframework.boot.actuate.health.HealthEndpointWebExtension.health(HealthEndpointWebExtension.java:90)
|
||||
at org.springframework.boot.actuate.health.HealthEndpointWebExtension.health(HealthEndpointWebExtension.java:79)
|
||||
at jdk.internal.reflect.GeneratedMethodAccessor77.invoke(Unknown Source)
|
||||
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
|
||||
at java.base/java.lang.reflect.Method.invoke(Method.java:568)
|
||||
at org.springframework.util.ReflectionUtils.invokeMethod(ReflectionUtils.java:282)
|
||||
at org.springframework.boot.actuate.endpoint.invoke.reflect.ReflectiveOperationInvoker.invoke(ReflectiveOperationInvoker.java:74)
|
||||
at org.springframework.boot.actuate.endpoint.annotation.AbstractDiscoveredOperation.invoke(AbstractDiscoveredOperation.java:60)
|
||||
at org.springframework.boot.actuate.endpoint.web.servlet.AbstractWebMvcEndpointHandlerMapping$ServletWebOperationAdapter.handle(AbstractWebMvcEndpointHandlerMapping.java:357)
|
||||
at org.springframework.boot.actuate.endpoint.web.servlet.AbstractWebMvcEndpointHandlerMapping$OperationHandler.handle(AbstractWebMvcEndpointHandlerMapping.java:464)
|
||||
at jdk.internal.reflect.GeneratedMethodAccessor63.invoke(Unknown Source)
|
||||
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
|
||||
at java.base/java.lang.reflect.Method.invoke(Method.java:568)
|
||||
at org.springframework.web.method.support.InvocableHandlerMethod.doInvoke(InvocableHandlerMethod.java:205)
|
||||
at org.springframework.web.method.support.InvocableHandlerMethod.invokeForRequest(InvocableHandlerMethod.java:150)
|
||||
at org.springframework.web.servlet.mvc.method.annotation.ServletInvocableHandlerMethod.invokeAndHandle(ServletInvocableHandlerMethod.java:117)
|
||||
at org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.invokeHandlerMethod(RequestMappingHandlerAdapter.java:895)
|
||||
at org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.handleInternal(RequestMappingHandlerAdapter.java:808)
|
||||
at org.springframework.web.servlet.mvc.method.AbstractHandlerMethodAdapter.handle(AbstractHandlerMethodAdapter.java:87)
|
||||
at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:1072)
|
||||
at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:965)
|
||||
at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:1006)
|
||||
at org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:898)
|
||||
at javax.servlet.http.HttpServlet.service(HttpServlet.java:529)
|
||||
at org.springframework.web.servlet.FrameworkServlet.service(FrameworkServlet.java:883)
|
||||
at javax.servlet.http.HttpServlet.service(HttpServlet.java:623)
|
||||
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:209)
|
||||
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:153)
|
||||
at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:51)
|
||||
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:178)
|
||||
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:153)
|
||||
at org.springframework.web.filter.RequestContextFilter.doFilterInternal(RequestContextFilter.java:100)
|
||||
at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:117)
|
||||
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:178)
|
||||
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:153)
|
||||
at org.springframework.web.filter.FormContentFilter.doFilterInternal(FormContentFilter.java:93)
|
||||
at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:117)
|
||||
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:178)
|
||||
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:153)
|
||||
at org.springframework.boot.actuate.metrics.web.servlet.WebMvcMetricsFilter.doFilterInternal(WebMvcMetricsFilter.java:96)
|
||||
at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:117)
|
||||
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:178)
|
||||
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:153)
|
||||
at org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:201)
|
||||
at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:117)
|
||||
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:178)
|
||||
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:153)
|
||||
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:167)
|
||||
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:90)
|
||||
at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:481)
|
||||
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:130)
|
||||
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:93)
|
||||
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:74)
|
||||
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:343)
|
||||
at org.apache.coyote.http11.Http11Processor.service(Http11Processor.java:390)
|
||||
at org.apache.coyote.AbstractProcessorLight.process(AbstractProcessorLight.java:63)
|
||||
at org.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:926)
|
||||
at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1791)
|
||||
at org.apache.tomcat.util.net.SocketProcessorBase.run(SocketProcessorBase.java:52)
|
||||
at org.apache.tomcat.util.threads.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1191)
|
||||
at org.apache.tomcat.util.threads.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:659)
|
||||
at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
|
||||
at java.base/java.lang.Thread.run(Thread.java:842)
|
||||
15:24:49.781 [http-nio-9200-exec-3] ERROR c.b.c.s.h.GlobalExceptionHandler - [handleException,117] - 请求地址'/actuator/health',发生系统异常.
|
||||
org.apache.catalina.connector.ClientAbortException: java.io.IOException: 你的主机中的软件中止了一个已建立的连接。
|
||||
at org.apache.catalina.connector.OutputBuffer.doFlush(OutputBuffer.java:309)
|
||||
at org.apache.catalina.connector.OutputBuffer.flush(OutputBuffer.java:271)
|
||||
at org.apache.catalina.connector.CoyoteOutputStream.flush(CoyoteOutputStream.java:120)
|
||||
at java.base/java.io.FilterOutputStream.flush(FilterOutputStream.java:153)
|
||||
at com.fasterxml.jackson.core.json.UTF8JsonGenerator.flush(UTF8JsonGenerator.java:1187)
|
||||
at com.fasterxml.jackson.databind.ObjectWriter.writeValue(ObjectWriter.java:1009)
|
||||
at org.springframework.http.converter.json.AbstractJackson2HttpMessageConverter.writeInternal(AbstractJackson2HttpMessageConverter.java:456)
|
||||
at org.springframework.http.converter.AbstractGenericHttpMessageConverter.write(AbstractGenericHttpMessageConverter.java:104)
|
||||
at org.springframework.web.servlet.mvc.method.annotation.AbstractMessageConverterMethodProcessor.writeWithMessageConverters(AbstractMessageConverterMethodProcessor.java:290)
|
||||
at org.springframework.web.servlet.mvc.method.annotation.HttpEntityMethodProcessor.handleReturnValue(HttpEntityMethodProcessor.java:219)
|
||||
at org.springframework.web.method.support.HandlerMethodReturnValueHandlerComposite.handleReturnValue(HandlerMethodReturnValueHandlerComposite.java:78)
|
||||
at org.springframework.web.servlet.mvc.method.annotation.ServletInvocableHandlerMethod.invokeAndHandle(ServletInvocableHandlerMethod.java:135)
|
||||
at org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.invokeHandlerMethod(RequestMappingHandlerAdapter.java:895)
|
||||
at org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.handleInternal(RequestMappingHandlerAdapter.java:808)
|
||||
at org.springframework.web.servlet.mvc.method.AbstractHandlerMethodAdapter.handle(AbstractHandlerMethodAdapter.java:87)
|
||||
at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:1072)
|
||||
at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:965)
|
||||
at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:1006)
|
||||
at org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:898)
|
||||
at javax.servlet.http.HttpServlet.service(HttpServlet.java:529)
|
||||
at org.springframework.web.servlet.FrameworkServlet.service(FrameworkServlet.java:883)
|
||||
at javax.servlet.http.HttpServlet.service(HttpServlet.java:623)
|
||||
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:209)
|
||||
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:153)
|
||||
at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:51)
|
||||
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:178)
|
||||
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:153)
|
||||
at org.springframework.web.filter.RequestContextFilter.doFilterInternal(RequestContextFilter.java:100)
|
||||
at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:117)
|
||||
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:178)
|
||||
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:153)
|
||||
at org.springframework.web.filter.FormContentFilter.doFilterInternal(FormContentFilter.java:93)
|
||||
at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:117)
|
||||
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:178)
|
||||
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:153)
|
||||
at org.springframework.boot.actuate.metrics.web.servlet.WebMvcMetricsFilter.doFilterInternal(WebMvcMetricsFilter.java:96)
|
||||
at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:117)
|
||||
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:178)
|
||||
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:153)
|
||||
at org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:201)
|
||||
at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:117)
|
||||
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:178)
|
||||
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:153)
|
||||
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:167)
|
||||
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:90)
|
||||
at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:481)
|
||||
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:130)
|
||||
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:93)
|
||||
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:74)
|
||||
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:343)
|
||||
at org.apache.coyote.http11.Http11Processor.service(Http11Processor.java:390)
|
||||
at org.apache.coyote.AbstractProcessorLight.process(AbstractProcessorLight.java:63)
|
||||
at org.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:926)
|
||||
at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1791)
|
||||
at org.apache.tomcat.util.net.SocketProcessorBase.run(SocketProcessorBase.java:52)
|
||||
at org.apache.tomcat.util.threads.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1191)
|
||||
at org.apache.tomcat.util.threads.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:659)
|
||||
at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
|
||||
at java.base/java.lang.Thread.run(Thread.java:842)
|
||||
Caused by: java.io.IOException: 你的主机中的软件中止了一个已建立的连接。
|
||||
at java.base/sun.nio.ch.SocketDispatcher.write0(Native Method)
|
||||
at java.base/sun.nio.ch.SocketDispatcher.write(SocketDispatcher.java:54)
|
||||
at java.base/sun.nio.ch.IOUtil.writeFromNativeBuffer(IOUtil.java:132)
|
||||
at java.base/sun.nio.ch.IOUtil.write(IOUtil.java:97)
|
||||
at java.base/sun.nio.ch.IOUtil.write(IOUtil.java:53)
|
||||
at java.base/sun.nio.ch.SocketChannelImpl.write(SocketChannelImpl.java:532)
|
||||
at org.apache.tomcat.util.net.NioChannel.write(NioChannel.java:136)
|
||||
at org.apache.tomcat.util.net.NioEndpoint$NioSocketWrapper.doWrite(NioEndpoint.java:1431)
|
||||
at org.apache.tomcat.util.net.SocketWrapperBase.doWrite(SocketWrapperBase.java:775)
|
||||
at org.apache.tomcat.util.net.SocketWrapperBase.flushBlocking(SocketWrapperBase.java:739)
|
||||
at org.apache.tomcat.util.net.SocketWrapperBase.flush(SocketWrapperBase.java:723)
|
||||
at org.apache.coyote.http11.Http11OutputBuffer$SocketOutputBuffer.flush(Http11OutputBuffer.java:566)
|
||||
at org.apache.coyote.http11.filters.ChunkedOutputFilter.flush(ChunkedOutputFilter.java:157)
|
||||
at org.apache.coyote.http11.Http11OutputBuffer.flush(Http11OutputBuffer.java:220)
|
||||
at org.apache.coyote.http11.Http11Processor.flush(Http11Processor.java:1246)
|
||||
at org.apache.coyote.AbstractProcessor.action(AbstractProcessor.java:398)
|
||||
at org.apache.coyote.Response.action(Response.java:207)
|
||||
at org.apache.catalina.connector.OutputBuffer.doFlush(OutputBuffer.java:305)
|
||||
... 58 common frames omitted
|
||||
22:29:55.510 [SpringApplicationShutdownHook] ERROR c.a.c.n.r.NacosServiceRegistry - [deregister,111] - ERR_NACOS_DEREGISTER, de-register failed...NacosRegistration{nacosDiscoveryProperties=NacosDiscoveryProperties{serverAddr='122.152.215.207:8848', username='', password='', endpoint='', namespace='wdwdwd', watchDelay=30000, logName='', service='boot-auth', weight=1.0, clusterName='DEFAULT', group='DEFAULT_GROUP', namingLoadCacheAtStart='false', metadata={IPv6=null, preserved.register.source=SPRING_CLOUD}, registerEnabled=true, ip='10.3.216.28', networkInterface='', port=9200, secure=false, accessKey='', secretKey='', heartBeatInterval=null, heartBeatTimeout=null, ipDeleteTimeout=null, instanceEnabled=true, ephemeral=true, failureToleranceEnabled=false}, ipDeleteTimeout=null, failFast=true}},
|
||||
com.alibaba.nacos.api.exception.NacosException: Client not connected, current status:UNHEALTHY
|
||||
at com.alibaba.nacos.common.remote.client.RpcClient.request(RpcClient.java:639)
|
||||
at com.alibaba.nacos.common.remote.client.RpcClient.request(RpcClient.java:619)
|
||||
at com.alibaba.nacos.client.naming.remote.gprc.NamingGrpcClientProxy.requestToServer(NamingGrpcClientProxy.java:356)
|
||||
at com.alibaba.nacos.client.naming.remote.gprc.NamingGrpcClientProxy.doDeregisterService(NamingGrpcClientProxy.java:233)
|
||||
at com.alibaba.nacos.client.naming.remote.gprc.NamingGrpcClientProxy.deregisterService(NamingGrpcClientProxy.java:219)
|
||||
at com.alibaba.nacos.client.naming.remote.NamingClientProxyDelegate.deregisterService(NamingClientProxyDelegate.java:125)
|
||||
at com.alibaba.nacos.client.naming.NacosNamingService.deregisterInstance(NacosNamingService.java:201)
|
||||
at com.alibaba.nacos.client.naming.NacosNamingService.deregisterInstance(NacosNamingService.java:191)
|
||||
at com.alibaba.cloud.nacos.registry.NacosServiceRegistry.deregister(NacosServiceRegistry.java:107)
|
||||
at org.springframework.cloud.client.serviceregistry.AbstractAutoServiceRegistration.deregister(AbstractAutoServiceRegistration.java:249)
|
||||
at org.springframework.cloud.client.serviceregistry.AbstractAutoServiceRegistration.stop(AbstractAutoServiceRegistration.java:264)
|
||||
at org.springframework.cloud.client.serviceregistry.AbstractAutoServiceRegistration.destroy(AbstractAutoServiceRegistration.java:201)
|
||||
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
|
||||
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77)
|
||||
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
|
||||
at java.base/java.lang.reflect.Method.invoke(Method.java:568)
|
||||
at org.springframework.beans.factory.annotation.InitDestroyAnnotationBeanPostProcessor$LifecycleElement.invoke(InitDestroyAnnotationBeanPostProcessor.java:389)
|
||||
at org.springframework.beans.factory.annotation.InitDestroyAnnotationBeanPostProcessor$LifecycleMetadata.invokeDestroyMethods(InitDestroyAnnotationBeanPostProcessor.java:347)
|
||||
at org.springframework.beans.factory.annotation.InitDestroyAnnotationBeanPostProcessor.postProcessBeforeDestruction(InitDestroyAnnotationBeanPostProcessor.java:177)
|
||||
at org.springframework.beans.factory.support.DisposableBeanAdapter.destroy(DisposableBeanAdapter.java:197)
|
||||
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.destroyBean(DefaultSingletonBeanRegistry.java:587)
|
||||
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.destroySingleton(DefaultSingletonBeanRegistry.java:559)
|
||||
at org.springframework.beans.factory.support.DefaultListableBeanFactory.destroySingleton(DefaultListableBeanFactory.java:1163)
|
||||
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.destroySingletons(DefaultSingletonBeanRegistry.java:520)
|
||||
at org.springframework.beans.factory.support.DefaultListableBeanFactory.destroySingletons(DefaultListableBeanFactory.java:1156)
|
||||
at org.springframework.context.support.AbstractApplicationContext.destroyBeans(AbstractApplicationContext.java:1108)
|
||||
at org.springframework.context.support.AbstractApplicationContext.doClose(AbstractApplicationContext.java:1077)
|
||||
at org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.doClose(ServletWebServerApplicationContext.java:174)
|
||||
at org.springframework.context.support.AbstractApplicationContext.close(AbstractApplicationContext.java:1023)
|
||||
at org.springframework.boot.SpringApplicationShutdownHook.closeAndWait(SpringApplicationShutdownHook.java:145)
|
||||
at java.base/java.lang.Iterable.forEach(Iterable.java:75)
|
||||
at org.springframework.boot.SpringApplicationShutdownHook.run(SpringApplicationShutdownHook.java:114)
|
||||
at java.base/java.lang.Thread.run(Thread.java:842)
|
|
@ -0,0 +1,411 @@
|
|||
17:09:39.106 [http-nio-9200-exec-1] ERROR c.b.c.s.h.GlobalExceptionHandler - [handleRuntimeException,106] - 请求地址'/login',发生未知异常.
|
||||
org.springframework.dao.QueryTimeoutException: Redis command timed out; nested exception is io.lettuce.core.RedisCommandTimeoutException: Command timed out after 1 minute(s)
|
||||
at org.springframework.data.redis.connection.lettuce.LettuceExceptionConverter.convert(LettuceExceptionConverter.java:70)
|
||||
at org.springframework.data.redis.connection.lettuce.LettuceExceptionConverter.convert(LettuceExceptionConverter.java:41)
|
||||
at org.springframework.data.redis.PassThroughExceptionTranslationStrategy.translate(PassThroughExceptionTranslationStrategy.java:44)
|
||||
at org.springframework.data.redis.FallbackExceptionTranslationStrategy.translate(FallbackExceptionTranslationStrategy.java:42)
|
||||
at org.springframework.data.redis.connection.lettuce.LettuceConnection.convertLettuceAccessException(LettuceConnection.java:277)
|
||||
at org.springframework.data.redis.connection.lettuce.LettuceConnection.await(LettuceConnection.java:1085)
|
||||
at org.springframework.data.redis.connection.lettuce.LettuceConnection.lambda$doInvoke$4(LettuceConnection.java:938)
|
||||
at org.springframework.data.redis.connection.lettuce.LettuceInvoker$Synchronizer.invoke(LettuceInvoker.java:665)
|
||||
at org.springframework.data.redis.connection.lettuce.LettuceInvoker.just(LettuceInvoker.java:94)
|
||||
at org.springframework.data.redis.connection.lettuce.LettuceStringCommands.get(LettuceStringCommands.java:55)
|
||||
at org.springframework.data.redis.connection.DefaultedRedisConnection.get(DefaultedRedisConnection.java:279)
|
||||
at org.springframework.data.redis.core.DefaultValueOperations$1.inRedis(DefaultValueOperations.java:58)
|
||||
at org.springframework.data.redis.core.AbstractOperations$ValueDeserializingRedisCallback.doInRedis(AbstractOperations.java:61)
|
||||
at org.springframework.data.redis.core.RedisTemplate.execute(RedisTemplate.java:224)
|
||||
at org.springframework.data.redis.core.RedisTemplate.execute(RedisTemplate.java:191)
|
||||
at org.springframework.data.redis.core.AbstractOperations.execute(AbstractOperations.java:97)
|
||||
at org.springframework.data.redis.core.DefaultValueOperations.get(DefaultValueOperations.java:54)
|
||||
at com.boot.common.redis.service.RedisService.getCacheObject(RedisService.java:108)
|
||||
at com.boot.auth.service.SysPasswordService.validate(SysPasswordService.java:47)
|
||||
at com.boot.auth.service.SysLoginService.login(SysLoginService.java:99)
|
||||
at com.boot.auth.controller.TokenController.login(TokenController.java:39)
|
||||
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
|
||||
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77)
|
||||
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
|
||||
at java.base/java.lang.reflect.Method.invoke(Method.java:568)
|
||||
at org.springframework.web.method.support.InvocableHandlerMethod.doInvoke(InvocableHandlerMethod.java:205)
|
||||
at org.springframework.web.method.support.InvocableHandlerMethod.invokeForRequest(InvocableHandlerMethod.java:150)
|
||||
at org.springframework.web.servlet.mvc.method.annotation.ServletInvocableHandlerMethod.invokeAndHandle(ServletInvocableHandlerMethod.java:117)
|
||||
at org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.invokeHandlerMethod(RequestMappingHandlerAdapter.java:895)
|
||||
at org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.handleInternal(RequestMappingHandlerAdapter.java:808)
|
||||
at org.springframework.web.servlet.mvc.method.AbstractHandlerMethodAdapter.handle(AbstractHandlerMethodAdapter.java:87)
|
||||
at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:1072)
|
||||
at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:965)
|
||||
at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:1006)
|
||||
at org.springframework.web.servlet.FrameworkServlet.doPost(FrameworkServlet.java:909)
|
||||
at javax.servlet.http.HttpServlet.service(HttpServlet.java:555)
|
||||
at org.springframework.web.servlet.FrameworkServlet.service(FrameworkServlet.java:883)
|
||||
at javax.servlet.http.HttpServlet.service(HttpServlet.java:623)
|
||||
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:209)
|
||||
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:153)
|
||||
at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:51)
|
||||
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:178)
|
||||
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:153)
|
||||
at org.springframework.web.filter.RequestContextFilter.doFilterInternal(RequestContextFilter.java:100)
|
||||
at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:117)
|
||||
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:178)
|
||||
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:153)
|
||||
at org.springframework.web.filter.FormContentFilter.doFilterInternal(FormContentFilter.java:93)
|
||||
at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:117)
|
||||
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:178)
|
||||
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:153)
|
||||
at org.springframework.boot.actuate.metrics.web.servlet.WebMvcMetricsFilter.doFilterInternal(WebMvcMetricsFilter.java:96)
|
||||
at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:117)
|
||||
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:178)
|
||||
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:153)
|
||||
at org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:201)
|
||||
at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:117)
|
||||
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:178)
|
||||
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:153)
|
||||
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:167)
|
||||
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:90)
|
||||
at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:481)
|
||||
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:130)
|
||||
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:93)
|
||||
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:74)
|
||||
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:343)
|
||||
at org.apache.coyote.http11.Http11Processor.service(Http11Processor.java:390)
|
||||
at org.apache.coyote.AbstractProcessorLight.process(AbstractProcessorLight.java:63)
|
||||
at org.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:926)
|
||||
at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1791)
|
||||
at org.apache.tomcat.util.net.SocketProcessorBase.run(SocketProcessorBase.java:52)
|
||||
at org.apache.tomcat.util.threads.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1191)
|
||||
at org.apache.tomcat.util.threads.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:659)
|
||||
at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
|
||||
at java.base/java.lang.Thread.run(Thread.java:842)
|
||||
Caused by: io.lettuce.core.RedisCommandTimeoutException: Command timed out after 1 minute(s)
|
||||
at io.lettuce.core.internal.ExceptionFactory.createTimeoutException(ExceptionFactory.java:59)
|
||||
at io.lettuce.core.internal.Futures.awaitOrCancel(Futures.java:246)
|
||||
at io.lettuce.core.LettuceFutures.awaitOrCancel(LettuceFutures.java:74)
|
||||
at org.springframework.data.redis.connection.lettuce.LettuceConnection.await(LettuceConnection.java:1083)
|
||||
... 69 common frames omitted
|
||||
17:11:04.455 [http-nio-9200-exec-2] ERROR c.b.c.s.h.GlobalExceptionHandler - [handleRuntimeException,106] - 请求地址'/login',发生未知异常.
|
||||
org.springframework.dao.QueryTimeoutException: Redis command timed out; nested exception is io.lettuce.core.RedisCommandTimeoutException: Command timed out after 1 minute(s)
|
||||
at org.springframework.data.redis.connection.lettuce.LettuceExceptionConverter.convert(LettuceExceptionConverter.java:70)
|
||||
at org.springframework.data.redis.connection.lettuce.LettuceExceptionConverter.convert(LettuceExceptionConverter.java:41)
|
||||
at org.springframework.data.redis.PassThroughExceptionTranslationStrategy.translate(PassThroughExceptionTranslationStrategy.java:44)
|
||||
at org.springframework.data.redis.FallbackExceptionTranslationStrategy.translate(FallbackExceptionTranslationStrategy.java:42)
|
||||
at org.springframework.data.redis.connection.lettuce.LettuceConnection.convertLettuceAccessException(LettuceConnection.java:277)
|
||||
at org.springframework.data.redis.connection.lettuce.LettuceConnection.await(LettuceConnection.java:1085)
|
||||
at org.springframework.data.redis.connection.lettuce.LettuceConnection.lambda$doInvoke$4(LettuceConnection.java:938)
|
||||
at org.springframework.data.redis.connection.lettuce.LettuceInvoker$Synchronizer.invoke(LettuceInvoker.java:665)
|
||||
at org.springframework.data.redis.connection.lettuce.LettuceInvoker.just(LettuceInvoker.java:94)
|
||||
at org.springframework.data.redis.connection.lettuce.LettuceStringCommands.get(LettuceStringCommands.java:55)
|
||||
at org.springframework.data.redis.connection.DefaultedRedisConnection.get(DefaultedRedisConnection.java:279)
|
||||
at org.springframework.data.redis.core.DefaultValueOperations$1.inRedis(DefaultValueOperations.java:58)
|
||||
at org.springframework.data.redis.core.AbstractOperations$ValueDeserializingRedisCallback.doInRedis(AbstractOperations.java:61)
|
||||
at org.springframework.data.redis.core.RedisTemplate.execute(RedisTemplate.java:224)
|
||||
at org.springframework.data.redis.core.RedisTemplate.execute(RedisTemplate.java:191)
|
||||
at org.springframework.data.redis.core.AbstractOperations.execute(AbstractOperations.java:97)
|
||||
at org.springframework.data.redis.core.DefaultValueOperations.get(DefaultValueOperations.java:54)
|
||||
at com.boot.common.redis.service.RedisService.getCacheObject(RedisService.java:108)
|
||||
at com.boot.auth.service.SysLoginService.login(SysLoginService.java:67)
|
||||
at com.boot.auth.controller.TokenController.login(TokenController.java:39)
|
||||
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
|
||||
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77)
|
||||
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
|
||||
at java.base/java.lang.reflect.Method.invoke(Method.java:568)
|
||||
at org.springframework.web.method.support.InvocableHandlerMethod.doInvoke(InvocableHandlerMethod.java:205)
|
||||
at org.springframework.web.method.support.InvocableHandlerMethod.invokeForRequest(InvocableHandlerMethod.java:150)
|
||||
at org.springframework.web.servlet.mvc.method.annotation.ServletInvocableHandlerMethod.invokeAndHandle(ServletInvocableHandlerMethod.java:117)
|
||||
at org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.invokeHandlerMethod(RequestMappingHandlerAdapter.java:895)
|
||||
at org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.handleInternal(RequestMappingHandlerAdapter.java:808)
|
||||
at org.springframework.web.servlet.mvc.method.AbstractHandlerMethodAdapter.handle(AbstractHandlerMethodAdapter.java:87)
|
||||
at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:1072)
|
||||
at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:965)
|
||||
at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:1006)
|
||||
at org.springframework.web.servlet.FrameworkServlet.doPost(FrameworkServlet.java:909)
|
||||
at javax.servlet.http.HttpServlet.service(HttpServlet.java:555)
|
||||
at org.springframework.web.servlet.FrameworkServlet.service(FrameworkServlet.java:883)
|
||||
at javax.servlet.http.HttpServlet.service(HttpServlet.java:623)
|
||||
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:209)
|
||||
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:153)
|
||||
at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:51)
|
||||
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:178)
|
||||
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:153)
|
||||
at org.springframework.web.filter.RequestContextFilter.doFilterInternal(RequestContextFilter.java:100)
|
||||
at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:117)
|
||||
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:178)
|
||||
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:153)
|
||||
at org.springframework.web.filter.FormContentFilter.doFilterInternal(FormContentFilter.java:93)
|
||||
at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:117)
|
||||
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:178)
|
||||
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:153)
|
||||
at org.springframework.boot.actuate.metrics.web.servlet.WebMvcMetricsFilter.doFilterInternal(WebMvcMetricsFilter.java:96)
|
||||
at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:117)
|
||||
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:178)
|
||||
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:153)
|
||||
at org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:201)
|
||||
at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:117)
|
||||
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:178)
|
||||
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:153)
|
||||
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:167)
|
||||
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:90)
|
||||
at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:481)
|
||||
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:130)
|
||||
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:93)
|
||||
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:74)
|
||||
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:343)
|
||||
at org.apache.coyote.http11.Http11Processor.service(Http11Processor.java:390)
|
||||
at org.apache.coyote.AbstractProcessorLight.process(AbstractProcessorLight.java:63)
|
||||
at org.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:926)
|
||||
at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1791)
|
||||
at org.apache.tomcat.util.net.SocketProcessorBase.run(SocketProcessorBase.java:52)
|
||||
at org.apache.tomcat.util.threads.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1191)
|
||||
at org.apache.tomcat.util.threads.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:659)
|
||||
at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
|
||||
at java.base/java.lang.Thread.run(Thread.java:842)
|
||||
Caused by: io.lettuce.core.RedisCommandTimeoutException: Command timed out after 1 minute(s)
|
||||
at io.lettuce.core.internal.ExceptionFactory.createTimeoutException(ExceptionFactory.java:59)
|
||||
at io.lettuce.core.internal.Futures.awaitOrCancel(Futures.java:246)
|
||||
at io.lettuce.core.LettuceFutures.awaitOrCancel(LettuceFutures.java:74)
|
||||
at org.springframework.data.redis.connection.lettuce.LettuceConnection.await(LettuceConnection.java:1083)
|
||||
... 68 common frames omitted
|
||||
17:11:30.319 [http-nio-9200-exec-3] ERROR c.b.c.s.h.GlobalExceptionHandler - [handleRuntimeException,106] - 请求地址'/login',发生未知异常.
|
||||
org.springframework.dao.QueryTimeoutException: Redis command timed out; nested exception is io.lettuce.core.RedisCommandTimeoutException: Command timed out after 1 minute(s)
|
||||
at org.springframework.data.redis.connection.lettuce.LettuceExceptionConverter.convert(LettuceExceptionConverter.java:70)
|
||||
at org.springframework.data.redis.connection.lettuce.LettuceExceptionConverter.convert(LettuceExceptionConverter.java:41)
|
||||
at org.springframework.data.redis.PassThroughExceptionTranslationStrategy.translate(PassThroughExceptionTranslationStrategy.java:44)
|
||||
at org.springframework.data.redis.FallbackExceptionTranslationStrategy.translate(FallbackExceptionTranslationStrategy.java:42)
|
||||
at org.springframework.data.redis.connection.lettuce.LettuceConnection.convertLettuceAccessException(LettuceConnection.java:277)
|
||||
at org.springframework.data.redis.connection.lettuce.LettuceConnection.await(LettuceConnection.java:1085)
|
||||
at org.springframework.data.redis.connection.lettuce.LettuceConnection.lambda$doInvoke$4(LettuceConnection.java:938)
|
||||
at org.springframework.data.redis.connection.lettuce.LettuceInvoker$Synchronizer.invoke(LettuceInvoker.java:665)
|
||||
at org.springframework.data.redis.connection.lettuce.LettuceInvoker.just(LettuceInvoker.java:94)
|
||||
at org.springframework.data.redis.connection.lettuce.LettuceStringCommands.get(LettuceStringCommands.java:55)
|
||||
at org.springframework.data.redis.connection.DefaultedRedisConnection.get(DefaultedRedisConnection.java:279)
|
||||
at org.springframework.data.redis.core.DefaultValueOperations$1.inRedis(DefaultValueOperations.java:58)
|
||||
at org.springframework.data.redis.core.AbstractOperations$ValueDeserializingRedisCallback.doInRedis(AbstractOperations.java:61)
|
||||
at org.springframework.data.redis.core.RedisTemplate.execute(RedisTemplate.java:224)
|
||||
at org.springframework.data.redis.core.RedisTemplate.execute(RedisTemplate.java:191)
|
||||
at org.springframework.data.redis.core.AbstractOperations.execute(AbstractOperations.java:97)
|
||||
at org.springframework.data.redis.core.DefaultValueOperations.get(DefaultValueOperations.java:54)
|
||||
at com.boot.common.redis.service.RedisService.getCacheObject(RedisService.java:108)
|
||||
at com.boot.auth.service.SysLoginService.login(SysLoginService.java:67)
|
||||
at com.boot.auth.controller.TokenController.login(TokenController.java:39)
|
||||
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
|
||||
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77)
|
||||
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
|
||||
at java.base/java.lang.reflect.Method.invoke(Method.java:568)
|
||||
at org.springframework.web.method.support.InvocableHandlerMethod.doInvoke(InvocableHandlerMethod.java:205)
|
||||
at org.springframework.web.method.support.InvocableHandlerMethod.invokeForRequest(InvocableHandlerMethod.java:150)
|
||||
at org.springframework.web.servlet.mvc.method.annotation.ServletInvocableHandlerMethod.invokeAndHandle(ServletInvocableHandlerMethod.java:117)
|
||||
at org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.invokeHandlerMethod(RequestMappingHandlerAdapter.java:895)
|
||||
at org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.handleInternal(RequestMappingHandlerAdapter.java:808)
|
||||
at org.springframework.web.servlet.mvc.method.AbstractHandlerMethodAdapter.handle(AbstractHandlerMethodAdapter.java:87)
|
||||
at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:1072)
|
||||
at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:965)
|
||||
at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:1006)
|
||||
at org.springframework.web.servlet.FrameworkServlet.doPost(FrameworkServlet.java:909)
|
||||
at javax.servlet.http.HttpServlet.service(HttpServlet.java:555)
|
||||
at org.springframework.web.servlet.FrameworkServlet.service(FrameworkServlet.java:883)
|
||||
at javax.servlet.http.HttpServlet.service(HttpServlet.java:623)
|
||||
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:209)
|
||||
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:153)
|
||||
at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:51)
|
||||
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:178)
|
||||
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:153)
|
||||
at org.springframework.web.filter.RequestContextFilter.doFilterInternal(RequestContextFilter.java:100)
|
||||
at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:117)
|
||||
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:178)
|
||||
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:153)
|
||||
at org.springframework.web.filter.FormContentFilter.doFilterInternal(FormContentFilter.java:93)
|
||||
at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:117)
|
||||
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:178)
|
||||
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:153)
|
||||
at org.springframework.boot.actuate.metrics.web.servlet.WebMvcMetricsFilter.doFilterInternal(WebMvcMetricsFilter.java:96)
|
||||
at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:117)
|
||||
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:178)
|
||||
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:153)
|
||||
at org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:201)
|
||||
at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:117)
|
||||
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:178)
|
||||
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:153)
|
||||
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:167)
|
||||
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:90)
|
||||
at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:481)
|
||||
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:130)
|
||||
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:93)
|
||||
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:74)
|
||||
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:343)
|
||||
at org.apache.coyote.http11.Http11Processor.service(Http11Processor.java:390)
|
||||
at org.apache.coyote.AbstractProcessorLight.process(AbstractProcessorLight.java:63)
|
||||
at org.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:926)
|
||||
at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1791)
|
||||
at org.apache.tomcat.util.net.SocketProcessorBase.run(SocketProcessorBase.java:52)
|
||||
at org.apache.tomcat.util.threads.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1191)
|
||||
at org.apache.tomcat.util.threads.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:659)
|
||||
at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
|
||||
at java.base/java.lang.Thread.run(Thread.java:842)
|
||||
Caused by: io.lettuce.core.RedisCommandTimeoutException: Command timed out after 1 minute(s)
|
||||
at io.lettuce.core.internal.ExceptionFactory.createTimeoutException(ExceptionFactory.java:59)
|
||||
at io.lettuce.core.internal.Futures.awaitOrCancel(Futures.java:246)
|
||||
at io.lettuce.core.LettuceFutures.awaitOrCancel(LettuceFutures.java:74)
|
||||
at org.springframework.data.redis.connection.lettuce.LettuceConnection.await(LettuceConnection.java:1083)
|
||||
... 68 common frames omitted
|
||||
17:14:13.706 [http-nio-9200-exec-6] ERROR c.b.c.s.h.GlobalExceptionHandler - [handleRuntimeException,106] - 请求地址'/login',发生未知异常.
|
||||
org.springframework.dao.QueryTimeoutException: Redis command timed out; nested exception is io.lettuce.core.RedisCommandTimeoutException: Command timed out after 1 minute(s)
|
||||
at org.springframework.data.redis.connection.lettuce.LettuceExceptionConverter.convert(LettuceExceptionConverter.java:70)
|
||||
at org.springframework.data.redis.connection.lettuce.LettuceExceptionConverter.convert(LettuceExceptionConverter.java:41)
|
||||
at org.springframework.data.redis.PassThroughExceptionTranslationStrategy.translate(PassThroughExceptionTranslationStrategy.java:44)
|
||||
at org.springframework.data.redis.FallbackExceptionTranslationStrategy.translate(FallbackExceptionTranslationStrategy.java:42)
|
||||
at org.springframework.data.redis.connection.lettuce.LettuceConnection.convertLettuceAccessException(LettuceConnection.java:277)
|
||||
at org.springframework.data.redis.connection.lettuce.LettuceConnection.await(LettuceConnection.java:1085)
|
||||
at org.springframework.data.redis.connection.lettuce.LettuceConnection.lambda$doInvoke$4(LettuceConnection.java:938)
|
||||
at org.springframework.data.redis.connection.lettuce.LettuceInvoker$Synchronizer.invoke(LettuceInvoker.java:665)
|
||||
at org.springframework.data.redis.connection.lettuce.LettuceInvoker.just(LettuceInvoker.java:94)
|
||||
at org.springframework.data.redis.connection.lettuce.LettuceStringCommands.get(LettuceStringCommands.java:55)
|
||||
at org.springframework.data.redis.connection.DefaultedRedisConnection.get(DefaultedRedisConnection.java:279)
|
||||
at org.springframework.data.redis.core.DefaultValueOperations$1.inRedis(DefaultValueOperations.java:58)
|
||||
at org.springframework.data.redis.core.AbstractOperations$ValueDeserializingRedisCallback.doInRedis(AbstractOperations.java:61)
|
||||
at org.springframework.data.redis.core.RedisTemplate.execute(RedisTemplate.java:224)
|
||||
at org.springframework.data.redis.core.RedisTemplate.execute(RedisTemplate.java:191)
|
||||
at org.springframework.data.redis.core.AbstractOperations.execute(AbstractOperations.java:97)
|
||||
at org.springframework.data.redis.core.DefaultValueOperations.get(DefaultValueOperations.java:54)
|
||||
at com.boot.common.redis.service.RedisService.getCacheObject(RedisService.java:108)
|
||||
at com.boot.auth.service.SysLoginService.login(SysLoginService.java:67)
|
||||
at com.boot.auth.controller.TokenController.login(TokenController.java:39)
|
||||
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
|
||||
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77)
|
||||
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
|
||||
at java.base/java.lang.reflect.Method.invoke(Method.java:568)
|
||||
at org.springframework.web.method.support.InvocableHandlerMethod.doInvoke(InvocableHandlerMethod.java:205)
|
||||
at org.springframework.web.method.support.InvocableHandlerMethod.invokeForRequest(InvocableHandlerMethod.java:150)
|
||||
at org.springframework.web.servlet.mvc.method.annotation.ServletInvocableHandlerMethod.invokeAndHandle(ServletInvocableHandlerMethod.java:117)
|
||||
at org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.invokeHandlerMethod(RequestMappingHandlerAdapter.java:895)
|
||||
at org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.handleInternal(RequestMappingHandlerAdapter.java:808)
|
||||
at org.springframework.web.servlet.mvc.method.AbstractHandlerMethodAdapter.handle(AbstractHandlerMethodAdapter.java:87)
|
||||
at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:1072)
|
||||
at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:965)
|
||||
at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:1006)
|
||||
at org.springframework.web.servlet.FrameworkServlet.doPost(FrameworkServlet.java:909)
|
||||
at javax.servlet.http.HttpServlet.service(HttpServlet.java:555)
|
||||
at org.springframework.web.servlet.FrameworkServlet.service(FrameworkServlet.java:883)
|
||||
at javax.servlet.http.HttpServlet.service(HttpServlet.java:623)
|
||||
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:209)
|
||||
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:153)
|
||||
at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:51)
|
||||
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:178)
|
||||
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:153)
|
||||
at org.springframework.web.filter.RequestContextFilter.doFilterInternal(RequestContextFilter.java:100)
|
||||
at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:117)
|
||||
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:178)
|
||||
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:153)
|
||||
at org.springframework.web.filter.FormContentFilter.doFilterInternal(FormContentFilter.java:93)
|
||||
at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:117)
|
||||
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:178)
|
||||
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:153)
|
||||
at org.springframework.boot.actuate.metrics.web.servlet.WebMvcMetricsFilter.doFilterInternal(WebMvcMetricsFilter.java:96)
|
||||
at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:117)
|
||||
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:178)
|
||||
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:153)
|
||||
at org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:201)
|
||||
at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:117)
|
||||
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:178)
|
||||
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:153)
|
||||
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:167)
|
||||
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:90)
|
||||
at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:481)
|
||||
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:130)
|
||||
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:93)
|
||||
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:74)
|
||||
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:343)
|
||||
at org.apache.coyote.http11.Http11Processor.service(Http11Processor.java:390)
|
||||
at org.apache.coyote.AbstractProcessorLight.process(AbstractProcessorLight.java:63)
|
||||
at org.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:926)
|
||||
at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1791)
|
||||
at org.apache.tomcat.util.net.SocketProcessorBase.run(SocketProcessorBase.java:52)
|
||||
at org.apache.tomcat.util.threads.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1191)
|
||||
at org.apache.tomcat.util.threads.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:659)
|
||||
at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
|
||||
at java.base/java.lang.Thread.run(Thread.java:842)
|
||||
Caused by: io.lettuce.core.RedisCommandTimeoutException: Command timed out after 1 minute(s)
|
||||
at io.lettuce.core.internal.ExceptionFactory.createTimeoutException(ExceptionFactory.java:59)
|
||||
at io.lettuce.core.internal.Futures.awaitOrCancel(Futures.java:246)
|
||||
at io.lettuce.core.LettuceFutures.awaitOrCancel(LettuceFutures.java:74)
|
||||
at org.springframework.data.redis.connection.lettuce.LettuceConnection.await(LettuceConnection.java:1083)
|
||||
... 68 common frames omitted
|
||||
17:18:35.840 [http-nio-9200-exec-8] ERROR c.b.c.s.h.GlobalExceptionHandler - [handleRuntimeException,106] - 请求地址'/login',发生未知异常.
|
||||
org.springframework.dao.QueryTimeoutException: Redis command timed out; nested exception is io.lettuce.core.RedisCommandTimeoutException: Command timed out after 1 minute(s)
|
||||
at org.springframework.data.redis.connection.lettuce.LettuceExceptionConverter.convert(LettuceExceptionConverter.java:70)
|
||||
at org.springframework.data.redis.connection.lettuce.LettuceExceptionConverter.convert(LettuceExceptionConverter.java:41)
|
||||
at org.springframework.data.redis.PassThroughExceptionTranslationStrategy.translate(PassThroughExceptionTranslationStrategy.java:44)
|
||||
at org.springframework.data.redis.FallbackExceptionTranslationStrategy.translate(FallbackExceptionTranslationStrategy.java:42)
|
||||
at org.springframework.data.redis.connection.lettuce.LettuceConnection.convertLettuceAccessException(LettuceConnection.java:277)
|
||||
at org.springframework.data.redis.connection.lettuce.LettuceConnection.await(LettuceConnection.java:1085)
|
||||
at org.springframework.data.redis.connection.lettuce.LettuceConnection.lambda$doInvoke$4(LettuceConnection.java:938)
|
||||
at org.springframework.data.redis.connection.lettuce.LettuceInvoker$Synchronizer.invoke(LettuceInvoker.java:665)
|
||||
at org.springframework.data.redis.connection.lettuce.LettuceInvoker.just(LettuceInvoker.java:94)
|
||||
at org.springframework.data.redis.connection.lettuce.LettuceStringCommands.get(LettuceStringCommands.java:55)
|
||||
at org.springframework.data.redis.connection.DefaultedRedisConnection.get(DefaultedRedisConnection.java:279)
|
||||
at org.springframework.data.redis.core.DefaultValueOperations$1.inRedis(DefaultValueOperations.java:58)
|
||||
at org.springframework.data.redis.core.AbstractOperations$ValueDeserializingRedisCallback.doInRedis(AbstractOperations.java:61)
|
||||
at org.springframework.data.redis.core.RedisTemplate.execute(RedisTemplate.java:224)
|
||||
at org.springframework.data.redis.core.RedisTemplate.execute(RedisTemplate.java:191)
|
||||
at org.springframework.data.redis.core.AbstractOperations.execute(AbstractOperations.java:97)
|
||||
at org.springframework.data.redis.core.DefaultValueOperations.get(DefaultValueOperations.java:54)
|
||||
at com.boot.common.redis.service.RedisService.getCacheObject(RedisService.java:108)
|
||||
at com.boot.auth.service.SysLoginService.login(SysLoginService.java:67)
|
||||
at com.boot.auth.controller.TokenController.login(TokenController.java:39)
|
||||
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
|
||||
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77)
|
||||
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
|
||||
at java.base/java.lang.reflect.Method.invoke(Method.java:568)
|
||||
at org.springframework.web.method.support.InvocableHandlerMethod.doInvoke(InvocableHandlerMethod.java:205)
|
||||
at org.springframework.web.method.support.InvocableHandlerMethod.invokeForRequest(InvocableHandlerMethod.java:150)
|
||||
at org.springframework.web.servlet.mvc.method.annotation.ServletInvocableHandlerMethod.invokeAndHandle(ServletInvocableHandlerMethod.java:117)
|
||||
at org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.invokeHandlerMethod(RequestMappingHandlerAdapter.java:895)
|
||||
at org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.handleInternal(RequestMappingHandlerAdapter.java:808)
|
||||
at org.springframework.web.servlet.mvc.method.AbstractHandlerMethodAdapter.handle(AbstractHandlerMethodAdapter.java:87)
|
||||
at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:1072)
|
||||
at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:965)
|
||||
at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:1006)
|
||||
at org.springframework.web.servlet.FrameworkServlet.doPost(FrameworkServlet.java:909)
|
||||
at javax.servlet.http.HttpServlet.service(HttpServlet.java:555)
|
||||
at org.springframework.web.servlet.FrameworkServlet.service(FrameworkServlet.java:883)
|
||||
at javax.servlet.http.HttpServlet.service(HttpServlet.java:623)
|
||||
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:209)
|
||||
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:153)
|
||||
at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:51)
|
||||
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:178)
|
||||
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:153)
|
||||
at org.springframework.web.filter.RequestContextFilter.doFilterInternal(RequestContextFilter.java:100)
|
||||
at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:117)
|
||||
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:178)
|
||||
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:153)
|
||||
at org.springframework.web.filter.FormContentFilter.doFilterInternal(FormContentFilter.java:93)
|
||||
at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:117)
|
||||
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:178)
|
||||
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:153)
|
||||
at org.springframework.boot.actuate.metrics.web.servlet.WebMvcMetricsFilter.doFilterInternal(WebMvcMetricsFilter.java:96)
|
||||
at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:117)
|
||||
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:178)
|
||||
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:153)
|
||||
at org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:201)
|
||||
at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:117)
|
||||
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:178)
|
||||
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:153)
|
||||
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:167)
|
||||
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:90)
|
||||
at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:481)
|
||||
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:130)
|
||||
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:93)
|
||||
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:74)
|
||||
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:343)
|
||||
at org.apache.coyote.http11.Http11Processor.service(Http11Processor.java:390)
|
||||
at org.apache.coyote.AbstractProcessorLight.process(AbstractProcessorLight.java:63)
|
||||
at org.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:926)
|
||||
at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1791)
|
||||
at org.apache.tomcat.util.net.SocketProcessorBase.run(SocketProcessorBase.java:52)
|
||||
at org.apache.tomcat.util.threads.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1191)
|
||||
at org.apache.tomcat.util.threads.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:659)
|
||||
at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
|
||||
at java.base/java.lang.Thread.run(Thread.java:842)
|
||||
Caused by: io.lettuce.core.RedisCommandTimeoutException: Command timed out after 1 minute(s)
|
||||
at io.lettuce.core.internal.ExceptionFactory.createTimeoutException(ExceptionFactory.java:59)
|
||||
at io.lettuce.core.internal.Futures.awaitOrCancel(Futures.java:246)
|
||||
at io.lettuce.core.LettuceFutures.awaitOrCancel(LettuceFutures.java:74)
|
||||
at org.springframework.data.redis.connection.lettuce.LettuceConnection.await(LettuceConnection.java:1083)
|
||||
... 68 common frames omitted
|
|
@ -0,0 +1,348 @@
|
|||
14:04:58.327 [http-nio-9200-exec-3] ERROR c.b.c.s.h.GlobalExceptionHandler - [handleRuntimeException,106] - 请求地址'/login',发生未知异常.
|
||||
org.springframework.dao.QueryTimeoutException: Redis command timed out; nested exception is io.lettuce.core.RedisCommandTimeoutException: Command timed out after 1 minute(s)
|
||||
at org.springframework.data.redis.connection.lettuce.LettuceExceptionConverter.convert(LettuceExceptionConverter.java:70)
|
||||
at org.springframework.data.redis.connection.lettuce.LettuceExceptionConverter.convert(LettuceExceptionConverter.java:41)
|
||||
at org.springframework.data.redis.PassThroughExceptionTranslationStrategy.translate(PassThroughExceptionTranslationStrategy.java:44)
|
||||
at org.springframework.data.redis.FallbackExceptionTranslationStrategy.translate(FallbackExceptionTranslationStrategy.java:42)
|
||||
at org.springframework.data.redis.connection.lettuce.LettuceConnection.convertLettuceAccessException(LettuceConnection.java:277)
|
||||
at org.springframework.data.redis.connection.lettuce.LettuceConnection.await(LettuceConnection.java:1085)
|
||||
at org.springframework.data.redis.connection.lettuce.LettuceConnection.lambda$doInvoke$4(LettuceConnection.java:938)
|
||||
at org.springframework.data.redis.connection.lettuce.LettuceInvoker$Synchronizer.invoke(LettuceInvoker.java:665)
|
||||
at org.springframework.data.redis.connection.lettuce.LettuceInvoker.just(LettuceInvoker.java:94)
|
||||
at org.springframework.data.redis.connection.lettuce.LettuceStringCommands.get(LettuceStringCommands.java:55)
|
||||
at org.springframework.data.redis.connection.DefaultedRedisConnection.get(DefaultedRedisConnection.java:279)
|
||||
at org.springframework.data.redis.core.DefaultValueOperations$1.inRedis(DefaultValueOperations.java:58)
|
||||
at org.springframework.data.redis.core.AbstractOperations$ValueDeserializingRedisCallback.doInRedis(AbstractOperations.java:61)
|
||||
at org.springframework.data.redis.core.RedisTemplate.execute(RedisTemplate.java:224)
|
||||
at org.springframework.data.redis.core.RedisTemplate.execute(RedisTemplate.java:191)
|
||||
at org.springframework.data.redis.core.AbstractOperations.execute(AbstractOperations.java:97)
|
||||
at org.springframework.data.redis.core.DefaultValueOperations.get(DefaultValueOperations.java:54)
|
||||
at com.boot.common.redis.service.RedisService.getCacheObject(RedisService.java:108)
|
||||
at com.boot.auth.service.SysPasswordService.validate(SysPasswordService.java:47)
|
||||
at com.boot.auth.service.SysLoginService.login(SysLoginService.java:99)
|
||||
at com.boot.auth.controller.TokenController.login(TokenController.java:39)
|
||||
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
|
||||
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77)
|
||||
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
|
||||
at java.base/java.lang.reflect.Method.invoke(Method.java:568)
|
||||
at org.springframework.web.method.support.InvocableHandlerMethod.doInvoke(InvocableHandlerMethod.java:205)
|
||||
at org.springframework.web.method.support.InvocableHandlerMethod.invokeForRequest(InvocableHandlerMethod.java:150)
|
||||
at org.springframework.web.servlet.mvc.method.annotation.ServletInvocableHandlerMethod.invokeAndHandle(ServletInvocableHandlerMethod.java:117)
|
||||
at org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.invokeHandlerMethod(RequestMappingHandlerAdapter.java:895)
|
||||
at org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.handleInternal(RequestMappingHandlerAdapter.java:808)
|
||||
at org.springframework.web.servlet.mvc.method.AbstractHandlerMethodAdapter.handle(AbstractHandlerMethodAdapter.java:87)
|
||||
at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:1072)
|
||||
at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:965)
|
||||
at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:1006)
|
||||
at org.springframework.web.servlet.FrameworkServlet.doPost(FrameworkServlet.java:909)
|
||||
at javax.servlet.http.HttpServlet.service(HttpServlet.java:555)
|
||||
at org.springframework.web.servlet.FrameworkServlet.service(FrameworkServlet.java:883)
|
||||
at javax.servlet.http.HttpServlet.service(HttpServlet.java:623)
|
||||
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:209)
|
||||
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:153)
|
||||
at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:51)
|
||||
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:178)
|
||||
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:153)
|
||||
at org.springframework.web.filter.RequestContextFilter.doFilterInternal(RequestContextFilter.java:100)
|
||||
at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:117)
|
||||
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:178)
|
||||
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:153)
|
||||
at org.springframework.web.filter.FormContentFilter.doFilterInternal(FormContentFilter.java:93)
|
||||
at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:117)
|
||||
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:178)
|
||||
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:153)
|
||||
at org.springframework.boot.actuate.metrics.web.servlet.WebMvcMetricsFilter.doFilterInternal(WebMvcMetricsFilter.java:96)
|
||||
at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:117)
|
||||
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:178)
|
||||
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:153)
|
||||
at org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:201)
|
||||
at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:117)
|
||||
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:178)
|
||||
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:153)
|
||||
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:167)
|
||||
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:90)
|
||||
at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:481)
|
||||
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:130)
|
||||
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:93)
|
||||
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:74)
|
||||
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:343)
|
||||
at org.apache.coyote.http11.Http11Processor.service(Http11Processor.java:390)
|
||||
at org.apache.coyote.AbstractProcessorLight.process(AbstractProcessorLight.java:63)
|
||||
at org.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:926)
|
||||
at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1791)
|
||||
at org.apache.tomcat.util.net.SocketProcessorBase.run(SocketProcessorBase.java:52)
|
||||
at org.apache.tomcat.util.threads.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1191)
|
||||
at org.apache.tomcat.util.threads.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:659)
|
||||
at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
|
||||
at java.base/java.lang.Thread.run(Thread.java:842)
|
||||
Caused by: io.lettuce.core.RedisCommandTimeoutException: Command timed out after 1 minute(s)
|
||||
at io.lettuce.core.internal.ExceptionFactory.createTimeoutException(ExceptionFactory.java:59)
|
||||
at io.lettuce.core.internal.Futures.awaitOrCancel(Futures.java:246)
|
||||
at io.lettuce.core.LettuceFutures.awaitOrCancel(LettuceFutures.java:74)
|
||||
at org.springframework.data.redis.connection.lettuce.LettuceConnection.await(LettuceConnection.java:1083)
|
||||
... 69 common frames omitted
|
||||
14:06:14.286 [http-nio-9200-exec-4] ERROR c.b.c.s.h.GlobalExceptionHandler - [handleRuntimeException,106] - 请求地址'/login',发生未知异常.
|
||||
org.springframework.dao.QueryTimeoutException: Redis command timed out; nested exception is io.lettuce.core.RedisCommandTimeoutException: Command timed out after 1 minute(s)
|
||||
at org.springframework.data.redis.connection.lettuce.LettuceExceptionConverter.convert(LettuceExceptionConverter.java:70)
|
||||
at org.springframework.data.redis.connection.lettuce.LettuceExceptionConverter.convert(LettuceExceptionConverter.java:41)
|
||||
at org.springframework.data.redis.PassThroughExceptionTranslationStrategy.translate(PassThroughExceptionTranslationStrategy.java:44)
|
||||
at org.springframework.data.redis.FallbackExceptionTranslationStrategy.translate(FallbackExceptionTranslationStrategy.java:42)
|
||||
at org.springframework.data.redis.connection.lettuce.LettuceConnection.convertLettuceAccessException(LettuceConnection.java:277)
|
||||
at org.springframework.data.redis.connection.lettuce.LettuceConnection.await(LettuceConnection.java:1085)
|
||||
at org.springframework.data.redis.connection.lettuce.LettuceConnection.lambda$doInvoke$4(LettuceConnection.java:938)
|
||||
at org.springframework.data.redis.connection.lettuce.LettuceInvoker$Synchronizer.invoke(LettuceInvoker.java:665)
|
||||
at org.springframework.data.redis.connection.lettuce.LettuceInvoker.just(LettuceInvoker.java:94)
|
||||
at org.springframework.data.redis.connection.lettuce.LettuceStringCommands.get(LettuceStringCommands.java:55)
|
||||
at org.springframework.data.redis.connection.DefaultedRedisConnection.get(DefaultedRedisConnection.java:279)
|
||||
at org.springframework.data.redis.core.DefaultValueOperations$1.inRedis(DefaultValueOperations.java:58)
|
||||
at org.springframework.data.redis.core.AbstractOperations$ValueDeserializingRedisCallback.doInRedis(AbstractOperations.java:61)
|
||||
at org.springframework.data.redis.core.RedisTemplate.execute(RedisTemplate.java:224)
|
||||
at org.springframework.data.redis.core.RedisTemplate.execute(RedisTemplate.java:191)
|
||||
at org.springframework.data.redis.core.AbstractOperations.execute(AbstractOperations.java:97)
|
||||
at org.springframework.data.redis.core.DefaultValueOperations.get(DefaultValueOperations.java:54)
|
||||
at com.boot.common.redis.service.RedisService.getCacheObject(RedisService.java:108)
|
||||
at com.boot.auth.service.SysLoginService.login(SysLoginService.java:67)
|
||||
at com.boot.auth.controller.TokenController.login(TokenController.java:39)
|
||||
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
|
||||
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77)
|
||||
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
|
||||
at java.base/java.lang.reflect.Method.invoke(Method.java:568)
|
||||
at org.springframework.web.method.support.InvocableHandlerMethod.doInvoke(InvocableHandlerMethod.java:205)
|
||||
at org.springframework.web.method.support.InvocableHandlerMethod.invokeForRequest(InvocableHandlerMethod.java:150)
|
||||
at org.springframework.web.servlet.mvc.method.annotation.ServletInvocableHandlerMethod.invokeAndHandle(ServletInvocableHandlerMethod.java:117)
|
||||
at org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.invokeHandlerMethod(RequestMappingHandlerAdapter.java:895)
|
||||
at org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.handleInternal(RequestMappingHandlerAdapter.java:808)
|
||||
at org.springframework.web.servlet.mvc.method.AbstractHandlerMethodAdapter.handle(AbstractHandlerMethodAdapter.java:87)
|
||||
at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:1072)
|
||||
at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:965)
|
||||
at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:1006)
|
||||
at org.springframework.web.servlet.FrameworkServlet.doPost(FrameworkServlet.java:909)
|
||||
at javax.servlet.http.HttpServlet.service(HttpServlet.java:555)
|
||||
at org.springframework.web.servlet.FrameworkServlet.service(FrameworkServlet.java:883)
|
||||
at javax.servlet.http.HttpServlet.service(HttpServlet.java:623)
|
||||
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:209)
|
||||
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:153)
|
||||
at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:51)
|
||||
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:178)
|
||||
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:153)
|
||||
at org.springframework.web.filter.RequestContextFilter.doFilterInternal(RequestContextFilter.java:100)
|
||||
at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:117)
|
||||
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:178)
|
||||
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:153)
|
||||
at org.springframework.web.filter.FormContentFilter.doFilterInternal(FormContentFilter.java:93)
|
||||
at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:117)
|
||||
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:178)
|
||||
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:153)
|
||||
at org.springframework.boot.actuate.metrics.web.servlet.WebMvcMetricsFilter.doFilterInternal(WebMvcMetricsFilter.java:96)
|
||||
at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:117)
|
||||
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:178)
|
||||
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:153)
|
||||
at org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:201)
|
||||
at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:117)
|
||||
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:178)
|
||||
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:153)
|
||||
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:167)
|
||||
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:90)
|
||||
at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:481)
|
||||
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:130)
|
||||
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:93)
|
||||
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:74)
|
||||
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:343)
|
||||
at org.apache.coyote.http11.Http11Processor.service(Http11Processor.java:390)
|
||||
at org.apache.coyote.AbstractProcessorLight.process(AbstractProcessorLight.java:63)
|
||||
at org.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:926)
|
||||
at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1791)
|
||||
at org.apache.tomcat.util.net.SocketProcessorBase.run(SocketProcessorBase.java:52)
|
||||
at org.apache.tomcat.util.threads.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1191)
|
||||
at org.apache.tomcat.util.threads.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:659)
|
||||
at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
|
||||
at java.base/java.lang.Thread.run(Thread.java:842)
|
||||
Caused by: io.lettuce.core.RedisCommandTimeoutException: Command timed out after 1 minute(s)
|
||||
at io.lettuce.core.internal.ExceptionFactory.createTimeoutException(ExceptionFactory.java:59)
|
||||
at io.lettuce.core.internal.Futures.awaitOrCancel(Futures.java:246)
|
||||
at io.lettuce.core.LettuceFutures.awaitOrCancel(LettuceFutures.java:74)
|
||||
at org.springframework.data.redis.connection.lettuce.LettuceConnection.await(LettuceConnection.java:1083)
|
||||
... 68 common frames omitted
|
||||
14:07:15.932 [http-nio-9200-exec-5] ERROR c.b.c.s.h.GlobalExceptionHandler - [handleRuntimeException,106] - 请求地址'/logout',发生未知异常.
|
||||
org.springframework.dao.QueryTimeoutException: Redis command timed out; nested exception is io.lettuce.core.RedisCommandTimeoutException: Command timed out after 1 minute(s)
|
||||
at org.springframework.data.redis.connection.lettuce.LettuceExceptionConverter.convert(LettuceExceptionConverter.java:70)
|
||||
at org.springframework.data.redis.connection.lettuce.LettuceExceptionConverter.convert(LettuceExceptionConverter.java:41)
|
||||
at org.springframework.data.redis.PassThroughExceptionTranslationStrategy.translate(PassThroughExceptionTranslationStrategy.java:44)
|
||||
at org.springframework.data.redis.FallbackExceptionTranslationStrategy.translate(FallbackExceptionTranslationStrategy.java:42)
|
||||
at org.springframework.data.redis.connection.lettuce.LettuceConnection.convertLettuceAccessException(LettuceConnection.java:277)
|
||||
at org.springframework.data.redis.connection.lettuce.LettuceConnection.await(LettuceConnection.java:1085)
|
||||
at org.springframework.data.redis.connection.lettuce.LettuceConnection.lambda$doInvoke$4(LettuceConnection.java:938)
|
||||
at org.springframework.data.redis.connection.lettuce.LettuceInvoker$Synchronizer.invoke(LettuceInvoker.java:665)
|
||||
at org.springframework.data.redis.connection.lettuce.LettuceInvoker.just(LettuceInvoker.java:94)
|
||||
at org.springframework.data.redis.connection.lettuce.LettuceKeyCommands.del(LettuceKeyCommands.java:106)
|
||||
at org.springframework.data.redis.connection.DefaultedRedisConnection.del(DefaultedRedisConnection.java:95)
|
||||
at org.springframework.data.redis.core.RedisTemplate.lambda$delete$3(RedisTemplate.java:723)
|
||||
at org.springframework.data.redis.core.RedisTemplate.execute(RedisTemplate.java:224)
|
||||
at org.springframework.data.redis.core.RedisTemplate.execute(RedisTemplate.java:191)
|
||||
at org.springframework.data.redis.core.RedisTemplate.delete(RedisTemplate.java:723)
|
||||
at com.boot.common.redis.service.RedisService.deleteObject(RedisService.java:118)
|
||||
at com.boot.common.security.service.TokenService.delLoginUser(TokenService.java:138)
|
||||
at com.boot.common.security.auth.AuthLogic.logoutByToken(AuthLogic.java:55)
|
||||
at com.boot.common.security.auth.AuthUtil.logoutByToken(AuthUtil.java:34)
|
||||
at com.boot.auth.controller.TokenController.logout(TokenController.java:52)
|
||||
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
|
||||
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77)
|
||||
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
|
||||
at java.base/java.lang.reflect.Method.invoke(Method.java:568)
|
||||
at org.springframework.web.method.support.InvocableHandlerMethod.doInvoke(InvocableHandlerMethod.java:205)
|
||||
at org.springframework.web.method.support.InvocableHandlerMethod.invokeForRequest(InvocableHandlerMethod.java:150)
|
||||
at org.springframework.web.servlet.mvc.method.annotation.ServletInvocableHandlerMethod.invokeAndHandle(ServletInvocableHandlerMethod.java:117)
|
||||
at org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.invokeHandlerMethod(RequestMappingHandlerAdapter.java:895)
|
||||
at org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.handleInternal(RequestMappingHandlerAdapter.java:808)
|
||||
at org.springframework.web.servlet.mvc.method.AbstractHandlerMethodAdapter.handle(AbstractHandlerMethodAdapter.java:87)
|
||||
at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:1072)
|
||||
at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:965)
|
||||
at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:1006)
|
||||
at org.springframework.web.servlet.FrameworkServlet.doDelete(FrameworkServlet.java:931)
|
||||
at javax.servlet.http.HttpServlet.service(HttpServlet.java:561)
|
||||
at org.springframework.web.servlet.FrameworkServlet.service(FrameworkServlet.java:883)
|
||||
at javax.servlet.http.HttpServlet.service(HttpServlet.java:623)
|
||||
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:209)
|
||||
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:153)
|
||||
at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:51)
|
||||
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:178)
|
||||
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:153)
|
||||
at org.springframework.web.filter.RequestContextFilter.doFilterInternal(RequestContextFilter.java:100)
|
||||
at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:117)
|
||||
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:178)
|
||||
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:153)
|
||||
at org.springframework.web.filter.FormContentFilter.doFilterInternal(FormContentFilter.java:93)
|
||||
at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:117)
|
||||
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:178)
|
||||
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:153)
|
||||
at org.springframework.boot.actuate.metrics.web.servlet.WebMvcMetricsFilter.doFilterInternal(WebMvcMetricsFilter.java:96)
|
||||
at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:117)
|
||||
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:178)
|
||||
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:153)
|
||||
at org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:201)
|
||||
at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:117)
|
||||
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:178)
|
||||
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:153)
|
||||
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:167)
|
||||
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:90)
|
||||
at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:481)
|
||||
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:130)
|
||||
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:93)
|
||||
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:74)
|
||||
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:343)
|
||||
at org.apache.coyote.http11.Http11Processor.service(Http11Processor.java:390)
|
||||
at org.apache.coyote.AbstractProcessorLight.process(AbstractProcessorLight.java:63)
|
||||
at org.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:926)
|
||||
at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1791)
|
||||
at org.apache.tomcat.util.net.SocketProcessorBase.run(SocketProcessorBase.java:52)
|
||||
at org.apache.tomcat.util.threads.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1191)
|
||||
at org.apache.tomcat.util.threads.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:659)
|
||||
at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
|
||||
at java.base/java.lang.Thread.run(Thread.java:842)
|
||||
Caused by: io.lettuce.core.RedisCommandTimeoutException: Command timed out after 1 minute(s)
|
||||
at io.lettuce.core.internal.ExceptionFactory.createTimeoutException(ExceptionFactory.java:59)
|
||||
at io.lettuce.core.internal.Futures.awaitOrCancel(Futures.java:246)
|
||||
at io.lettuce.core.LettuceFutures.awaitOrCancel(LettuceFutures.java:74)
|
||||
at org.springframework.data.redis.connection.lettuce.LettuceConnection.await(LettuceConnection.java:1083)
|
||||
... 68 common frames omitted
|
||||
20:22:43.571 [http-nio-9200-exec-1] ERROR c.b.s.r.f.RemoteLogFallbackFactory - [create,26] - 日志服务调用失败:[503] during [POST] to [http://boot-system/logininfor] [RemoteLogService#saveLogininfor(SysLogininfor,String)]: [Load balancer does not contain an instance for the service boot-system]
|
||||
20:23:12.195 [http-nio-9200-exec-3] ERROR c.b.s.r.f.RemoteUserFallbackFactory - [create,25] - 用户服务调用失败:[503] during [GET] to [http://boot-system/user/info/admin] [RemoteUserService#getUserInfo(String,String)]: [Load balancer does not contain an instance for the service boot-system]
|
||||
20:23:12.198 [http-nio-9200-exec-3] ERROR c.b.s.r.f.RemoteLogFallbackFactory - [create,26] - 日志服务调用失败:[503] during [POST] to [http://boot-system/logininfor] [RemoteLogService#saveLogininfor(SysLogininfor,String)]: [Load balancer does not contain an instance for the service boot-system]
|
||||
20:23:12.202 [http-nio-9200-exec-3] ERROR c.b.c.s.h.GlobalExceptionHandler - [handleServiceException,72] - 登录用户:admin 不存在
|
||||
com.boot.common.core.exception.ServiceException: 登录用户:admin 不存在
|
||||
at com.boot.auth.service.SysLoginService.login(SysLoginService.java:79)
|
||||
at com.boot.auth.controller.TokenController.login(TokenController.java:39)
|
||||
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
|
||||
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77)
|
||||
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
|
||||
at java.base/java.lang.reflect.Method.invoke(Method.java:568)
|
||||
at org.springframework.web.method.support.InvocableHandlerMethod.doInvoke(InvocableHandlerMethod.java:205)
|
||||
at org.springframework.web.method.support.InvocableHandlerMethod.invokeForRequest(InvocableHandlerMethod.java:150)
|
||||
at org.springframework.web.servlet.mvc.method.annotation.ServletInvocableHandlerMethod.invokeAndHandle(ServletInvocableHandlerMethod.java:117)
|
||||
at org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.invokeHandlerMethod(RequestMappingHandlerAdapter.java:895)
|
||||
at org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.handleInternal(RequestMappingHandlerAdapter.java:808)
|
||||
at org.springframework.web.servlet.mvc.method.AbstractHandlerMethodAdapter.handle(AbstractHandlerMethodAdapter.java:87)
|
||||
at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:1072)
|
||||
at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:965)
|
||||
at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:1006)
|
||||
at org.springframework.web.servlet.FrameworkServlet.doPost(FrameworkServlet.java:909)
|
||||
at javax.servlet.http.HttpServlet.service(HttpServlet.java:555)
|
||||
at org.springframework.web.servlet.FrameworkServlet.service(FrameworkServlet.java:883)
|
||||
at javax.servlet.http.HttpServlet.service(HttpServlet.java:623)
|
||||
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:209)
|
||||
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:153)
|
||||
at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:51)
|
||||
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:178)
|
||||
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:153)
|
||||
at org.springframework.web.filter.RequestContextFilter.doFilterInternal(RequestContextFilter.java:100)
|
||||
at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:117)
|
||||
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:178)
|
||||
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:153)
|
||||
at org.springframework.web.filter.FormContentFilter.doFilterInternal(FormContentFilter.java:93)
|
||||
at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:117)
|
||||
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:178)
|
||||
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:153)
|
||||
at org.springframework.boot.actuate.metrics.web.servlet.WebMvcMetricsFilter.doFilterInternal(WebMvcMetricsFilter.java:96)
|
||||
at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:117)
|
||||
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:178)
|
||||
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:153)
|
||||
at org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:201)
|
||||
at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:117)
|
||||
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:178)
|
||||
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:153)
|
||||
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:167)
|
||||
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:90)
|
||||
at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:481)
|
||||
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:130)
|
||||
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:93)
|
||||
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:74)
|
||||
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:343)
|
||||
at org.apache.coyote.http11.Http11Processor.service(Http11Processor.java:390)
|
||||
at org.apache.coyote.AbstractProcessorLight.process(AbstractProcessorLight.java:63)
|
||||
at org.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:926)
|
||||
at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1791)
|
||||
at org.apache.tomcat.util.net.SocketProcessorBase.run(SocketProcessorBase.java:52)
|
||||
at org.apache.tomcat.util.threads.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1191)
|
||||
at org.apache.tomcat.util.threads.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:659)
|
||||
at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
|
||||
at java.base/java.lang.Thread.run(Thread.java:842)
|
||||
22:29:42.369 [SpringApplicationShutdownHook] ERROR c.a.c.n.r.NacosServiceRegistry - [deregister,111] - ERR_NACOS_DEREGISTER, de-register failed...NacosRegistration{nacosDiscoveryProperties=NacosDiscoveryProperties{serverAddr='122.152.215.207:8848', username='', password='', endpoint='', namespace='wdwdwd', watchDelay=30000, logName='', service='boot-auth', weight=1.0, clusterName='DEFAULT', group='DEFAULT_GROUP', namingLoadCacheAtStart='false', metadata={IPv6=null, preserved.register.source=SPRING_CLOUD}, registerEnabled=true, ip='10.3.216.28', networkInterface='', port=9200, secure=false, accessKey='', secretKey='', heartBeatInterval=null, heartBeatTimeout=null, ipDeleteTimeout=null, instanceEnabled=true, ephemeral=true, failureToleranceEnabled=false}, ipDeleteTimeout=null, failFast=true}},
|
||||
com.alibaba.nacos.api.exception.NacosException: java.util.concurrent.TimeoutException: Waited 3000 milliseconds (plus 1 milliseconds, 562500 nanoseconds delay) for com.alibaba.nacos.shaded.io.grpc.stub.ClientCalls$GrpcFuture@29919bcf[status=PENDING, info=[GrpcFuture{clientCall=ClientCallImpl{method=MethodDescriptor{fullMethodName=Request/request, type=UNARY, idempotent=false, safe=false, sampledToLocalTracing=true, requestMarshaller=com.alibaba.nacos.shaded.io.grpc.protobuf.lite.ProtoLiteUtils$MessageMarshaller@6a3c8f00, responseMarshaller=com.alibaba.nacos.shaded.io.grpc.protobuf.lite.ProtoLiteUtils$MessageMarshaller@b025a4a, schemaDescriptor=com.alibaba.nacos.api.grpc.auto.RequestGrpc$RequestMethodDescriptorSupplier@455724bc}}}]]
|
||||
at com.alibaba.nacos.common.remote.client.grpc.GrpcConnection.request(GrpcConnection.java:78)
|
||||
at com.alibaba.nacos.common.remote.client.RpcClient.request(RpcClient.java:641)
|
||||
at com.alibaba.nacos.common.remote.client.RpcClient.request(RpcClient.java:619)
|
||||
at com.alibaba.nacos.client.naming.remote.gprc.NamingGrpcClientProxy.requestToServer(NamingGrpcClientProxy.java:356)
|
||||
at com.alibaba.nacos.client.naming.remote.gprc.NamingGrpcClientProxy.doDeregisterService(NamingGrpcClientProxy.java:233)
|
||||
at com.alibaba.nacos.client.naming.remote.gprc.NamingGrpcClientProxy.deregisterService(NamingGrpcClientProxy.java:219)
|
||||
at com.alibaba.nacos.client.naming.remote.NamingClientProxyDelegate.deregisterService(NamingClientProxyDelegate.java:125)
|
||||
at com.alibaba.nacos.client.naming.NacosNamingService.deregisterInstance(NacosNamingService.java:201)
|
||||
at com.alibaba.nacos.client.naming.NacosNamingService.deregisterInstance(NacosNamingService.java:191)
|
||||
at com.alibaba.cloud.nacos.registry.NacosServiceRegistry.deregister(NacosServiceRegistry.java:107)
|
||||
at org.springframework.cloud.client.serviceregistry.AbstractAutoServiceRegistration.deregister(AbstractAutoServiceRegistration.java:249)
|
||||
at org.springframework.cloud.client.serviceregistry.AbstractAutoServiceRegistration.stop(AbstractAutoServiceRegistration.java:264)
|
||||
at org.springframework.cloud.client.serviceregistry.AbstractAutoServiceRegistration.destroy(AbstractAutoServiceRegistration.java:201)
|
||||
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
|
||||
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77)
|
||||
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
|
||||
at java.base/java.lang.reflect.Method.invoke(Method.java:568)
|
||||
at org.springframework.beans.factory.annotation.InitDestroyAnnotationBeanPostProcessor$LifecycleElement.invoke(InitDestroyAnnotationBeanPostProcessor.java:389)
|
||||
at org.springframework.beans.factory.annotation.InitDestroyAnnotationBeanPostProcessor$LifecycleMetadata.invokeDestroyMethods(InitDestroyAnnotationBeanPostProcessor.java:347)
|
||||
at org.springframework.beans.factory.annotation.InitDestroyAnnotationBeanPostProcessor.postProcessBeforeDestruction(InitDestroyAnnotationBeanPostProcessor.java:177)
|
||||
at org.springframework.beans.factory.support.DisposableBeanAdapter.destroy(DisposableBeanAdapter.java:197)
|
||||
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.destroyBean(DefaultSingletonBeanRegistry.java:587)
|
||||
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.destroySingleton(DefaultSingletonBeanRegistry.java:559)
|
||||
at org.springframework.beans.factory.support.DefaultListableBeanFactory.destroySingleton(DefaultListableBeanFactory.java:1163)
|
||||
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.destroySingletons(DefaultSingletonBeanRegistry.java:520)
|
||||
at org.springframework.beans.factory.support.DefaultListableBeanFactory.destroySingletons(DefaultListableBeanFactory.java:1156)
|
||||
at org.springframework.context.support.AbstractApplicationContext.destroyBeans(AbstractApplicationContext.java:1108)
|
||||
at org.springframework.context.support.AbstractApplicationContext.doClose(AbstractApplicationContext.java:1077)
|
||||
at org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.doClose(ServletWebServerApplicationContext.java:174)
|
||||
at org.springframework.context.support.AbstractApplicationContext.close(AbstractApplicationContext.java:1023)
|
||||
at org.springframework.boot.SpringApplicationShutdownHook.closeAndWait(SpringApplicationShutdownHook.java:145)
|
||||
at java.base/java.lang.Iterable.forEach(Iterable.java:75)
|
||||
at org.springframework.boot.SpringApplicationShutdownHook.run(SpringApplicationShutdownHook.java:114)
|
||||
at java.base/java.lang.Thread.run(Thread.java:842)
|
||||
Caused by: java.util.concurrent.TimeoutException: Waited 3000 milliseconds (plus 1 milliseconds, 562500 nanoseconds delay) for com.alibaba.nacos.shaded.io.grpc.stub.ClientCalls$GrpcFuture@29919bcf[status=PENDING, info=[GrpcFuture{clientCall=ClientCallImpl{method=MethodDescriptor{fullMethodName=Request/request, type=UNARY, idempotent=false, safe=false, sampledToLocalTracing=true, requestMarshaller=com.alibaba.nacos.shaded.io.grpc.protobuf.lite.ProtoLiteUtils$MessageMarshaller@6a3c8f00, responseMarshaller=com.alibaba.nacos.shaded.io.grpc.protobuf.lite.ProtoLiteUtils$MessageMarshaller@b025a4a, schemaDescriptor=com.alibaba.nacos.api.grpc.auto.RequestGrpc$RequestMethodDescriptorSupplier@455724bc}}}]]
|
||||
at com.alibaba.nacos.shaded.com.google.common.util.concurrent.AbstractFuture.get(AbstractFuture.java:508)
|
||||
at com.alibaba.nacos.common.remote.client.grpc.GrpcConnection.request(GrpcConnection.java:76)
|
||||
... 33 common frames omitted
|
|
@ -0,0 +1,123 @@
|
|||
19:44:47.753 [http-nio-9200-exec-1] ERROR c.b.c.s.h.GlobalExceptionHandler - [handleRuntimeException,106] - 请求地址'/login',发生未知异常.
|
||||
org.springframework.data.redis.RedisSystemException: Redis command interrupted; nested exception is io.lettuce.core.RedisCommandInterruptedException: Command interrupted
|
||||
at org.springframework.data.redis.connection.lettuce.LettuceExceptionConverter.convert(LettuceExceptionConverter.java:62)
|
||||
at org.springframework.data.redis.connection.lettuce.LettuceExceptionConverter.convert(LettuceExceptionConverter.java:41)
|
||||
at org.springframework.data.redis.PassThroughExceptionTranslationStrategy.translate(PassThroughExceptionTranslationStrategy.java:44)
|
||||
at org.springframework.data.redis.FallbackExceptionTranslationStrategy.translate(FallbackExceptionTranslationStrategy.java:42)
|
||||
at org.springframework.data.redis.connection.lettuce.LettuceConnection.convertLettuceAccessException(LettuceConnection.java:277)
|
||||
at org.springframework.data.redis.connection.lettuce.LettuceConnection.await(LettuceConnection.java:1085)
|
||||
at org.springframework.data.redis.connection.lettuce.LettuceConnection.lambda$doInvoke$4(LettuceConnection.java:938)
|
||||
at org.springframework.data.redis.connection.lettuce.LettuceInvoker$Synchronizer.invoke(LettuceInvoker.java:665)
|
||||
at org.springframework.data.redis.connection.lettuce.LettuceInvoker.just(LettuceInvoker.java:94)
|
||||
at org.springframework.data.redis.connection.lettuce.LettuceStringCommands.get(LettuceStringCommands.java:55)
|
||||
at org.springframework.data.redis.connection.DefaultedRedisConnection.get(DefaultedRedisConnection.java:279)
|
||||
at org.springframework.data.redis.core.DefaultValueOperations$1.inRedis(DefaultValueOperations.java:58)
|
||||
at org.springframework.data.redis.core.AbstractOperations$ValueDeserializingRedisCallback.doInRedis(AbstractOperations.java:61)
|
||||
at org.springframework.data.redis.core.RedisTemplate.execute(RedisTemplate.java:224)
|
||||
at org.springframework.data.redis.core.RedisTemplate.execute(RedisTemplate.java:191)
|
||||
at org.springframework.data.redis.core.AbstractOperations.execute(AbstractOperations.java:97)
|
||||
at org.springframework.data.redis.core.DefaultValueOperations.get(DefaultValueOperations.java:54)
|
||||
at com.boot.common.redis.service.RedisService.getCacheObject(RedisService.java:108)
|
||||
at com.boot.auth.service.SysPasswordService.validate(SysPasswordService.java:47)
|
||||
at com.boot.auth.service.SysLoginService.login(SysLoginService.java:99)
|
||||
at com.boot.auth.controller.TokenController.login(TokenController.java:39)
|
||||
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
|
||||
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77)
|
||||
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
|
||||
at java.base/java.lang.reflect.Method.invoke(Method.java:568)
|
||||
at org.springframework.web.method.support.InvocableHandlerMethod.doInvoke(InvocableHandlerMethod.java:205)
|
||||
at org.springframework.web.method.support.InvocableHandlerMethod.invokeForRequest(InvocableHandlerMethod.java:150)
|
||||
at org.springframework.web.servlet.mvc.method.annotation.ServletInvocableHandlerMethod.invokeAndHandle(ServletInvocableHandlerMethod.java:117)
|
||||
at org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.invokeHandlerMethod(RequestMappingHandlerAdapter.java:895)
|
||||
at org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.handleInternal(RequestMappingHandlerAdapter.java:808)
|
||||
at org.springframework.web.servlet.mvc.method.AbstractHandlerMethodAdapter.handle(AbstractHandlerMethodAdapter.java:87)
|
||||
at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:1072)
|
||||
at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:965)
|
||||
at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:1006)
|
||||
at org.springframework.web.servlet.FrameworkServlet.doPost(FrameworkServlet.java:909)
|
||||
at javax.servlet.http.HttpServlet.service(HttpServlet.java:555)
|
||||
at org.springframework.web.servlet.FrameworkServlet.service(FrameworkServlet.java:883)
|
||||
at javax.servlet.http.HttpServlet.service(HttpServlet.java:623)
|
||||
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:209)
|
||||
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:153)
|
||||
at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:51)
|
||||
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:178)
|
||||
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:153)
|
||||
at org.springframework.web.filter.RequestContextFilter.doFilterInternal(RequestContextFilter.java:100)
|
||||
at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:117)
|
||||
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:178)
|
||||
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:153)
|
||||
at org.springframework.web.filter.FormContentFilter.doFilterInternal(FormContentFilter.java:93)
|
||||
at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:117)
|
||||
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:178)
|
||||
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:153)
|
||||
at org.springframework.boot.actuate.metrics.web.servlet.WebMvcMetricsFilter.doFilterInternal(WebMvcMetricsFilter.java:96)
|
||||
at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:117)
|
||||
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:178)
|
||||
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:153)
|
||||
at org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:201)
|
||||
at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:117)
|
||||
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:178)
|
||||
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:153)
|
||||
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:167)
|
||||
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:90)
|
||||
at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:481)
|
||||
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:130)
|
||||
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:93)
|
||||
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:74)
|
||||
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:343)
|
||||
at org.apache.coyote.http11.Http11Processor.service(Http11Processor.java:390)
|
||||
at org.apache.coyote.AbstractProcessorLight.process(AbstractProcessorLight.java:63)
|
||||
at org.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:926)
|
||||
at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1791)
|
||||
at org.apache.tomcat.util.net.SocketProcessorBase.run(SocketProcessorBase.java:52)
|
||||
at org.apache.tomcat.util.threads.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1191)
|
||||
at org.apache.tomcat.util.threads.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:659)
|
||||
at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
|
||||
at java.base/java.lang.Thread.run(Thread.java:842)
|
||||
Caused by: io.lettuce.core.RedisCommandInterruptedException: Command interrupted
|
||||
at io.lettuce.core.protocol.AsyncCommand.await(AsyncCommand.java:87)
|
||||
at io.lettuce.core.internal.Futures.awaitOrCancel(Futures.java:244)
|
||||
at io.lettuce.core.LettuceFutures.awaitOrCancel(LettuceFutures.java:74)
|
||||
at org.springframework.data.redis.connection.lettuce.LettuceConnection.await(LettuceConnection.java:1083)
|
||||
... 69 common frames omitted
|
||||
Caused by: java.lang.InterruptedException: null
|
||||
at java.base/java.util.concurrent.CompletableFuture.reportGet(CompletableFuture.java:386)
|
||||
at java.base/java.util.concurrent.CompletableFuture.get(CompletableFuture.java:2096)
|
||||
at io.lettuce.core.protocol.AsyncCommand.await(AsyncCommand.java:83)
|
||||
... 72 common frames omitted
|
||||
22:30:01.543 [SpringApplicationShutdownHook] ERROR c.a.c.n.r.NacosServiceRegistry - [deregister,111] - ERR_NACOS_DEREGISTER, de-register failed...NacosRegistration{nacosDiscoveryProperties=NacosDiscoveryProperties{serverAddr='122.152.215.207:8848', username='', password='', endpoint='', namespace='wdwdwd', watchDelay=30000, logName='', service='boot-auth', weight=1.0, clusterName='DEFAULT', group='DEFAULT_GROUP', namingLoadCacheAtStart='false', metadata={IPv6=null, preserved.register.source=SPRING_CLOUD}, registerEnabled=true, ip='10.3.216.28', networkInterface='', port=9200, secure=false, accessKey='', secretKey='', heartBeatInterval=null, heartBeatTimeout=null, ipDeleteTimeout=null, instanceEnabled=true, ephemeral=true, failureToleranceEnabled=false}, ipDeleteTimeout=null, failFast=true}},
|
||||
com.alibaba.nacos.api.exception.NacosException: Client not connected, current status:UNHEALTHY
|
||||
at com.alibaba.nacos.common.remote.client.RpcClient.request(RpcClient.java:639)
|
||||
at com.alibaba.nacos.common.remote.client.RpcClient.request(RpcClient.java:619)
|
||||
at com.alibaba.nacos.client.naming.remote.gprc.NamingGrpcClientProxy.requestToServer(NamingGrpcClientProxy.java:356)
|
||||
at com.alibaba.nacos.client.naming.remote.gprc.NamingGrpcClientProxy.doDeregisterService(NamingGrpcClientProxy.java:233)
|
||||
at com.alibaba.nacos.client.naming.remote.gprc.NamingGrpcClientProxy.deregisterService(NamingGrpcClientProxy.java:219)
|
||||
at com.alibaba.nacos.client.naming.remote.NamingClientProxyDelegate.deregisterService(NamingClientProxyDelegate.java:125)
|
||||
at com.alibaba.nacos.client.naming.NacosNamingService.deregisterInstance(NacosNamingService.java:201)
|
||||
at com.alibaba.nacos.client.naming.NacosNamingService.deregisterInstance(NacosNamingService.java:191)
|
||||
at com.alibaba.cloud.nacos.registry.NacosServiceRegistry.deregister(NacosServiceRegistry.java:107)
|
||||
at org.springframework.cloud.client.serviceregistry.AbstractAutoServiceRegistration.deregister(AbstractAutoServiceRegistration.java:249)
|
||||
at org.springframework.cloud.client.serviceregistry.AbstractAutoServiceRegistration.stop(AbstractAutoServiceRegistration.java:264)
|
||||
at org.springframework.cloud.client.serviceregistry.AbstractAutoServiceRegistration.destroy(AbstractAutoServiceRegistration.java:201)
|
||||
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
|
||||
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77)
|
||||
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
|
||||
at java.base/java.lang.reflect.Method.invoke(Method.java:568)
|
||||
at org.springframework.beans.factory.annotation.InitDestroyAnnotationBeanPostProcessor$LifecycleElement.invoke(InitDestroyAnnotationBeanPostProcessor.java:389)
|
||||
at org.springframework.beans.factory.annotation.InitDestroyAnnotationBeanPostProcessor$LifecycleMetadata.invokeDestroyMethods(InitDestroyAnnotationBeanPostProcessor.java:347)
|
||||
at org.springframework.beans.factory.annotation.InitDestroyAnnotationBeanPostProcessor.postProcessBeforeDestruction(InitDestroyAnnotationBeanPostProcessor.java:177)
|
||||
at org.springframework.beans.factory.support.DisposableBeanAdapter.destroy(DisposableBeanAdapter.java:197)
|
||||
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.destroyBean(DefaultSingletonBeanRegistry.java:587)
|
||||
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.destroySingleton(DefaultSingletonBeanRegistry.java:559)
|
||||
at org.springframework.beans.factory.support.DefaultListableBeanFactory.destroySingleton(DefaultListableBeanFactory.java:1163)
|
||||
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.destroySingletons(DefaultSingletonBeanRegistry.java:520)
|
||||
at org.springframework.beans.factory.support.DefaultListableBeanFactory.destroySingletons(DefaultListableBeanFactory.java:1156)
|
||||
at org.springframework.context.support.AbstractApplicationContext.destroyBeans(AbstractApplicationContext.java:1108)
|
||||
at org.springframework.context.support.AbstractApplicationContext.doClose(AbstractApplicationContext.java:1077)
|
||||
at org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.doClose(ServletWebServerApplicationContext.java:174)
|
||||
at org.springframework.context.support.AbstractApplicationContext.close(AbstractApplicationContext.java:1023)
|
||||
at org.springframework.boot.SpringApplicationShutdownHook.closeAndWait(SpringApplicationShutdownHook.java:145)
|
||||
at java.base/java.lang.Iterable.forEach(Iterable.java:75)
|
||||
at org.springframework.boot.SpringApplicationShutdownHook.run(SpringApplicationShutdownHook.java:114)
|
||||
at java.base/java.lang.Thread.run(Thread.java:842)
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue