Commit 176a69b9 by lijiayu9745

Initial commit

parents
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="CompilerConfiguration">
<annotationProcessing>
<profile name="Maven default annotation processors profile" enabled="true">
<sourceOutputDir name="target/generated-sources/annotations" />
<sourceTestOutputDir name="target/generated-test-sources/test-annotations" />
<outputRelativeToContentRoot value="true" />
<module name="lighthouse" />
<module name="openapi_v1" />
</profile>
</annotationProcessing>
</component>
</project>
\ No newline at end of file
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="Encoding">
<file url="file://$PROJECT_DIR$" charset="UTF-8" />
</component>
</project>
\ No newline at end of file
<component name="InspectionProjectProfileManager">
<profile version="1.0">
<option name="myName" value="Project Default" />
<inspection_tool class="Duplicates" enabled="false" level="WEAK WARNING" enabled_by_default="false" />
</profile>
</component>
\ No newline at end of file
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="ExternalStorageConfigurationManager" enabled="true" />
<component name="MavenProjectsManager">
<option name="originalFiles">
<list>
<option value="$PROJECT_DIR$/pom.xml" />
</list>
</option>
</component>
<component name="ProjectRootManager" version="2" languageLevel="JDK_1_8" project-jdk-name="1.8" project-jdk-type="JavaSDK">
<output url="file://$PROJECT_DIR$/out" />
</component>
</project>
\ No newline at end of file
<?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.png" 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.png" 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.png" 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.png" 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.png" 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.png" 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.png" 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.png" 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.png" 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.png" 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.png" 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.png" 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.png" 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.png" 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.png" 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.png" 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.png" 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.png" 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.png" 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.png" 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.png" 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.png" 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.png" 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.png" 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.png" 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.png" 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.png" 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>
\ No newline at end of file
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="VcsDirectoryMappings">
<mapping directory="$PROJECT_DIR$" vcs="Git" />
</component>
</project>
\ No newline at end of file
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="ChangeListManager">
<list default="true" id="4d060602-4067-4960-8e94-39d1444cbeba" name="Default" comment="" />
<ignored path="$PROJECT_DIR$/target/" />
<option name="EXCLUDED_CONVERTED_TO_IGNORED" value="true" />
<option name="TRACKING_ENABLED" value="true" />
<option name="SHOW_DIALOG" value="false" />
<option name="HIGHLIGHT_CONFLICTS" value="true" />
<option name="HIGHLIGHT_NON_ACTIVE_CHANGELIST" value="false" />
<option name="LAST_RESOLUTION" value="IGNORE" />
</component>
<component name="FileEditorManager">
<leaf SIDE_TABS_SIZE_LIMIT_KEY="300">
<file leaf-file-name="UploadController.java" pinned="false" current-in-tab="false">
<entry file="file://$PROJECT_DIR$/src/main/java/com/reyun/bpu/dmp/controller/UploadController.java">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="432">
<caret line="27" selection-start-line="27" selection-end-line="27" />
<folding>
<element signature="imports" expanded="true" />
</folding>
</state>
</provider>
</entry>
</file>
<file leaf-file-name="CodeEnum.java" pinned="false" current-in-tab="false">
<entry file="file://$PROJECT_DIR$/src/main/java/com/reyun/bpu/dmp/utils/CodeEnum.java">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="513">
<caret line="19" column="21" selection-start-line="19" selection-start-column="4" selection-end-line="19" selection-end-column="21" />
</state>
</provider>
</entry>
</file>
<file leaf-file-name="FileIoService.java" pinned="false" current-in-tab="false">
<entry file="file://$PROJECT_DIR$/src/main/java/com/reyun/bpu/dmp/service/FileIoService.java">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="1593">
<caret line="62" selection-start-line="62" selection-end-line="62" />
</state>
</provider>
</entry>
</file>
<file leaf-file-name="JsonParse.java" pinned="false" current-in-tab="false">
<entry file="file://$PROJECT_DIR$/src/main/java/com/reyun/bpu/dmp/service/JsonParse.java">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="567">
<caret line="29" column="35" selection-start-line="29" selection-start-column="35" selection-end-line="29" selection-end-column="35" />
</state>
</provider>
</entry>
</file>
<file leaf-file-name="DmpBackgroundApplication.java" pinned="false" current-in-tab="false">
<entry file="file://$PROJECT_DIR$/src/main/java/com/reyun/bpu/dmp/DmpBackgroundApplication.java">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="189">
<caret line="9" column="13" selection-start-line="9" selection-start-column="13" selection-end-line="9" selection-end-column="13" />
<folding>
<element signature="imports" expanded="true" />
<element signature="e#381#382#0" expanded="true" />
<element signature="e#456#457#0" expanded="true" />
</folding>
</state>
</provider>
</entry>
</file>
<file leaf-file-name="pom.xml" pinned="false" current-in-tab="true">
<entry file="file://$PROJECT_DIR$/pom.xml">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="109">
<caret line="138" selection-start-line="138" selection-end-line="138" />
<folding>
<element signature="n#parent#0;n#project#0;n#!!top" />
<element signature="n#dependencies#0;n#project#0;n#!!top" />
<element signature="n#build#0;n#project#0;n#!!top" />
</folding>
</state>
</provider>
<provider editor-type-id="MavenHelperPluginDependencyAnalyzer" />
</entry>
</file>
<file leaf-file-name="log4j.properties" pinned="false" current-in-tab="false">
<entry file="file://$PROJECT_DIR$/src/main/resources/log4j.properties">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="216">
<caret line="8" column="21" selection-start-line="8" selection-start-column="21" selection-end-line="8" selection-end-column="21" />
</state>
</provider>
</entry>
</file>
<file leaf-file-name="application.properties" pinned="false" current-in-tab="false">
<entry file="file://$PROJECT_DIR$/src/main/resources/application.properties">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="108">
<caret line="4" selection-start-line="4" selection-end-line="4" selection-end-column="10" />
</state>
</provider>
</entry>
</file>
<file leaf-file-name="FileUtil.java" pinned="false" current-in-tab="false">
<entry file="file://$PROJECT_DIR$/src/main/java/com/reyun/bpu/dmp/utils/FileUtil.java">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="1242">
<caret line="61" column="18" selection-start-line="61" selection-start-column="18" selection-end-line="61" selection-end-column="18" />
<folding>
<element signature="imports" expanded="true" />
</folding>
</state>
</provider>
</entry>
</file>
</leaf>
</component>
<component name="FindInProjectRecents">
<findStrings>
<find>uploadToS3</find>
<find>main</find>
<find>faile</find>
<find>ingframework.</find>
</findStrings>
</component>
<component name="Git.Settings">
<option name="RECENT_GIT_ROOT_PATH" value="$PROJECT_DIR$" />
</component>
<component name="IdeDocumentHistory">
<option name="CHANGED_PATHS">
<list>
<option value="$PROJECT_DIR$/src/main/java/com/reyun/bpu/dmp/OpenapiV1Application.java" />
<option value="$PROJECT_DIR$/src/main/java/com/reyun/bpu/dmp/utils/S3Util.java" />
<option value="$PROJECT_DIR$/src/main/java/com/reyun/bpu/dmp/utils/S3FileUtil.java" />
<option value="$PROJECT_DIR$/src/main/java/com/reyun/bpu/dmp/service/FileIoService.java" />
<option value="$PROJECT_DIR$/src/main/resources/application.properties" />
<option value="$PROJECT_DIR$/src/main/java/com/reyun/bpu/dmp/utils/FileUtil.java" />
<option value="$PROJECT_DIR$/src/main/java/com/reyun/bpu/dmp/utils/CodeEnum.java" />
<option value="$PROJECT_DIR$/src/main/java/com/reyun/bpu/dmp/DmpBackgroundApplication.java" />
<option value="$PROJECT_DIR$/src/main/java/com/reyun/bpu/dmp/controller/UploadController.java" />
<option value="$PROJECT_DIR$/pom.xml" />
</list>
</option>
</component>
<component name="JsBuildToolGruntFileManager" detection-done="true" sorting="DEFINITION_ORDER" />
<component name="JsBuildToolPackageJson" detection-done="true" sorting="DEFINITION_ORDER" />
<component name="JsGulpfileManager">
<detection-done>true</detection-done>
<sorting>DEFINITION_ORDER</sorting>
</component>
<component name="MavenImportPreferences">
<option name="generalSettings">
<MavenGeneralSettings>
<option name="localRepository" value="D:\STUDY\ScalaStage\m2\repository" />
<option name="userSettingsFile" value="D:\STUDY\ScalaStage\apache-maven-3.5.4\conf\settings.xml" />
</MavenGeneralSettings>
</option>
<option name="importingSettings">
<MavenImportingSettings>
<option name="importAutomatically" value="true" />
</MavenImportingSettings>
</option>
</component>
<component name="MavenProjectNavigator">
<treeState>
<expand>
<path>
<item name="" type="16c1761:MavenProjectsStructure$RootNode" />
<item name="openapi_v1" type="9519ce18:MavenProjectsStructure$ProjectNode" />
</path>
<path>
<item name="" type="16c1761:MavenProjectsStructure$RootNode" />
<item name="openapi_v1" type="9519ce18:MavenProjectsStructure$ProjectNode" />
<item name="Lifecycle" type="58874e2:MavenProjectsStructure$LifecycleNode" />
</path>
</expand>
<select />
</treeState>
</component>
<component name="NodePackageJsonFileManager">
<packageJsonPaths />
</component>
<component name="ProjectFrameBounds">
<option name="x" value="-492" />
<option name="y" value="71" />
<option name="width" value="1386" />
<option name="height" value="737" />
</component>
<component name="ProjectLevelVcsManager" settingsEditedManually="true" />
<component name="ProjectView">
<navigator proportions="" version="1">
<foldersAlwaysOnTop value="true" />
</navigator>
<panes>
<pane id="ProjectPane">
<subPane>
<expand>
<path>
<item name="lighthouse" type="b2602c69:ProjectViewProjectNode" />
<item name="lighthouse" type="462c0819:PsiDirectoryNode" />
</path>
<path>
<item name="lighthouse" type="b2602c69:ProjectViewProjectNode" />
<item name="lighthouse" type="462c0819:PsiDirectoryNode" />
<item name="src" type="462c0819:PsiDirectoryNode" />
</path>
<path>
<item name="lighthouse" type="b2602c69:ProjectViewProjectNode" />
<item name="lighthouse" type="462c0819:PsiDirectoryNode" />
<item name="src" type="462c0819:PsiDirectoryNode" />
<item name="main" type="462c0819:PsiDirectoryNode" />
</path>
</expand>
<select />
</subPane>
</pane>
<pane id="Scope" />
<pane id="AndroidView" />
<pane id="PackagesPane" />
</panes>
</component>
<component name="PropertiesComponent">
<property name="RequestMappingsPanelOrder0" value="0" />
<property name="RequestMappingsPanelOrder1" value="1" />
<property name="RequestMappingsPanelWidth0" value="75" />
<property name="RequestMappingsPanelWidth1" value="75" />
<property name="WebServerToolWindowFactoryState" value="false" />
<property name="aspect.path.notification.shown" value="true" />
<property name="last_opened_file_path" value="D:/MyWorkSpace/sl" />
<property name="nodejs_interpreter_path.stuck_in_default_project" value="undefined stuck path" />
<property name="nodejs_npm_path_reset_for_default_project" value="true" />
<property name="project.structure.last.edited" value="Artifacts" />
<property name="project.structure.proportion" value="0.15320334" />
<property name="project.structure.side.proportion" value="0.2" />
<property name="settings.editor.selected.configurable" value="MavenSettings" />
</component>
<component name="RecentsManager">
<key name="CopyClassDialog.RECENTS_KEY">
<recent name="com.reyun.bpu.dmp.utils" />
</key>
</component>
<component name="RunDashboard">
<option name="ruleStates">
<list>
<RuleState>
<option name="name" value="ConfigurationTypeDashboardGroupingRule" />
</RuleState>
<RuleState>
<option name="name" value="StatusDashboardGroupingRule" />
</RuleState>
</list>
</option>
</component>
<component name="RunManager" selected="Application.DmpBackgroundApplication">
<configuration name="DmpBackgroundApplication" type="Application" factoryName="Application" temporary="true" nameIsGenerated="true">
<option name="MAIN_CLASS_NAME" value="com.reyun.bpu.dmp.DmpBackgroundApplication" />
<module name="openapi_v1" />
<option name="WORKING_DIRECTORY" value="$PROJECT_DIR$" />
<extension name="coverage">
<pattern>
<option name="PATTERN" value="com.reyun.bpu.dmp.*" />
<option name="ENABLED" value="true" />
</pattern>
</extension>
</configuration>
<configuration name="FileUtil" type="Application" factoryName="Application" temporary="true" nameIsGenerated="true">
<option name="MAIN_CLASS_NAME" value="com.reyun.bpu.dmp.utils.FileUtil" />
<module name="lighthouse" />
<option name="WORKING_DIRECTORY" value="$PROJECT_DIR$" />
<extension name="coverage">
<pattern>
<option name="PATTERN" value="com.reyun.bpu.dmp.utils.*" />
<option name="ENABLED" value="true" />
</pattern>
</extension>
</configuration>
<configuration default="true" type="Application" factoryName="Application">
<option name="WORKING_DIRECTORY" value="$PROJECT_DIR$" />
</configuration>
<configuration default="true" type="JUnit" factoryName="JUnit">
<option name="ALTERNATIVE_JRE_PATH_ENABLED" value="false" />
<option name="ALTERNATIVE_JRE_PATH" />
<option name="PACKAGE_NAME" />
<option name="MAIN_CLASS_NAME" />
<option name="METHOD_NAME" />
<option name="TEST_OBJECT" value="class" />
<option name="VM_PARAMETERS" value="-ea" />
<option name="PARAMETERS" />
<option name="WORKING_DIRECTORY" value="%MODULE_WORKING_DIR%" />
<option name="PASS_PARENT_ENVS" value="true" />
<option name="TEST_SEARCH_SCOPE">
<value defaultName="singleModule" />
</option>
<patterns />
</configuration>
<configuration name="DmpBackgroundApplication" type="SpringBootApplicationConfigurationType" factoryName="Spring Boot" temporary="true" nameIsGenerated="true">
<module name="lighthouse" />
<extension name="coverage">
<pattern>
<option name="PATTERN" value="com.reyun.bpu.dmp.*" />
<option name="ENABLED" value="true" />
</pattern>
</extension>
<option name="SPRING_BOOT_MAIN_CLASS" value="com.reyun.bpu.dmp.DmpBackgroundApplication" />
</configuration>
<configuration name="OpenapiV1Application" type="SpringBootApplicationConfigurationType" factoryName="Spring Boot">
<module name="lighthouse" />
<option name="SPRING_BOOT_MAIN_CLASS" value="com.reyun.bpu.dmp.openapi_v1.OpenapiV1Application" />
</configuration>
<configuration default="true" type="TestNG" factoryName="TestNG">
<option name="ALTERNATIVE_JRE_PATH_ENABLED" value="false" />
<option name="ALTERNATIVE_JRE_PATH" />
<option name="SUITE_NAME" />
<option name="PACKAGE_NAME" />
<option name="MAIN_CLASS_NAME" />
<option name="METHOD_NAME" />
<option name="GROUP_NAME" />
<option name="TEST_OBJECT" value="CLASS" />
<option name="VM_PARAMETERS" value="-ea" />
<option name="PARAMETERS" />
<option name="WORKING_DIRECTORY" value="%MODULE_WORKING_DIR%" />
<option name="OUTPUT_DIRECTORY" />
<option name="PASS_PARENT_ENVS" value="true" />
<option name="TEST_SEARCH_SCOPE">
<value defaultName="singleModule" />
</option>
<option name="USE_DEFAULT_REPORTERS" value="false" />
<option name="PROPERTIES_FILE" />
<properties />
<listeners />
</configuration>
<list>
<item itemvalue="Application.FileUtil" />
<item itemvalue="Application.DmpBackgroundApplication" />
</list>
<recent_temporary>
<list>
<item itemvalue="Application.DmpBackgroundApplication" />
<item itemvalue="Application.FileUtil" />
</list>
</recent_temporary>
</component>
<component name="SvnConfiguration">
<configuration />
</component>
<component name="TaskManager">
<task active="true" id="Default" summary="Default task">
<changelist id="4d060602-4067-4960-8e94-39d1444cbeba" name="Default" comment="" />
<created>1562729821030</created>
<option name="number" value="Default" />
<option name="presentableId" value="Default" />
<updated>1562729821030</updated>
<workItem from="1562729824950" duration="76000" />
<workItem from="1562729907687" duration="13092000" />
</task>
<task id="LOCAL-00001" summary="修改工程名称和联调测试成功的代码">
<created>1562730286974</created>
<option name="number" value="00001" />
<option name="presentableId" value="LOCAL-00001" />
<option name="project" value="LOCAL" />
<updated>1562730286974</updated>
</task>
<task id="LOCAL-00002" summary="修改文件名称">
<created>1562730425473</created>
<option name="number" value="00002" />
<option name="presentableId" value="LOCAL-00002" />
<option name="project" value="LOCAL" />
<updated>1562730425473</updated>
</task>
<task id="LOCAL-00003" summary="文件上传先写入本地再写入s3">
<created>1562751092704</created>
<option name="number" value="00003" />
<option name="presentableId" value="LOCAL-00003" />
<option name="project" value="LOCAL" />
<updated>1562751092704</updated>
</task>
<option name="localTasksCounter" value="4" />
<servers />
</component>
<component name="TimeTrackingManager">
<option name="totallyTimeSpent" value="13168000" />
</component>
<component name="ToolWindowManager">
<frame x="-492" y="71" width="1386" height="737" extended-state="0" />
<layout>
<window_info anchor="right" id="Palette" order="3" />
<window_info anchor="bottom" id="TODO" order="7" />
<window_info anchor="right" id="Palette&#9;" order="6" />
<window_info id="Image Layers" order="3" />
<window_info anchor="right" id="Capture Analysis" order="4" />
<window_info anchor="bottom" id="Event Log" order="13" side_tool="true" visible="true" weight="0.32961783" />
<window_info anchor="right" id="Maven Projects" order="9" visible="true" weight="0.003649635" />
<window_info anchor="bottom" id="Version Control" order="12" />
<window_info anchor="bottom" id="Run" order="3" weight="0.26433122" />
<window_info anchor="bottom" id="Terminal" order="9" />
<window_info id="Capture Tool" order="7" />
<window_info id="Designer" order="2" />
<window_info active="true" content_ui="combo" id="Project" order="0" visible="true" weight="0.2540146" />
<window_info anchor="bottom" id="Tail" order="14" />
<window_info id="Structure" order="1" side_tool="true" weight="0.25" />
<window_info anchor="right" id="Ant Build" order="1" weight="0.25" />
<window_info id="UI Designer" order="4" />
<window_info anchor="right" id="Theme Preview" order="7" />
<window_info id="Favorites" order="5" side_tool="true" />
<window_info anchor="bottom" id="Debug" order="4" weight="0.4" />
<window_info id="Web" order="6" side_tool="true" />
<window_info anchor="bottom" id="Spring" order="8" />
<window_info anchor="bottom" id="Inspection" order="6" weight="0.4" />
<window_info anchor="right" id="Commander" internal_type="SLIDING" order="0" type="SLIDING" weight="0.4" />
<window_info anchor="bottom" id="Find" order="2" />
<window_info anchor="bottom" id="Cvs" order="5" weight="0.25" />
<window_info anchor="right" id="Database" order="5" />
<window_info anchor="bottom" id="Messages" order="0" weight="0.32976654" />
<window_info anchor="bottom" id="Message" order="1" />
<window_info anchor="right" id="Bean Validation" order="8" />
<window_info anchor="bottom" id="Database Changes" order="11" />
<window_info anchor="right" content_ui="combo" id="Hierarchy" order="2" weight="0.25" />
<window_info anchor="bottom" id="Java Enterprise" order="10" />
</layout>
<layout-to-restore>
<window_info id="Designer" order="2" />
<window_info anchor="right" id="Palette" order="3" />
<window_info anchor="bottom" id="Spring" order="8" />
<window_info id="Image Layers" order="3" />
<window_info anchor="bottom" id="Run" order="3" weight="0.32976654" />
<window_info anchor="bottom" id="Cvs" order="5" weight="0.25" />
<window_info anchor="right" id="Ant Build" order="1" weight="0.25" />
<window_info id="UI Designer" order="4" />
<window_info id="Favorites" order="5" side_tool="true" />
<window_info anchor="bottom" id="Terminal" order="9" />
<window_info id="Capture Tool" order="7" />
<window_info anchor="right" id="Capture Analysis" order="4" />
<window_info anchor="right" id="Commander" internal_type="SLIDING" order="0" type="SLIDING" weight="0.4" />
<window_info anchor="bottom" id="Event Log" order="13" side_tool="true" />
<window_info anchor="bottom" id="Messages" order="0" weight="0.32976654" />
<window_info anchor="bottom" id="TODO" order="7" />
<window_info anchor="right" content_ui="combo" id="Hierarchy" order="2" weight="0.25" />
<window_info anchor="bottom" id="Java Enterprise" order="10" />
<window_info anchor="bottom" id="Database Changes" order="11" />
<window_info anchor="bottom" id="Version Control" order="12" />
<window_info anchor="right" id="Maven Projects" order="9" />
<window_info active="true" content_ui="combo" id="Project" order="0" visible="true" weight="0.1953125" />
<window_info anchor="right" id="Database" order="5" />
<window_info anchor="bottom" id="Message" order="1" />
<window_info id="Web" order="6" side_tool="true" />
<window_info anchor="right" id="Palette&#9;" order="6" />
<window_info anchor="right" id="Theme Preview" order="7" />
<window_info id="Structure" order="1" side_tool="true" weight="0.25" />
<window_info anchor="bottom" id="Inspection" order="6" weight="0.4" />
<window_info anchor="bottom" id="Find" order="2" />
<window_info anchor="right" id="Bean Validation" order="8" />
<window_info anchor="bottom" id="Debug" order="4" weight="0.4" />
</layout-to-restore>
</component>
<component name="TypeScriptGeneratedFilesManager">
<option name="version" value="1" />
</component>
<component name="VcsContentAnnotationSettings">
<option name="myLimit" value="2678400000" />
</component>
<component name="VcsManagerConfiguration">
<MESSAGE value="修改工程名称和联调测试成功的代码" />
<MESSAGE value="修改文件名称" />
<MESSAGE value="文件上传先写入本地再写入s3" />
<option name="LAST_COMMIT_MESSAGE" value="文件上传先写入本地再写入s3" />
</component>
<component name="editorHistoryManager">
<entry file="file://$PROJECT_DIR$/src/main/java/com/reyun/bpu/dmp/utils/CodeEnum.java">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="513">
<caret line="19" column="21" selection-start-line="19" selection-start-column="4" selection-end-line="19" selection-end-column="21" />
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/src/main/java/com/reyun/bpu/dmp/service/FileIoService.java">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="1593">
<caret line="62" selection-start-line="62" selection-end-line="62" />
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/src/main/java/com/reyun/bpu/dmp/service/JsonParse.java">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="567">
<caret line="29" column="35" selection-start-line="29" selection-start-column="35" selection-end-line="29" selection-end-column="35" />
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/src/main/java/com/reyun/bpu/dmp/DmpBackgroundApplication.java">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="189">
<caret line="9" column="13" selection-start-line="9" selection-start-column="13" selection-end-line="9" selection-end-column="13" />
<folding>
<element signature="imports" expanded="true" />
<element signature="e#381#382#0" expanded="true" />
<element signature="e#456#457#0" expanded="true" />
</folding>
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/src/main/resources/log4j.properties">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="216">
<caret line="8" column="21" selection-start-line="8" selection-start-column="21" selection-end-line="8" selection-end-column="21" />
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/src/main/resources/application.properties">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="108">
<caret line="4" selection-start-line="4" selection-end-line="4" selection-end-column="10" />
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/src/main/java/com/reyun/bpu/dmp/utils/FileUtil.java">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="1647">
<caret line="61" column="18" selection-start-line="61" selection-start-column="18" selection-end-line="61" selection-end-column="18" />
<folding>
<element signature="imports" expanded="true" />
</folding>
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/pom.xml">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="486">
<caret line="138" lean-forward="true" selection-start-line="138" selection-end-line="138" />
<folding>
<element signature="n#parent#0;n#project#0;n#!!top" />
<element signature="n#dependencies#0;n#project#0;n#!!top" />
<element signature="n#build#0;n#project#0;n#!!top" />
</folding>
</state>
</provider>
<provider editor-type-id="MavenHelperPluginDependencyAnalyzer" />
</entry>
<entry file="file://$PROJECT_DIR$/src/main/java/com/reyun/bpu/dmp/controller/UploadController.java">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="432">
<caret line="27" selection-start-line="27" selection-end-line="27" />
<folding>
<element signature="imports" expanded="true" />
</folding>
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/src/main/java/com/reyun/bpu/dmp/utils/CodeEnum.java">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="513">
<caret line="19" column="21" selection-start-line="19" selection-start-column="4" selection-end-line="19" selection-end-column="21" />
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/src/main/java/com/reyun/bpu/dmp/service/FileIoService.java">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="1593">
<caret line="62" selection-start-line="62" selection-end-line="62" />
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/src/main/java/com/reyun/bpu/dmp/service/JsonParse.java">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="567">
<caret line="29" column="35" selection-start-line="29" selection-start-column="35" selection-end-line="29" selection-end-column="35" />
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/pom.xml">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="3429">
<caret line="127" column="29" selection-start-line="127" selection-start-column="29" selection-end-line="127" selection-end-column="29" />
<folding>
<element signature="n#parent#0;n#project#0;n#!!top" />
<element signature="n#dependencies#0;n#project#0;n#!!top" />
<element signature="n#build#0;n#project#0;n#!!top" />
</folding>
</state>
</provider>
<provider editor-type-id="MavenHelperPluginDependencyAnalyzer" />
</entry>
<entry file="file://$PROJECT_DIR$/src/main/resources/log4j.properties">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="216">
<caret line="8" column="21" selection-start-line="8" selection-start-column="21" selection-end-line="8" selection-end-column="21" />
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/src/main/resources/application.properties">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="108">
<caret line="4" selection-start-line="4" selection-end-line="4" selection-end-column="10" />
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/src/main/java/com/reyun/bpu/dmp/utils/FileUtil.java">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="1242">
<caret line="61" column="18" selection-start-line="61" selection-start-column="18" selection-end-line="61" selection-end-column="18" />
<folding>
<element signature="imports" expanded="true" />
</folding>
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/src/main/java/com/reyun/bpu/dmp/DmpBackgroundApplication.java">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="189">
<caret line="9" column="13" selection-start-line="9" selection-start-column="13" selection-end-line="9" selection-end-column="13" />
<folding>
<element signature="imports" expanded="true" />
<element signature="e#381#382#0" expanded="true" />
<element signature="e#456#457#0" expanded="true" />
</folding>
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/src/main/java/com/reyun/bpu/dmp/controller/UploadController.java">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="729">
<caret line="27" selection-start-line="27" selection-end-line="27" />
<folding>
<element signature="imports" expanded="true" />
</folding>
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/src/main/java/com/reyun/bpu/dmp/utils/CodeEnum.java">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="513">
<caret line="19" column="21" selection-start-line="19" selection-start-column="4" selection-end-line="19" selection-end-column="21" />
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/src/main/java/com/reyun/bpu/dmp/service/FileIoService.java">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="1593">
<caret line="62" selection-start-line="62" selection-end-line="62" />
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/src/main/java/com/reyun/bpu/dmp/service/JsonParse.java">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="567">
<caret line="29" column="35" selection-start-line="29" selection-start-column="35" selection-end-line="29" selection-end-column="35" />
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/src/main/java/com/reyun/bpu/dmp/DmpBackgroundApplication.java">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="108">
<caret line="4" column="51" selection-start-line="4" selection-start-column="51" selection-end-line="4" selection-end-column="51" />
<folding>
<element signature="imports" expanded="true" />
<element signature="e#381#382#0" expanded="true" />
<element signature="e#456#457#0" expanded="true" />
</folding>
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/pom.xml">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="243">
<caret line="9" column="13" selection-start-line="9" selection-start-column="13" selection-end-line="9" selection-end-column="13" />
<folding>
<element signature="n#parent#0;n#project#0;n#!!top" />
<element signature="n#dependencies#0;n#project#0;n#!!top" />
<element signature="n#build#0;n#project#0;n#!!top" />
</folding>
</state>
</provider>
<provider editor-type-id="MavenHelperPluginDependencyAnalyzer" />
</entry>
<entry file="file://$PROJECT_DIR$/src/main/resources/log4j.properties">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="216">
<caret line="8" column="21" selection-start-line="8" selection-start-column="21" selection-end-line="8" selection-end-column="21" />
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/src/main/resources/application.properties">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="108">
<caret line="4" selection-start-line="4" selection-end-line="4" selection-end-column="10" />
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/src/main/java/com/reyun/bpu/dmp/utils/FileUtil.java">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="1242">
<caret line="61" column="18" selection-start-line="61" selection-start-column="18" selection-end-line="61" selection-end-column="18" />
<folding>
<element signature="imports" expanded="true" />
</folding>
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/src/main/java/com/reyun/bpu/dmp/controller/UploadController.java">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="1647">
<caret line="72" column="32" lean-forward="true" selection-start-line="72" selection-start-column="32" selection-end-line="72" selection-end-column="32" />
<folding>
<element signature="imports" expanded="true" />
</folding>
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/src/main/java/com/reyun/bpu/dmp/utils/CodeEnum.java">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="513">
<caret line="19" column="21" selection-start-line="19" selection-start-column="4" selection-end-line="19" selection-end-column="21" />
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/src/main/java/com/reyun/bpu/dmp/service/FileIoService.java">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="54">
<caret line="5" column="37" lean-forward="true" selection-start-line="5" selection-start-column="37" selection-end-line="5" selection-end-column="37" />
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/src/main/java/com/reyun/bpu/dmp/service/JsonParse.java">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="567">
<caret line="29" column="35" lean-forward="true" selection-start-line="29" selection-start-column="35" selection-end-line="29" selection-end-column="35" />
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/src/main/java/com/reyun/bpu/dmp/utils/FileUtil.java">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="1242">
<caret line="61" column="18" selection-start-line="61" selection-start-column="18" selection-end-line="61" selection-end-column="18" />
<folding>
<element signature="imports" expanded="true" />
</folding>
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/src/main/java/com/reyun/bpu/dmp/utils/Result.java">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="324">
<caret line="12" lean-forward="true" selection-start-line="12" selection-end-line="12" />
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/src/test/java/com/reyun/bpu/dmp/OpenapiV1ApplicationTests.java" />
<entry file="file://$PROJECT_DIR$/lighthouse.iml">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="-3603">
<caret line="12" column="22" lean-forward="true" selection-start-line="12" selection-start-column="22" selection-end-line="12" selection-end-column="22" />
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/src/main/java/com/reyun/bpu/dmp/service/S3Util.java" />
<entry file="jar:///Library/Java/JavaVirtualMachines/jdk1.8.0_161.jdk/Contents/Home/src.zip!/java/nio/Buffer.java" />
<entry file="jar:///Library/Java/JavaVirtualMachines/jdk1.8.0_161.jdk/Contents/Home/src.zip!/java/nio/ByteBuffer.java" />
<entry file="jar://$MAVEN_REPOSITORY$/software/amazon/awssdk/sdk-core/2.5.51/sdk-core-2.5.51.jar!/software/amazon/awssdk/core/sync/RequestBody.class" />
<entry file="jar:///Library/Java/JavaVirtualMachines/jdk1.8.0_161.jdk/Contents/Home/src.zip!/java/io/FileInputStream.java" />
<entry file="jar:///Library/Java/JavaVirtualMachines/jdk1.8.0_161.jdk/Contents/Home/src.zip!/java/io/File.java" />
<entry file="file://$PROJECT_DIR$/src/main/java/com/reyun/bpu/dmp/utils/S3FileUtil.java">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="286">
<caret line="27" column="4" selection-start-line="27" selection-start-column="4" selection-end-line="27" selection-end-column="76" />
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/src/main/java/com/reyun/bpu/dmp/utils/CodeEnum.java">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="513">
<caret line="19" column="21" selection-start-line="19" selection-start-column="4" selection-end-line="19" selection-end-column="21" />
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/src/main/java/com/reyun/bpu/dmp/utils/FileUtil.java">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="1242">
<caret line="61" column="18" selection-start-line="61" selection-start-column="18" selection-end-line="61" selection-end-column="18" />
<folding>
<element signature="imports" expanded="true" />
</folding>
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/src/main/java/com/reyun/bpu/dmp/utils/Result.java">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="324">
<caret line="12" selection-start-line="12" selection-end-line="12" />
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/src/main/java/com/reyun/bpu/dmp/service/JsonParse.java">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="567">
<caret line="29" column="35" selection-start-line="29" selection-start-column="35" selection-end-line="29" selection-end-column="35" />
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/src/main/java/com/reyun/bpu/dmp/service/FileIoService.java">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="1593">
<caret line="62" selection-start-line="62" selection-end-line="62" />
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/src/main/resources/log4j.properties">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="216">
<caret line="8" column="21" selection-start-line="8" selection-start-column="21" selection-end-line="8" selection-end-column="21" />
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/src/main/resources/application.properties">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="108">
<caret line="4" selection-start-line="4" selection-end-line="4" selection-end-column="10" />
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/src/main/java/com/reyun/bpu/dmp/controller/UploadController.java">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="432">
<caret line="27" selection-start-line="27" selection-end-line="27" />
<folding>
<element signature="imports" expanded="true" />
</folding>
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/src/main/java/com/reyun/bpu/dmp/DmpBackgroundApplication.java">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="189">
<caret line="9" column="13" selection-start-line="9" selection-start-column="13" selection-end-line="9" selection-end-column="13" />
<folding>
<element signature="imports" expanded="true" />
<element signature="e#381#382#0" expanded="true" />
<element signature="e#456#457#0" expanded="true" />
</folding>
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/pom.xml">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="109">
<caret line="138" selection-start-line="138" selection-end-line="138" />
<folding>
<element signature="n#parent#0;n#project#0;n#!!top" />
<element signature="n#dependencies#0;n#project#0;n#!!top" />
<element signature="n#build#0;n#project#0;n#!!top" />
</folding>
</state>
</provider>
<provider editor-type-id="MavenHelperPluginDependencyAnalyzer" />
</entry>
</component>
<component name="masterDetails">
<states>
<state key="ArtifactsStructureConfigurable.UI">
<settings>
<artifact-editor />
<splitter-proportions>
<option name="proportions">
<list>
<option value="0.2" />
</list>
</option>
</splitter-proportions>
</settings>
</state>
<state key="FacetStructureConfigurable.UI">
<settings>
<last-edited>Spring</last-edited>
<splitter-proportions>
<option name="proportions">
<list>
<option value="0.2" />
</list>
</option>
</splitter-proportions>
</settings>
</state>
<state key="GlobalLibrariesConfigurable.UI">
<settings>
<splitter-proportions>
<option name="proportions">
<list>
<option value="0.2" />
</list>
</option>
</splitter-proportions>
</settings>
</state>
<state key="JdkListConfigurable.UI">
<settings>
<last-edited>1.8</last-edited>
<splitter-proportions>
<option name="proportions">
<list>
<option value="0.2" />
</list>
</option>
</splitter-proportions>
</settings>
</state>
<state key="ModuleStructureConfigurable.UI">
<settings>
<last-edited>lighthouse</last-edited>
<splitter-proportions>
<option name="proportions">
<list>
<option value="0.2" />
<option value="0.6" />
</list>
</option>
</splitter-proportions>
</settings>
</state>
<state key="ProjectJDKs.UI">
<settings>
<last-edited>1.8</last-edited>
<splitter-proportions>
<option name="proportions">
<list>
<option value="0.2" />
</list>
</option>
</splitter-proportions>
</settings>
</state>
<state key="ProjectLibrariesConfigurable.UI">
<settings>
<last-edited>Maven: antlr:antlr:2.7.7</last-edited>
<splitter-proportions>
<option name="proportions">
<list>
<option value="0.2" />
</list>
</option>
</splitter-proportions>
</settings>
</state>
</states>
</component>
</project>
\ No newline at end of file
# Getting Started
### Reference Documentation
For further reference, please consider the following sections:
* [Official Apache Maven documentation](https://maven.apache.org/guides/index.html)
### Guides
The following guides illustrate how to use some features concretely:
* [Building a RESTful Web Service](https://spring.io/guides/gs/rest-service/)
* [Serving Web Content with Spring MVC](https://spring.io/guides/gs/serving-web-content/)
* [Building REST services with Spring](https://spring.io/guides/tutorials/bookmarks/)
<?xml version="1.0" encoding="UTF-8"?>
<module org.jetbrains.idea.maven.project.MavenProjectsManager.isMavenModule="true" type="JAVA_MODULE" version="4">
<component name="FacetManager">
<facet type="Spring" name="Spring">
<configuration />
</facet>
<facet type="web" name="Web">
<configuration>
<webroots />
<sourceRoots>
<root url="file://$MODULE_DIR$/src/main/java" />
<root url="file://$MODULE_DIR$/src/main/resources" />
</sourceRoots>
</configuration>
</facet>
</component>
<component name="NewModuleRootManager" LANGUAGE_LEVEL="JDK_1_8">
<output url="file://$MODULE_DIR$/target/classes" />
<output-test url="file://$MODULE_DIR$/target/test-classes" />
<content url="file://$MODULE_DIR$">
<sourceFolder url="file://$MODULE_DIR$/src/main/java" isTestSource="false" />
<sourceFolder url="file://$MODULE_DIR$/src/main/resources" type="java-resource" />
<sourceFolder url="file://$MODULE_DIR$/src/test/java" isTestSource="true" />
<excludeFolder url="file://$MODULE_DIR$/target" />
</content>
<orderEntry type="jdk" jdkName="1.8" jdkType="JavaSDK" />
<orderEntry type="sourceFolder" forTests="false" />
<orderEntry type="library" name="jdk1.8.0_161" level="project" />
<orderEntry type="library" name="Maven: org.springframework.boot:spring-boot-starter-web:2.1.6.RELEASE" level="project" />
<orderEntry type="library" name="Maven: org.springframework.boot:spring-boot-starter:2.1.6.RELEASE" level="project" />
<orderEntry type="library" name="Maven: org.springframework.boot:spring-boot:2.1.6.RELEASE" level="project" />
<orderEntry type="library" name="Maven: org.springframework.boot:spring-boot-autoconfigure:2.1.6.RELEASE" level="project" />
<orderEntry type="library" name="Maven: org.springframework.boot:spring-boot-starter-logging:2.1.6.RELEASE" level="project" />
<orderEntry type="library" name="Maven: ch.qos.logback:logback-classic:1.2.3" level="project" />
<orderEntry type="library" name="Maven: ch.qos.logback:logback-core:1.2.3" level="project" />
<orderEntry type="library" name="Maven: org.apache.logging.log4j:log4j-to-slf4j:2.11.2" level="project" />
<orderEntry type="library" name="Maven: org.apache.logging.log4j:log4j-api:2.11.2" level="project" />
<orderEntry type="library" name="Maven: org.slf4j:jul-to-slf4j:1.7.26" level="project" />
<orderEntry type="library" name="Maven: javax.annotation:javax.annotation-api:1.3.2" level="project" />
<orderEntry type="library" name="Maven: org.springframework:spring-core:5.1.8.RELEASE" level="project" />
<orderEntry type="library" name="Maven: org.springframework:spring-jcl:5.1.8.RELEASE" level="project" />
<orderEntry type="library" scope="RUNTIME" name="Maven: org.yaml:snakeyaml:1.23" level="project" />
<orderEntry type="library" name="Maven: org.springframework.boot:spring-boot-starter-json:2.1.6.RELEASE" level="project" />
<orderEntry type="library" name="Maven: com.fasterxml.jackson.core:jackson-databind:2.9.9" level="project" />
<orderEntry type="library" name="Maven: com.fasterxml.jackson.datatype:jackson-datatype-jdk8:2.9.9" level="project" />
<orderEntry type="library" name="Maven: com.fasterxml.jackson.datatype:jackson-datatype-jsr310:2.9.9" level="project" />
<orderEntry type="library" name="Maven: com.fasterxml.jackson.module:jackson-module-parameter-names:2.9.9" level="project" />
<orderEntry type="library" name="Maven: org.springframework.boot:spring-boot-starter-tomcat:2.1.6.RELEASE" level="project" />
<orderEntry type="library" name="Maven: org.apache.tomcat.embed:tomcat-embed-core:9.0.21" level="project" />
<orderEntry type="library" name="Maven: org.apache.tomcat.embed:tomcat-embed-el:9.0.21" level="project" />
<orderEntry type="library" name="Maven: org.apache.tomcat.embed:tomcat-embed-websocket:9.0.21" level="project" />
<orderEntry type="library" name="Maven: org.hibernate.validator:hibernate-validator:6.0.17.Final" level="project" />
<orderEntry type="library" name="Maven: javax.validation:validation-api:2.0.1.Final" level="project" />
<orderEntry type="library" name="Maven: org.jboss.logging:jboss-logging:3.3.2.Final" level="project" />
<orderEntry type="library" name="Maven: com.fasterxml:classmate:1.4.0" level="project" />
<orderEntry type="library" name="Maven: org.springframework:spring-web:5.1.8.RELEASE" level="project" />
<orderEntry type="library" name="Maven: org.springframework:spring-beans:5.1.8.RELEASE" level="project" />
<orderEntry type="library" name="Maven: org.springframework:spring-webmvc:5.1.8.RELEASE" level="project" />
<orderEntry type="library" name="Maven: org.springframework:spring-aop:5.1.8.RELEASE" level="project" />
<orderEntry type="library" name="Maven: org.springframework:spring-context:5.1.8.RELEASE" level="project" />
<orderEntry type="library" name="Maven: org.springframework:spring-expression:5.1.8.RELEASE" level="project" />
<orderEntry type="library" name="Maven: org.springframework.boot:spring-boot-starter-log4j:unknown" level="project" />
<orderEntry type="library" name="Maven: com.alibaba:fastjson:1.2.31" level="project" />
<orderEntry type="library" name="Maven: org.apache.hadoop:hadoop-common:2.7.1" level="project" />
<orderEntry type="library" name="Maven: org.apache.hadoop:hadoop-annotations:2.7.1" level="project" />
<orderEntry type="module-library">
<library name="Maven: jdk.tools:jdk.tools:1.8">
<CLASSES>
<root url="jar:///Library/Java/JavaVirtualMachines/jdk1.8.0_161.jdk/Contents/Home/lib/tools.jar!/" />
</CLASSES>
<JAVADOC />
<SOURCES />
</library>
</orderEntry>
<orderEntry type="library" name="Maven: com.google.guava:guava:11.0.2" level="project" />
<orderEntry type="library" name="Maven: commons-cli:commons-cli:1.2" level="project" />
<orderEntry type="library" name="Maven: org.apache.commons:commons-math3:3.1.1" level="project" />
<orderEntry type="library" name="Maven: xmlenc:xmlenc:0.52" level="project" />
<orderEntry type="library" name="Maven: commons-httpclient:commons-httpclient:3.1" level="project" />
<orderEntry type="library" name="Maven: commons-codec:commons-codec:1.11" level="project" />
<orderEntry type="library" name="Maven: javax.servlet:servlet-api:2.5" level="project" />
<orderEntry type="library" name="Maven: org.mortbay.jetty:jetty:6.1.26" level="project" />
<orderEntry type="library" name="Maven: org.mortbay.jetty:jetty-util:6.1.26" level="project" />
<orderEntry type="library" scope="RUNTIME" name="Maven: javax.servlet.jsp:jsp-api:2.1" level="project" />
<orderEntry type="library" name="Maven: com.sun.jersey:jersey-core:1.9" level="project" />
<orderEntry type="library" name="Maven: com.sun.jersey:jersey-json:1.9" level="project" />
<orderEntry type="library" name="Maven: org.codehaus.jettison:jettison:1.1" level="project" />
<orderEntry type="library" name="Maven: com.sun.xml.bind:jaxb-impl:2.2.3-1" level="project" />
<orderEntry type="library" name="Maven: javax.xml.bind:jaxb-api:2.3.1" level="project" />
<orderEntry type="library" name="Maven: javax.activation:javax.activation-api:1.2.0" level="project" />
<orderEntry type="library" name="Maven: org.codehaus.jackson:jackson-jaxrs:1.8.3" level="project" />
<orderEntry type="library" name="Maven: org.codehaus.jackson:jackson-xc:1.8.3" level="project" />
<orderEntry type="library" name="Maven: com.sun.jersey:jersey-server:1.9" level="project" />
<orderEntry type="library" name="Maven: asm:asm:3.1" level="project" />
<orderEntry type="library" name="Maven: log4j:log4j:1.2.17" level="project" />
<orderEntry type="library" name="Maven: net.java.dev.jets3t:jets3t:0.9.0" level="project" />
<orderEntry type="library" name="Maven: com.jamesmurty.utils:java-xmlbuilder:0.4" level="project" />
<orderEntry type="library" name="Maven: commons-configuration:commons-configuration:1.6" level="project" />
<orderEntry type="library" name="Maven: commons-digester:commons-digester:1.8" level="project" />
<orderEntry type="library" name="Maven: commons-beanutils:commons-beanutils-core:1.8.0" level="project" />
<orderEntry type="library" name="Maven: org.slf4j:slf4j-api:1.7.26" level="project" />
<orderEntry type="library" name="Maven: org.slf4j:slf4j-log4j12:1.7.26" level="project" />
<orderEntry type="library" name="Maven: org.codehaus.jackson:jackson-core-asl:1.9.13" level="project" />
<orderEntry type="library" name="Maven: org.codehaus.jackson:jackson-mapper-asl:1.9.13" level="project" />
<orderEntry type="library" name="Maven: org.apache.avro:avro:1.7.4" level="project" />
<orderEntry type="library" name="Maven: com.thoughtworks.paranamer:paranamer:2.3" level="project" />
<orderEntry type="library" name="Maven: org.xerial.snappy:snappy-java:1.0.4.1" level="project" />
<orderEntry type="library" name="Maven: com.google.protobuf:protobuf-java:2.5.0" level="project" />
<orderEntry type="library" name="Maven: com.google.code.gson:gson:2.8.5" level="project" />
<orderEntry type="library" name="Maven: org.apache.hadoop:hadoop-auth:2.7.1" level="project" />
<orderEntry type="library" name="Maven: org.apache.directory.server:apacheds-kerberos-codec:2.0.0-M15" level="project" />
<orderEntry type="library" name="Maven: org.apache.directory.server:apacheds-i18n:2.0.0-M15" level="project" />
<orderEntry type="library" name="Maven: org.apache.directory.api:api-asn1-api:1.0.0-M20" level="project" />
<orderEntry type="library" name="Maven: org.apache.directory.api:api-util:1.0.0-M20" level="project" />
<orderEntry type="library" name="Maven: com.jcraft:jsch:0.1.42" level="project" />
<orderEntry type="library" name="Maven: org.apache.curator:curator-client:2.7.1" level="project" />
<orderEntry type="library" name="Maven: org.apache.curator:curator-recipes:2.7.1" level="project" />
<orderEntry type="library" name="Maven: com.google.code.findbugs:jsr305:3.0.0" level="project" />
<orderEntry type="library" name="Maven: org.apache.htrace:htrace-core:3.1.0-incubating" level="project" />
<orderEntry type="library" name="Maven: org.apache.zookeeper:zookeeper:3.4.6" level="project" />
<orderEntry type="library" name="Maven: io.netty:netty:3.7.0.Final" level="project" />
<orderEntry type="library" name="Maven: org.apache.commons:commons-compress:1.4.1" level="project" />
<orderEntry type="library" name="Maven: org.tukaani:xz:1.0" level="project" />
<orderEntry type="library" name="Maven: org.apache.hadoop:hadoop-client:2.7.1" level="project" />
<orderEntry type="library" name="Maven: org.apache.hadoop:hadoop-hdfs:2.7.1" level="project" />
<orderEntry type="library" name="Maven: io.netty:netty-all:4.1.36.Final" level="project" />
<orderEntry type="library" name="Maven: xerces:xercesImpl:2.9.1" level="project" />
<orderEntry type="library" name="Maven: xml-apis:xml-apis:1.4.01" level="project" />
<orderEntry type="library" name="Maven: org.fusesource.leveldbjni:leveldbjni-all:1.8" level="project" />
<orderEntry type="library" name="Maven: org.apache.hadoop:hadoop-mapreduce-client-app:2.7.1" level="project" />
<orderEntry type="library" name="Maven: org.apache.hadoop:hadoop-mapreduce-client-common:2.7.1" level="project" />
<orderEntry type="library" name="Maven: org.apache.hadoop:hadoop-yarn-client:2.7.1" level="project" />
<orderEntry type="library" name="Maven: org.apache.hadoop:hadoop-yarn-server-common:2.7.1" level="project" />
<orderEntry type="library" name="Maven: org.apache.hadoop:hadoop-mapreduce-client-shuffle:2.7.1" level="project" />
<orderEntry type="library" name="Maven: org.apache.hadoop:hadoop-yarn-api:2.7.1" level="project" />
<orderEntry type="library" name="Maven: org.apache.hadoop:hadoop-mapreduce-client-core:2.7.1" level="project" />
<orderEntry type="library" name="Maven: org.apache.hadoop:hadoop-yarn-common:2.7.1" level="project" />
<orderEntry type="library" name="Maven: com.sun.jersey:jersey-client:1.9" level="project" />
<orderEntry type="library" name="Maven: org.apache.hadoop:hadoop-mapreduce-client-jobclient:2.7.1" level="project" />
<orderEntry type="library" name="Maven: org.apache.hive:hive-jdbc:1.2.1" level="project" />
<orderEntry type="library" name="Maven: org.apache.hive:hive-common:1.2.1" level="project" />
<orderEntry type="library" name="Maven: joda-time:joda-time:2.10.2" level="project" />
<orderEntry type="library" name="Maven: org.json:json:20090211" level="project" />
<orderEntry type="library" name="Maven: org.apache.hive:hive-service:1.2.1" level="project" />
<orderEntry type="library" name="Maven: net.sf.jpam:jpam:1.1" level="project" />
<orderEntry type="library" name="Maven: org.eclipse.jetty.aggregate:jetty-all:7.6.0.v20120127" level="project" />
<orderEntry type="library" name="Maven: org.apache.geronimo.specs:geronimo-jta_1.1_spec:1.1.1" level="project" />
<orderEntry type="library" name="Maven: javax.mail:mail:1.4.1" level="project" />
<orderEntry type="library" name="Maven: javax.activation:activation:1.1" level="project" />
<orderEntry type="library" name="Maven: org.apache.geronimo.specs:geronimo-jaspic_1.0_spec:1.0" level="project" />
<orderEntry type="library" name="Maven: org.apache.geronimo.specs:geronimo-annotation_1.0_spec:1.1.1" level="project" />
<orderEntry type="library" name="Maven: asm:asm-commons:3.1" level="project" />
<orderEntry type="library" name="Maven: asm:asm-tree:3.1" level="project" />
<orderEntry type="library" name="Maven: org.apache.hive:hive-serde:1.2.1" level="project" />
<orderEntry type="library" name="Maven: net.sf.opencsv:opencsv:2.3" level="project" />
<orderEntry type="library" name="Maven: com.twitter:parquet-hadoop-bundle:1.6.0" level="project" />
<orderEntry type="library" name="Maven: org.apache.hive:hive-shims:1.2.1" level="project" />
<orderEntry type="library" name="Maven: org.apache.hive.shims:hive-shims-common:1.2.1" level="project" />
<orderEntry type="library" scope="RUNTIME" name="Maven: org.apache.hive.shims:hive-shims-0.20S:1.2.1" level="project" />
<orderEntry type="library" scope="RUNTIME" name="Maven: org.apache.hive.shims:hive-shims-0.23:1.2.1" level="project" />
<orderEntry type="library" scope="RUNTIME" name="Maven: org.apache.hadoop:hadoop-yarn-server-resourcemanager:2.6.0" level="project" />
<orderEntry type="library" scope="RUNTIME" name="Maven: com.google.inject.extensions:guice-servlet:3.0" level="project" />
<orderEntry type="library" scope="RUNTIME" name="Maven: com.google.inject:guice:3.0" level="project" />
<orderEntry type="library" scope="RUNTIME" name="Maven: javax.inject:javax.inject:1" level="project" />
<orderEntry type="library" scope="RUNTIME" name="Maven: aopalliance:aopalliance:1.0" level="project" />
<orderEntry type="library" scope="RUNTIME" name="Maven: com.sun.jersey.contribs:jersey-guice:1.9" level="project" />
<orderEntry type="library" scope="RUNTIME" name="Maven: org.apache.hadoop:hadoop-yarn-server-applicationhistoryservice:2.6.0" level="project" />
<orderEntry type="library" scope="RUNTIME" name="Maven: org.apache.hadoop:hadoop-yarn-server-web-proxy:2.6.0" level="project" />
<orderEntry type="library" scope="RUNTIME" name="Maven: org.apache.hive.shims:hive-shims-scheduler:1.2.1" level="project" />
<orderEntry type="library" name="Maven: org.apache.httpcomponents:httpclient:4.5.9" level="project" />
<orderEntry type="library" name="Maven: org.apache.httpcomponents:httpcore:4.4.11" level="project" />
<orderEntry type="library" name="Maven: org.apache.thrift:libthrift:0.9.2" level="project" />
<orderEntry type="library" name="Maven: org.apache.curator:curator-framework:2.6.0" level="project" />
<orderEntry type="library" name="Maven: org.apache.hive:hive-metastore:1.2.1" level="project" />
<orderEntry type="library" name="Maven: com.jolbox:bonecp:0.8.0.RELEASE" level="project" />
<orderEntry type="library" name="Maven: org.apache.derby:derby:10.14.2.0" level="project" />
<orderEntry type="library" name="Maven: org.datanucleus:datanucleus-api-jdo:3.2.6" level="project" />
<orderEntry type="library" name="Maven: org.datanucleus:datanucleus-core:3.2.10" level="project" />
<orderEntry type="library" name="Maven: org.datanucleus:datanucleus-rdbms:3.2.9" level="project" />
<orderEntry type="library" name="Maven: commons-pool:commons-pool:1.6" level="project" />
<orderEntry type="library" name="Maven: commons-dbcp:commons-dbcp:1.4" level="project" />
<orderEntry type="library" name="Maven: javax.jdo:jdo-api:3.0.1" level="project" />
<orderEntry type="library" name="Maven: javax.transaction:jta:1.1" level="project" />
<orderEntry type="library" name="Maven: org.antlr:antlr-runtime:3.4" level="project" />
<orderEntry type="library" name="Maven: org.antlr:stringtemplate:3.2.1" level="project" />
<orderEntry type="library" name="Maven: antlr:antlr:2.7.7" level="project" />
<orderEntry type="library" name="Maven: org.apache.thrift:libfb303:0.9.2" level="project" />
<orderEntry type="library" name="Maven: org.apache.hive:hive-exec:1.2.1" level="project" />
<orderEntry type="library" name="Maven: org.apache.hive:hive-ant:1.2.1" level="project" />
<orderEntry type="library" name="Maven: org.apache.velocity:velocity:1.5" level="project" />
<orderEntry type="library" name="Maven: oro:oro:2.0.8" level="project" />
<orderEntry type="library" name="Maven: log4j:apache-log4j-extras:1.2.17" level="project" />
<orderEntry type="library" name="Maven: org.antlr:ST4:4.0.4" level="project" />
<orderEntry type="library" name="Maven: org.apache.ant:ant:1.9.1" level="project" />
<orderEntry type="library" name="Maven: org.apache.ant:ant-launcher:1.9.1" level="project" />
<orderEntry type="library" name="Maven: org.apache.ivy:ivy:2.4.0" level="project" />
<orderEntry type="library" name="Maven: org.codehaus.groovy:groovy-all:2.1.6" level="project" />
<orderEntry type="library" name="Maven: org.apache.calcite:calcite-core:1.2.0-incubating" level="project" />
<orderEntry type="library" name="Maven: org.apache.calcite:calcite-linq4j:1.2.0-incubating" level="project" />
<orderEntry type="library" name="Maven: net.hydromatic:eigenbase-properties:1.1.5" level="project" />
<orderEntry type="library" name="Maven: org.codehaus.janino:janino:3.0.12" level="project" />
<orderEntry type="library" name="Maven: org.codehaus.janino:commons-compiler:2.7.6" level="project" />
<orderEntry type="library" name="Maven: org.pentaho:pentaho-aggdesigner-algorithm:5.1.5-jhyde" level="project" />
<orderEntry type="library" name="Maven: org.apache.calcite:calcite-avatica:1.2.0-incubating" level="project" />
<orderEntry type="library" name="Maven: stax:stax-api:1.0.1" level="project" />
<orderEntry type="library" name="Maven: jline:jline:2.12" level="project" />
<orderEntry type="library" name="Maven: commons-beanutils:commons-beanutils:1.9.3" level="project" />
<orderEntry type="library" name="Maven: commons-collections:commons-collections:3.2.1" level="project" />
<orderEntry type="library" name="Maven: commons-lang:commons-lang:2.6" level="project" />
<orderEntry type="library" name="Maven: commons-logging:commons-logging:1.1.1" level="project" />
<orderEntry type="library" name="Maven: commons-io:commons-io:2.6" level="project" />
<orderEntry type="library" name="Maven: commons-net:commons-net:3.6" level="project" />
<orderEntry type="library" name="Maven: software.amazon.awssdk:s3:2.5.51" level="project" />
<orderEntry type="library" name="Maven: software.amazon.awssdk:aws-xml-protocol:2.5.51" level="project" />
<orderEntry type="library" name="Maven: software.amazon.awssdk:aws-query-protocol:2.5.51" level="project" />
<orderEntry type="library" name="Maven: software.amazon.awssdk:protocol-core:2.5.51" level="project" />
<orderEntry type="library" name="Maven: software.amazon.awssdk:sdk-core:2.5.51" level="project" />
<orderEntry type="library" name="Maven: software.amazon.awssdk:profiles:2.5.51" level="project" />
<orderEntry type="library" name="Maven: com.fasterxml.jackson.core:jackson-core:2.9.9" level="project" />
<orderEntry type="library" name="Maven: org.reactivestreams:reactive-streams:1.0.2" level="project" />
<orderEntry type="library" name="Maven: software.amazon.awssdk:auth:2.5.51" level="project" />
<orderEntry type="library" name="Maven: software.amazon.eventstream:eventstream:1.0.1" level="project" />
<orderEntry type="library" name="Maven: software.amazon.awssdk:http-client-spi:2.5.51" level="project" />
<orderEntry type="library" name="Maven: software.amazon.awssdk:regions:2.5.51" level="project" />
<orderEntry type="library" name="Maven: com.fasterxml.jackson.core:jackson-annotations:2.9.0" level="project" />
<orderEntry type="library" name="Maven: software.amazon.awssdk:annotations:2.5.51" level="project" />
<orderEntry type="library" name="Maven: software.amazon.awssdk:utils:2.5.51" level="project" />
<orderEntry type="library" name="Maven: software.amazon.awssdk:aws-core:2.5.51" level="project" />
<orderEntry type="library" scope="RUNTIME" name="Maven: software.amazon.awssdk:apache-client:2.5.51" level="project" />
<orderEntry type="library" scope="RUNTIME" name="Maven: software.amazon.awssdk:netty-nio-client:2.5.51" level="project" />
<orderEntry type="library" scope="RUNTIME" name="Maven: io.netty:netty-codec-http:4.1.36.Final" level="project" />
<orderEntry type="library" scope="RUNTIME" name="Maven: io.netty:netty-codec-http2:4.1.36.Final" level="project" />
<orderEntry type="library" scope="RUNTIME" name="Maven: io.netty:netty-codec:4.1.36.Final" level="project" />
<orderEntry type="library" scope="RUNTIME" name="Maven: io.netty:netty-transport:4.1.36.Final" level="project" />
<orderEntry type="library" scope="RUNTIME" name="Maven: io.netty:netty-resolver:4.1.36.Final" level="project" />
<orderEntry type="library" scope="RUNTIME" name="Maven: io.netty:netty-common:4.1.36.Final" level="project" />
<orderEntry type="library" scope="RUNTIME" name="Maven: io.netty:netty-buffer:4.1.36.Final" level="project" />
<orderEntry type="library" scope="RUNTIME" name="Maven: io.netty:netty-handler:4.1.36.Final" level="project" />
<orderEntry type="library" scope="RUNTIME" name="Maven: io.netty:netty-transport-native-epoll:linux-x86_64:4.1.36.Final" level="project" />
<orderEntry type="library" scope="RUNTIME" name="Maven: io.netty:netty-transport-native-unix-common:4.1.36.Final" level="project" />
<orderEntry type="library" scope="RUNTIME" name="Maven: com.typesafe.netty:netty-reactive-streams-http:2.0.0" level="project" />
<orderEntry type="library" scope="RUNTIME" name="Maven: com.typesafe.netty:netty-reactive-streams:2.0.0" level="project" />
</component>
</module>
\ No newline at end of file
<?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>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-parent</artifactId>
<version>2.1.6.RELEASE</version>
<relativePath/> <!-- lookup parent from repository -->
</parent>
<groupId>com.reyun.bpu.dmp</groupId>
<artifactId>openapi_v1</artifactId>
<version>lighthouse-1.0.0</version>
<name>openapi_v1</name>
<description>Demo project for Spring Boot</description>
<properties>
<java.version>1.8</java.version>
</properties>
<dependencies>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-web</artifactId>
</dependency>
<!--<dependency>-->
<!--<groupId>org.springframework.boot</groupId>-->
<!--<artifactId>spring-boot-starter-test</artifactId>-->
<!--<scope>test</scope>-->
<!--</dependency>-->
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-log4j</artifactId>
<version>1.3.8.RELEASE</version>
</dependency>
<dependency>
<groupId>com.alibaba</groupId>
<artifactId>fastjson</artifactId>
<version>1.2.31</version>
</dependency>
<dependency>
<groupId>org.apache.hadoop</groupId>
<artifactId>hadoop-common</artifactId>
<version>2.7.1</version>
</dependency>
<dependency>
<groupId>org.apache.hadoop</groupId>
<artifactId>hadoop-client</artifactId>
<version>2.7.1</version>
</dependency>
<dependency>
<groupId>org.apache.hive</groupId>
<artifactId>hive-jdbc</artifactId>
<version>1.2.1</version>
</dependency>
<dependency>
<groupId>org.apache.hive</groupId>
<artifactId>hive-metastore</artifactId>
<version>1.2.1</version>
</dependency>
<dependency>
<groupId>org.apache.hive</groupId>
<artifactId>hive-exec</artifactId>
<version>1.2.1</version>
</dependency>
<dependency>
<groupId>commons-beanutils</groupId>
<artifactId>commons-beanutils</artifactId>
<version>1.9.3</version>
</dependency>
<dependency>
<groupId>commons-collections</groupId>
<artifactId>commons-collections</artifactId>
<version>3.2.1</version>
</dependency>
<dependency>
<groupId>commons-lang</groupId>
<artifactId>commons-lang</artifactId>
<version>2.6</version>
</dependency>
<dependency>
<groupId>commons-logging</groupId>
<artifactId>commons-logging</artifactId>
<version>1.1.1</version>
</dependency>
<dependency>
<groupId>commons-io</groupId>
<artifactId>commons-io</artifactId>
<version>2.6</version>
</dependency>
<dependency>
<groupId>commons-net</groupId>
<artifactId>commons-net</artifactId>
<version>3.6</version>
</dependency>
<!-- 连接s3 -->
<dependency>
<groupId>software.amazon.awssdk</groupId>
<artifactId>s3</artifactId>
<version>2.5.51</version>
</dependency>
</dependencies>
<build>
<plugins>
<plugin>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
</plugin>
<!--maven打jar包(无论是scala还是java)时候指定主类的插件-->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-jar-plugin</artifactId>
<configuration>
<archive>
<manifest>
<addClasspath>true</addClasspath>
<mainClass>com.reyun.bpu.dmp.DmpBackgroundApplication</mainClass>
</manifest>
</archive>
</configuration>
</plugin>
</plugins>
<finalName>lighthouse-1.0.0</finalName>
</build>
</project>
File added
package com.reyun.bpu.dmp;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.ComponentScan;
@SpringBootApplication
@ComponentScan(basePackages = {"com.reyun.bpu.dmp.controller"})
public class DmpBackgroundApplication {
public static void main(String[] args) {
SpringApplication.run(DmpBackgroundApplication.class, args);
}
}
package com.reyun.bpu.dmp.config;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.web.cors.CorsConfiguration;
import org.springframework.web.cors.UrlBasedCorsConfigurationSource;
import org.springframework.web.filter.CorsFilter;
/**
* 允许跨域请求
*/
@Configuration
public class CorsConfig {
private CorsConfiguration buildConfig() {
CorsConfiguration corsConfiguration = new CorsConfiguration();
corsConfiguration.addAllowedOrigin("*"); // 1
corsConfiguration.addAllowedHeader("*"); // 2
corsConfiguration.addAllowedMethod("*"); // 3
return corsConfiguration;
}
@Bean
public CorsFilter corsFilter() {
UrlBasedCorsConfigurationSource source = new UrlBasedCorsConfigurationSource();
source.registerCorsConfiguration("/**", buildConfig()); // 4
return new CorsFilter(source);
}
}
package com.reyun.bpu.dmp.controller;
import com.reyun.bpu.dmp.utils.CodeEnum;
import com.reyun.bpu.dmp.utils.FileUtil;
import com.reyun.bpu.dmp.utils.Result;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.web.bind.annotation.*;
import org.springframework.web.multipart.MultipartFile;
import java.io.IOException;
import java.util.ArrayList;
import java.util.List;
import java.util.regex.Matcher;
import java.util.regex.Pattern;
/**
* @program: openapi_v1
*
* @description:
*
* @author: Leo
*
* @create: 2019-06-28 14:28
**/
@RestController
public class UploadController {
private Logger logger = LoggerFactory.getLogger(this.getClass());
@RequestMapping("/helloworld")
public Result<String> helloworld(String username,String password) {
System.out.println("username is:"+username);
System.out.println("username is:"+password);
// return "Hello SpringBoot!!!"; 使用@RestController注解可以直接这样返回
return Result.success();
}
/**
* 标准JSON格式
* @param company 公司名称
* @param multipartFile 文件流
* @return
*/
@RequestMapping(value = "/openapi/supload", method = RequestMethod.POST)
public Result<String> supload(String company,@RequestParam(value = "filePath") MultipartFile multipartFile){
try {
logger.info(company+"====调用自定义接口开始");
new FileUtil().saveFile(multipartFile);
logger.info(company+"====调用自定义接口结束");
return Result.success();
} catch (Exception e) {
logger.error(company+"====调用标准接口失败");
return Result.failed(CodeEnum.FILE_UPLOAD_ERROR);
}
}
/**
* 用户自定义格式
* @param company
* @param multipartFile
* @return
*/
@RequestMapping(value = "/openapi/cupload", method = RequestMethod.POST)
public Result<String> cupload(String company,String fileFormat,@RequestParam(value = "filePath") MultipartFile multipartFile) throws IOException {
try {
logger.info(company+"====调用自定义接口开始");
new FileUtil().saveFile(multipartFile);
logger.info(company+"====调用自定义接口结束");
return Result.success();
} catch (Exception e) {
logger.error(company+"====调用标准接口失败");
return Result.failed(CodeEnum.FILE_UPLOAD_ERROR);
}
}
/**
* 模糊查询
* @param company
* @return
*/
@RequestMapping("/openapi/nameQuery")
public Result<String> nameQuery(String company) {
System.out.println("公司名称:" + company);
List list = new ArrayList<String>();
String rest = "";
list.add("北京阿里巴巴有限公司");
list.add("杭州阿里巴巴有限公司");
list.add("北京热云科技有限公司");
Pattern pattern = Pattern.compile(company);
for (int i = 0; i < list.size(); i++) {
Matcher matcher = pattern.matcher(list.get(i).toString());
if (matcher.find()) {
rest = rest + list.get(i) + ",";
}
}
if (rest.equals("")) {
return Result.failed(CodeEnum.NOT_EXIST_ERROR);
}
else{
String data = rest.substring(0,rest.length()-1);
return Result.success(data);
}
}
}
package com.reyun.bpu.dmp.dao;
import java.sql.*;
import java.util.ArrayList;
import java.util.List;
/**
* @program: openapi_v1
*
* @description: hive数据连接
*
* @author: Leo
*
* @create: 2019-07-02 12:11
**/
public class HiveConntion {
private String driverName = "org.apache.hive.jdbc.HiveDriver";
private String url = "jdbc:hive2://10.1.19.74:10000/default";
private String user = "bpu";
private String password = "dfsd";
private Connection conn = null;
private Statement stmt = null;
private ResultSet rs = null;
private String tabName = "";
private String exeSql = "";
public static void main(String[] args) throws Exception {
List<String> list = new ArrayList<String>();
list.add("device_id");
new HiveConntion("test","").createTable();
}
public HiveConntion(String tabName,String exeSql) throws Exception {
try {
this.tabName = tabName;
this.exeSql = exeSql;
Class.forName(driverName);
conn = DriverManager.getConnection(url,user,password);
stmt = conn.createStatement();
} catch (ClassNotFoundException e) {
e.printStackTrace();
} catch (SQLException e) {
e.printStackTrace();
}
}
public void destory() throws Exception {
if (rs != null) {
rs.close();
}
if (stmt != null) {
stmt.close();
}
if (conn != null) {
conn.close();
}
}
public void showTables() throws Exception {
String sql = "show tables";
rs = stmt.executeQuery(sql);
while (rs.next()) {
System.out.println(rs.getString(1));
}
}
// 加载数据
public void loadData() throws Exception {
String filePath = "";
String sql = "load data local inpath '" + filePath + "' overwrite into table pokes";
stmt.execute(sql);
}
// 创建表
public void createTable() throws Exception {
// String sql = "create table test (tas string) LOCATION 's3://reyunbpu/dmp/datawarehouse/ods/test/'";
stmt.execute(exeSql);
this.destory();
}
}
package com.reyun.bpu.dmp.service;
import java.io.IOException;
import java.io.RandomAccessFile;
import java.nio.MappedByteBuffer;
import java.nio.channels.FileChannel;
/**
* @program: openapi_v1
*
* @description: s
*
* @author: Leo
*
* @create: 2019-07-02 18:52
**/
public class FileIoService {
public void readFileToS3(String filePath){
try{
RandomAccessFile file = new RandomAccessFile(filePath, "r");
FileChannel fileCh = file.getChannel();
MappedByteBuffer mbbi = fileCh.map(FileChannel.MapMode.READ_ONLY, 0, fileCh.size());
// new S3Util().uploadToS3(filePath,mbbi);
}catch(Exception e){
e.printStackTrace();
}
}
/*
* MappedByteBuffer读写文件
* 测试结果:1.39G读写最短用哪个8.6s
*/
public void MappedByteBufferTest(String company,String filePath) throws IOException {
String targetFile = "/Users/reyun/"+company+".log";
RandomAccessFile rafi = new RandomAccessFile(filePath, "rw");
RandomAccessFile rafo = new RandomAccessFile(targetFile, "rw");
FileChannel fci = rafi.getChannel();
FileChannel fco = rafo.getChannel();
long size = fci.size();
MappedByteBuffer mbbi = fci.map(FileChannel.MapMode.READ_ONLY, 0, size);
MappedByteBuffer mbbo = fco.map(FileChannel.MapMode.READ_WRITE, 0, size);
long start = System.currentTimeMillis();
/**
for (int i = 0; i < size; i++) {
byte b = mbbi.get(i);
mbbo.put(i, b);
}*/
mbbo.put(mbbi);
fci.close();
fco.close();
rafi.close();
rafo.close();
System.out.println("Spend: " + (double) (System.currentTimeMillis() - start) / 1000 + "s");
}
public static void main(String[] args) {
try {
new FileIoService().MappedByteBufferTest("","");
} catch (IOException e) {
e.printStackTrace();
}
}
}
package com.reyun.bpu.dmp.service;
import com.alibaba.fastjson.JSON;
import com.alibaba.fastjson.JSONObject;
import com.alibaba.fastjson.TypeReference;
import org.apache.commons.lang.StringUtils;
import java.util.ArrayList;
import java.util.LinkedHashMap;
import java.util.List;
import java.util.Map;
/**
* @program: openapi_v1
*
* @description: json数据解析
*
* @author: Leo
*
* @create: 2019-07-02 12:00
**/
public class JsonParse {
public static void main(String[] args) throws Exception {
//解析json字符串得到建表字段
// tableInfo1, tableInfo2, tableInfo3分别为建表语句,表字段(真正的解析逻辑都在tableInfo2),表信息如下:
String tableInfo1 = "create external table if not exists " + args[0] + "(";
String tableInfo2 = "";
String tableInfo3 = ") partitioned by (ds string) row format serde 'org.apache.hadoop.hive.ql.io.orc.OrcSerde' \n" +
"with serdeproperties ( \n" +
" 'field.delim'='\\t', \n" +
" 'serialization.format'='\\t') \n" +
"stored as inputformat \n" +
" 'org.apache.hadoop.hive.ql.io.orc.OrcInputFormat' \n" +
"outputformat\n" +
" 'org.apache.hadoop.hive.ql.io.orc.OrcOutputFormat'\n";
String value = "{\n" +
" \"msgID\":\"1001\",\n" +
" \"gameVersion\": \"2.0\",\n" +
" \"OS\": \"android\",\n" +
" \"accountID\": \"xxx\",\n" +
" \"level\": 15,\n" +
" \"gameServer\": \"金戈铁马\",\n" +
" \"orderID\": \"xxx\",\n" +
" \"iapID\": \"充值包类型\",\n" +
" \"currencyAmount\": 99,\n" +
" \"currencyType\": \"CNY\",\n" +
" \"virtualCurrencyAmount\": 990,\n" +
" \"paymentType\": \"支付宝\",\n" +
" \"status\": \"request\",\n" +
" \"chargeTime\": 1374732001321,\n" +
" \"mission\": \"新手任务1\"\n" +
"}";
LinkedHashMap<String, String> jsonMap =
JSON.parseObject(value, new TypeReference<LinkedHashMap<String, String>>() {});
for (Map.Entry<String, String> entry : jsonMap.entrySet()) {
System.out.println(entry.getKey() + ":" + entry.getValue());
String ss = entry.getKey();
String begaininfo = entry.getValue().substring(0, 1);
System.out.println(begaininfo);
if (begaininfo.equals("[")) {
tableInfo2 = tableInfo2 + ss + " " + "array<string>,";
}
else if (begaininfo.equals("{")) {
tableInfo2 = tableInfo2 + ss + " " + "map<string,string>,";
}
else {
tableInfo2 = tableInfo2 + ss + " " + "string,";
}
}
tableInfo2 = tableInfo2.substring(0,StringUtils.length(tableInfo2) - 1);
System.out.println("");
String driverName = "org.apache.hive.jdbc.HiveDriver";
String sql = tableInfo1 + tableInfo2 + tableInfo3;
System.out.println(sql);
}
}
package com.reyun.bpu.dmp.utils;
public enum CodeEnum {
SUCCESS("200", "SUCCESS"), //
ERROR("500", "系统异常"), //
PARAMS_ERROR("3001", "参数错误!"), //
EXIST_ERROR("3002", "记录已存在!"), //
NOT_EXIST_ERROR("3003", "记录不存在!"), //
VALIDATE_ERROR("3004", "验证错误!"), //
TOKEN_ERROR("3005", "登录凭证错误!"), //
FILE_UPLOAD_ERROR("3006", "文件上传失败!"),
/** 结束code */
CODE_END("9999", "结束CODE,所有枚举加到此代码之前即可!");
private String code;
private String message;
CodeEnum(String code, String message) {
this.code = code;
this.message = message;
}
// getter and setter
public String getCode() {
return code;
}
public String getMessage() {
return message;
}
}
package com.reyun.bpu.dmp.utils;
import java.io.*;
import java.nio.ByteBuffer;
import java.nio.channels.FileChannel;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.multipart.MultipartFile;
import software.amazon.awssdk.auth.credentials.InstanceProfileCredentialsProvider;
import software.amazon.awssdk.core.sync.RequestBody;
import software.amazon.awssdk.core.sync.ResponseTransformer;
import software.amazon.awssdk.services.s3.S3Client;
import software.amazon.awssdk.services.s3.model.GetObjectRequest;
import software.amazon.awssdk.services.s3.model.PutObjectRequest;
import java.nio.MappedByteBuffer;
import java.nio.file.Path;
import java.nio.file.Paths;
public class FileUtil {
private static Logger log = LoggerFactory.getLogger(FileUtil.class);
@Value("${s3.save.bucket}")
private String bucket;
@Value("${s3.save.path}")
private String uploads3path;
@Value("${local.path}")
private String localpath;
/**
*
* @param file 文件流
* @return
*/
public void uploadToS3(MultipartFile file) {
try {
//上传S3文件
S3Client s3 = S3Client.builder().credentialsProvider(InstanceProfileCredentialsProvider.builder().build()).build();
log.info("获取文件在EMR服务器上的路径");
Path path = Paths.get(localpath+file.getOriginalFilename());
log.info("文件从EMR写入S3开始");
//1、写文件:这种方式需要用上传的文件先写到本地,在从本地上传到S3,因此换一种流的方式直接写到S3
s3.putObject(PutObjectRequest.builder().bucket(bucket).key(uploads3path).build(), path);
log.info("文件从EMR写入S3结束");
//s3.putObject(PutObjectRequest.builder().bucket(BUCKET).key(UPLOADPATH).build(), RequestBody.fromByteBuffer(buffer));
} catch (Exception e) {
log.error("文件写S3失败");
e.printStackTrace();
}
}
/**
* 保存文件,直接以multipartFile形式
* 文件先写EMR本地
* @param multipartFile
* @return 返回文件名
* @throws IOException
*/
public String saveFile(MultipartFile multipartFile) {
File file = new File(localpath);
if (!file.exists()) {
file.mkdirs();
}
try {
FileInputStream input = (FileInputStream) multipartFile.getInputStream();
BufferedOutputStream bos = null;
bos = new BufferedOutputStream(new FileOutputStream(localpath + File.separator + multipartFile.getName()));
byte[] bs = new byte[1024];
int len;
log.info("文件上传EMR开始");
while ((len = input.read(bs)) != -1) {
bos.write(bs, 0, len);
}
log.info("文件上传EMR结束");
bos.flush();
bos.close();
uploadToS3(multipartFile);
} catch (FileNotFoundException e) {
log.error("文件没有找到");
e.printStackTrace();
} catch (IOException e) {
e.printStackTrace();
log.error("文件写入EMR本地失败");
}
return "文件写入EMR成功";
}
/**
* 文件复制
* @param source
* @param dest
* @throws IOException
*/
@SuppressWarnings("resource")
public static void copyFileUsingFileChannels(File source, File dest) throws IOException {
FileChannel inputChannel = null;
FileChannel outputChannel = null;
try {
inputChannel = new FileInputStream(source).getChannel();
outputChannel = new FileOutputStream(dest).getChannel();
outputChannel.transferFrom(inputChannel, 0, inputChannel.size());
} finally {
inputChannel.close();
outputChannel.close();
}
}
public static String readFile(File file, String charset) {
StringBuilder sb = new StringBuilder();
BufferedReader br = null;
InputStreamReader isr = null;
try {
FileInputStream fis = new FileInputStream(file);
isr = new InputStreamReader(fis, charset);
br = new BufferedReader(isr);
while (br.ready()){
sb.append(br.readLine());
sb.append("\n");
}
} catch (FileNotFoundException e) {
e.printStackTrace();
} catch (UnsupportedEncodingException e) {
e.printStackTrace();
} catch (IOException e) {
e.printStackTrace();
} finally {
try {
br.close();
isr.close();
} catch (IOException e) {
e.printStackTrace();
}
}
return sb.toString();
}
/**
* NIO way
* @throws Exception
*/
public static byte[] toByteArray(String filename) throws Exception {
File f = new File(filename);
if (!f.exists()) {
log.error("文件未找到!" + filename);
throw new IOException("文件未找到");
}
FileChannel channel = null;
FileInputStream fs = null;
try {
fs = new FileInputStream(f);
channel = fs.getChannel();
ByteBuffer byteBuffer = ByteBuffer.allocate((int) channel.size());
while ((channel.read(byteBuffer)) > 0) {
// do nothing
// System.out.println("reading");
}
return byteBuffer.array();
} catch (IOException e) {
throw new IOException("FILE_READING_ERROR");
} finally {
try {
channel.close();
} catch (IOException e) {
throw new IOException("FILE_READING_ERROR");
}
try {
fs.close();
} catch (IOException e) {
throw new IOException("FILE_READING_ERROR");
}
}
}
/**
* 删除目录
*
* @author fengshuonan
* @Date 2017/10/30 下午4:15
*/
public static boolean deleteDir(File dir) {
if (dir.isDirectory()) {
String[] children = dir.list();
for (int i = 0; i < children.length; i++) {
boolean success = deleteDir(new File(dir, children[i]));
if (!success) {
return false;
}
}
}
return dir.delete();
}
/**
* 删除单个文件
*
* @param fileName 要删除的文件的文件名
* @return 单个文件删除成功返回true,否则返回false
*/
public static boolean deleteFile(String fileName) {
File file = new File(fileName);
// 如果文件路径所对应的文件存在,并且是一个文件,则直接删除
if (file.exists() && file.isFile()) {
if (file.delete()) {
log.info("删除单个文件" + fileName + "成功!");
return true;
} else {
log.info("删除单个文件" + fileName + "失败!");
return false;
}
} else {
log.error("删除单个文件失败:" + fileName + "不存在!");
return false;
}
}
public static String getFileNameFromPath(String path){
String fileName = path.trim().substring(path.lastIndexOf("/")+1);
return fileName;
}
public static void main(String[] args) {
String filename= "M00/00/00/wKgAmVmY_HWAU0H-AAAtToIKUp8155.doc";
String fileNameFromPath = getFileNameFromPath(filename);
System.out.println(fileNameFromPath);
}
}
\ No newline at end of file
package com.reyun.bpu.dmp.utils;
import java.io.Serializable;
public class Result<T> implements Serializable {
private static final long serialVersionUID = 1L;
/**
* 响应代码
*/
private String code;
/**
* 返回说明
*/
private String msg;
/**
* 返回结果
*/
private T data;
public Result() {
}
/**
*
* @param success
* @param code
* @param msg
* @param data
*/
public Result(String code, String msg, T data) {
super();
this.code = code;
this.msg = msg;
this.data = data;
}
/**
*
* @param success
* @param code
* @param msg
*/
public Result(String code, String msg) {
super();
this.code = code;
this.msg = msg;
}
/**
*
* @param codeEnum
*/
public Result(CodeEnum codeEnum) {
super();
this.code = codeEnum.getCode();
this.msg = codeEnum.getMessage();
}
/**
*
* @param codeEnum
* @param data
*/
public Result(CodeEnum codeEnum, T data) {
super();
this.code = codeEnum.getCode();
this.msg = codeEnum.getMessage();
this.data = data;
}
/**
*
* @param codeEnum
* @param msg
* @param data
*/
public Result(CodeEnum codeEnum, String msg, T data) {
super();
this.code = codeEnum.getCode();
this.msg = msg;
this.data = data;
}
public static <T> Result<T> info(String code, String msg, T data) {
return new Result<T>(code, msg, data);
}
@SuppressWarnings({ "rawtypes", "unchecked" })
public static <T> Result<T> success() {
return new Result(CodeEnum.SUCCESS);
}
@SuppressWarnings({ "rawtypes", "unchecked" })
public static <T> Result<T> success(T data) {
return new Result(CodeEnum.SUCCESS, data);
}
@SuppressWarnings({ "rawtypes", "unchecked" })
public static <T> Result<T> success(T data, String msg) {
return new Result(CodeEnum.SUCCESS.getCode(), msg, data);
}
@SuppressWarnings({ "rawtypes", "unchecked" })
public static <T> Result<T> error(String code, String msg) {
return new Result(code, msg);
}
@SuppressWarnings({ "rawtypes", "unchecked" })
public static <T> Result<T> failed(CodeEnum codeEnum) {
return new Result(codeEnum);
}
@SuppressWarnings({ "rawtypes", "unchecked" })
public static <T> Result<T> failed(CodeEnum codeEnum, String msg) {
return new Result(codeEnum.getCode(), msg);
}
@SuppressWarnings({ "rawtypes", "unchecked" })
public static <T> Result<T> failed(CodeEnum codeEnum, String msg, T data) {
return new Result(codeEnum.getCode(), msg, data);
}
public String getCode() {
return code;
}
public void setCode(String code) {
this.code = code;
}
public String getMsg() {
return msg;
}
public void setMsg(String msg) {
this.msg = msg;
}
public T getData() {
return data;
}
public void setData(T data) {
this.data = data;
}
}
package com.reyun.bpu.dmp.utils;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import software.amazon.awssdk.auth.credentials.InstanceProfileCredentialsProvider;
import software.amazon.awssdk.core.sync.RequestBody;
import software.amazon.awssdk.core.sync.ResponseTransformer;
import software.amazon.awssdk.services.s3.S3Client;
import software.amazon.awssdk.services.s3.model.GetObjectRequest;
import software.amazon.awssdk.services.s3.model.PutObjectRequest;
import java.io.IOException;
import java.nio.MappedByteBuffer;
import java.nio.file.Path;
import java.nio.file.Paths;
/**
* @program: openapi_v1
*
* @description: a
*
* @author: Leo
*
* @create: 2019-07-02 16:48
**/
public class S3FileUtil {
private final Logger logger = LoggerFactory.getLogger(S3FileUtil.class);
private String BUCKET = "test";
private String UPLOADPATH = "s3://reyunbpu/fox/liyanbin_1986.log";
/**
*
* @param buffer 本地文件流
* @param filePath 本地文件路径
* @return
*/
// public void uploadToS3(String filePath, MappedByteBuffer buffer) {
//
// try {
//
// logger.info(String.format("s3 put , bulid S3Client begin ... params:[bucket=%s,fileKey=%s,localFilePath=%s]", BUCKET, UPLOADPATH, filePath));
//
// //上传S3文件
// S3Client s3 = S3Client.builder().credentialsProvider(InstanceProfileCredentialsProvider.builder().build()).build();
//
// logger.info("s3 build S3Clent OK ! get path begin ... ");
//
// // 上传文件
// Path path = Paths.get(filePath);
//
// logger.info("s3 get path OK ! putObject begin ... ");
//
// //1、写文件:这种方式需要用上传的文件先写到本地,在从本地上传到S3,因此换一种流的方式直接写到S3
// /**s3.putObject(PutObjectRequest.builder().bucket(BUCKET).key(uploadPath).build(), path);*/
// //2、写流到s3
// s3.putObject(PutObjectRequest.builder().bucket(BUCKET).key(UPLOADPATH)
// .build(), RequestBody.fromByteBuffer(buffer));
// logger.info("s3 putObject end ... ");
//
// } catch (Exception e) {
//
// e.printStackTrace();
// }
// }
//
// /**
// *
// * @param filePath 本地文件路径及名称(/file/images/test.jpg)
// * @param downLoadPath S3存放路径及名称(/yubin/image/aa.jpg)
// * @throws IOException
// */
// public void loadFromS3(String filePath, String downLoadPath) throws IOException {
// //下载S3文件
// try {
// S3Client s3 = S3Client.builder()
// .credentialsProvider(InstanceProfileCredentialsProvider.builder().build())
// .build();
// // 下载文件
// Path path = Paths.get(filePath);
// s3.getObject(GetObjectRequest.builder().bucket(BUCKET).key("/"+downLoadPath).build(),
// ResponseTransformer.toFile(path));
// } catch (Exception e) {
// e.printStackTrace();
// }
// }
}
#关闭修改文件自动重启
spring.devtools.restart.enabled=true
s3.save.bucket=rydmp
s3.save.path=/test/
local.path=/home/ec2-user/dmp/liyanbin/s3upload
#
log4j.rootCategory=INFO, stdout, file
# root日志输出
log4j.appender.file=org.apache.log4j.DailyRollingFileAppender
log4j.appender.file.file=logs/all.log
log4j.appender.file.DatePattern='.'yyyy-MM-dd
log4j.appender.file.layout=org.apache.log4j.PatternLayout
log4j.appender.file.layout.ConversionPattern=%d{yyyy-MM-dd HH:mm:ss,SSS} %5p %c{1}:%L - %m%n
\ No newline at end of file
#关闭修改文件自动重启
spring.devtools.restart.enabled=true
s3.save.bucket=rydmp
s3.save.path=/test/
local.path=/home/ec2-user/dmp/liyanbin/s3upload
#
log4j.rootCategory=INFO, stdout, file
# root日志输出
log4j.appender.file=org.apache.log4j.DailyRollingFileAppender
log4j.appender.file.file=logs/all.log
log4j.appender.file.DatePattern='.'yyyy-MM-dd
log4j.appender.file.layout=org.apache.log4j.PatternLayout
log4j.appender.file.layout.ConversionPattern=%d{yyyy-MM-dd HH:mm:ss,SSS} %5p %c{1}:%L - %m%n
\ No newline at end of file
version=lighthouse-1.0.0
groupId=com.reyun.bpu.dmp
artifactId=openapi_v1
com\reyun\bpu\dmp\DmpBackgroundApplication.class
com\reyun\bpu\dmp\utils\Result.class
com\reyun\bpu\dmp\dao\HiveConntion.class
com\reyun\bpu\dmp\service\FileIoService.class
com\reyun\bpu\dmp\service\JsonParse.class
com\reyun\bpu\dmp\utils\CodeEnum.class
com\reyun\bpu\dmp\utils\FileUtil.class
com\reyun\bpu\dmp\controller\UploadController.class
com\reyun\bpu\dmp\service\JsonParse$1.class
com\reyun\bpu\dmp\utils\S3FileUtil.class
com\reyun\bpu\dmp\config\CorsConfig.class
D:\lighthouse\src\main\java\com\reyun\bpu\dmp\dao\HiveConntion.java
D:\lighthouse\src\main\java\com\reyun\bpu\dmp\utils\FileUtil.java
D:\lighthouse\src\main\java\com\reyun\bpu\dmp\utils\S3FileUtil.java
D:\lighthouse\src\main\java\com\reyun\bpu\dmp\utils\Result.java
D:\lighthouse\src\main\java\com\reyun\bpu\dmp\service\JsonParse.java
D:\lighthouse\src\main\java\com\reyun\bpu\dmp\DmpBackgroundApplication.java
D:\lighthouse\src\main\java\com\reyun\bpu\dmp\config\CorsConfig.java
D:\lighthouse\src\main\java\com\reyun\bpu\dmp\utils\CodeEnum.java
D:\lighthouse\src\main\java\com\reyun\bpu\dmp\controller\UploadController.java
D:\lighthouse\src\main\java\com\reyun\bpu\dmp\service\FileIoService.java
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment