parent
74dd58578a
commit
81a1dbf74c
@ -0,0 +1,21 @@
|
||||
<component name="libraryTable">
|
||||
<library name="druid-1.0.29">
|
||||
<CLASSES>
|
||||
<root url="jar://$PROJECT_DIR$/WebRoot/WEB-INF/lib/druid-1.0.29.jar!/" />
|
||||
<root url="jar://$PROJECT_DIR$/WebRoot/WEB-INF/lib/fastjson2-2.0.53.jar!/" />
|
||||
<root url="jar://$PROJECT_DIR$/WebRoot/WEB-INF/lib/javax.servlet-api-4.0.1.jar!/" />
|
||||
<root url="jar://$PROJECT_DIR$/WebRoot/WEB-INF/lib/jboss-logging-3.4.0.Final.jar!/" />
|
||||
<root url="jar://$PROJECT_DIR$/WebRoot/WEB-INF/lib/jfinal-4.7.jar!/" />
|
||||
<root url="jar://$PROJECT_DIR$/WebRoot/WEB-INF/lib/jfinal-undertow-1.9.jar!/" />
|
||||
<root url="jar://$PROJECT_DIR$/WebRoot/WEB-INF/lib/log4j-1.2.16.jar!/" />
|
||||
<root url="jar://$PROJECT_DIR$/WebRoot/WEB-INF/lib/mysql-connector-java-8.0.14.jar!/" />
|
||||
<root url="jar://$PROJECT_DIR$/WebRoot/WEB-INF/lib/opengauss-jdbc-5.0.0.jar!/" />
|
||||
<root url="jar://$PROJECT_DIR$/WebRoot/WEB-INF/lib/undertow-core-2.0.25.Final.jar!/" />
|
||||
<root url="jar://$PROJECT_DIR$/WebRoot/WEB-INF/lib/undertow-servlet-2.0.25.Final.jar!/" />
|
||||
<root url="jar://$PROJECT_DIR$/WebRoot/WEB-INF/lib/xnio-api-3.3.8.Final.jar!/" />
|
||||
<root url="jar://$PROJECT_DIR$/WebRoot/WEB-INF/lib/xnio-nio-3.3.8.Final.jar!/" />
|
||||
</CLASSES>
|
||||
<JAVADOC />
|
||||
<SOURCES />
|
||||
</library>
|
||||
</component>
|
@ -0,0 +1,6 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project version="4">
|
||||
<component name="ProjectRootManager" version="2" languageLevel="JDK_1_8" default="true" project-jdk-name="1.8" project-jdk-type="JavaSDK">
|
||||
<output url="file://$PROJECT_DIR$/out" />
|
||||
</component>
|
||||
</project>
|
@ -0,0 +1,8 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project version="4">
|
||||
<component name="ProjectModuleManager">
|
||||
<modules>
|
||||
<module fileurl="file://$PROJECT_DIR$/BasicData.iml" filepath="$PROJECT_DIR$/BasicData.iml" />
|
||||
</modules>
|
||||
</component>
|
||||
</project>
|
@ -0,0 +1,124 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project version="4">
|
||||
<component name="Palette2">
|
||||
<group name="Swing">
|
||||
<item class="com.intellij.uiDesigner.HSpacer" tooltip-text="Horizontal Spacer" icon="/com/intellij/uiDesigner/icons/hspacer.svg" removable="false" auto-create-binding="false" can-attach-label="false">
|
||||
<default-constraints vsize-policy="1" hsize-policy="6" anchor="0" fill="1" />
|
||||
</item>
|
||||
<item class="com.intellij.uiDesigner.VSpacer" tooltip-text="Vertical Spacer" icon="/com/intellij/uiDesigner/icons/vspacer.svg" removable="false" auto-create-binding="false" can-attach-label="false">
|
||||
<default-constraints vsize-policy="6" hsize-policy="1" anchor="0" fill="2" />
|
||||
</item>
|
||||
<item class="javax.swing.JPanel" icon="/com/intellij/uiDesigner/icons/panel.svg" removable="false" auto-create-binding="false" can-attach-label="false">
|
||||
<default-constraints vsize-policy="3" hsize-policy="3" anchor="0" fill="3" />
|
||||
</item>
|
||||
<item class="javax.swing.JScrollPane" icon="/com/intellij/uiDesigner/icons/scrollPane.svg" removable="false" auto-create-binding="false" can-attach-label="true">
|
||||
<default-constraints vsize-policy="7" hsize-policy="7" anchor="0" fill="3" />
|
||||
</item>
|
||||
<item class="javax.swing.JButton" icon="/com/intellij/uiDesigner/icons/button.svg" removable="false" auto-create-binding="true" can-attach-label="false">
|
||||
<default-constraints vsize-policy="0" hsize-policy="3" anchor="0" fill="1" />
|
||||
<initial-values>
|
||||
<property name="text" value="Button" />
|
||||
</initial-values>
|
||||
</item>
|
||||
<item class="javax.swing.JRadioButton" icon="/com/intellij/uiDesigner/icons/radioButton.svg" removable="false" auto-create-binding="true" can-attach-label="false">
|
||||
<default-constraints vsize-policy="0" hsize-policy="3" anchor="8" fill="0" />
|
||||
<initial-values>
|
||||
<property name="text" value="RadioButton" />
|
||||
</initial-values>
|
||||
</item>
|
||||
<item class="javax.swing.JCheckBox" icon="/com/intellij/uiDesigner/icons/checkBox.svg" removable="false" auto-create-binding="true" can-attach-label="false">
|
||||
<default-constraints vsize-policy="0" hsize-policy="3" anchor="8" fill="0" />
|
||||
<initial-values>
|
||||
<property name="text" value="CheckBox" />
|
||||
</initial-values>
|
||||
</item>
|
||||
<item class="javax.swing.JLabel" icon="/com/intellij/uiDesigner/icons/label.svg" removable="false" auto-create-binding="false" can-attach-label="false">
|
||||
<default-constraints vsize-policy="0" hsize-policy="0" anchor="8" fill="0" />
|
||||
<initial-values>
|
||||
<property name="text" value="Label" />
|
||||
</initial-values>
|
||||
</item>
|
||||
<item class="javax.swing.JTextField" icon="/com/intellij/uiDesigner/icons/textField.svg" removable="false" auto-create-binding="true" can-attach-label="true">
|
||||
<default-constraints vsize-policy="0" hsize-policy="6" anchor="8" fill="1">
|
||||
<preferred-size width="150" height="-1" />
|
||||
</default-constraints>
|
||||
</item>
|
||||
<item class="javax.swing.JPasswordField" icon="/com/intellij/uiDesigner/icons/passwordField.svg" removable="false" auto-create-binding="true" can-attach-label="true">
|
||||
<default-constraints vsize-policy="0" hsize-policy="6" anchor="8" fill="1">
|
||||
<preferred-size width="150" height="-1" />
|
||||
</default-constraints>
|
||||
</item>
|
||||
<item class="javax.swing.JFormattedTextField" icon="/com/intellij/uiDesigner/icons/formattedTextField.svg" removable="false" auto-create-binding="true" can-attach-label="true">
|
||||
<default-constraints vsize-policy="0" hsize-policy="6" anchor="8" fill="1">
|
||||
<preferred-size width="150" height="-1" />
|
||||
</default-constraints>
|
||||
</item>
|
||||
<item class="javax.swing.JTextArea" icon="/com/intellij/uiDesigner/icons/textArea.svg" removable="false" auto-create-binding="true" can-attach-label="true">
|
||||
<default-constraints vsize-policy="6" hsize-policy="6" anchor="0" fill="3">
|
||||
<preferred-size width="150" height="50" />
|
||||
</default-constraints>
|
||||
</item>
|
||||
<item class="javax.swing.JTextPane" icon="/com/intellij/uiDesigner/icons/textPane.svg" removable="false" auto-create-binding="true" can-attach-label="true">
|
||||
<default-constraints vsize-policy="6" hsize-policy="6" anchor="0" fill="3">
|
||||
<preferred-size width="150" height="50" />
|
||||
</default-constraints>
|
||||
</item>
|
||||
<item class="javax.swing.JEditorPane" icon="/com/intellij/uiDesigner/icons/editorPane.svg" removable="false" auto-create-binding="true" can-attach-label="true">
|
||||
<default-constraints vsize-policy="6" hsize-policy="6" anchor="0" fill="3">
|
||||
<preferred-size width="150" height="50" />
|
||||
</default-constraints>
|
||||
</item>
|
||||
<item class="javax.swing.JComboBox" icon="/com/intellij/uiDesigner/icons/comboBox.svg" removable="false" auto-create-binding="true" can-attach-label="true">
|
||||
<default-constraints vsize-policy="0" hsize-policy="2" anchor="8" fill="1" />
|
||||
</item>
|
||||
<item class="javax.swing.JTable" icon="/com/intellij/uiDesigner/icons/table.svg" removable="false" auto-create-binding="true" can-attach-label="false">
|
||||
<default-constraints vsize-policy="6" hsize-policy="6" anchor="0" fill="3">
|
||||
<preferred-size width="150" height="50" />
|
||||
</default-constraints>
|
||||
</item>
|
||||
<item class="javax.swing.JList" icon="/com/intellij/uiDesigner/icons/list.svg" removable="false" auto-create-binding="true" can-attach-label="false">
|
||||
<default-constraints vsize-policy="6" hsize-policy="2" anchor="0" fill="3">
|
||||
<preferred-size width="150" height="50" />
|
||||
</default-constraints>
|
||||
</item>
|
||||
<item class="javax.swing.JTree" icon="/com/intellij/uiDesigner/icons/tree.svg" removable="false" auto-create-binding="true" can-attach-label="false">
|
||||
<default-constraints vsize-policy="6" hsize-policy="6" anchor="0" fill="3">
|
||||
<preferred-size width="150" height="50" />
|
||||
</default-constraints>
|
||||
</item>
|
||||
<item class="javax.swing.JTabbedPane" icon="/com/intellij/uiDesigner/icons/tabbedPane.svg" removable="false" auto-create-binding="true" can-attach-label="false">
|
||||
<default-constraints vsize-policy="3" hsize-policy="3" anchor="0" fill="3">
|
||||
<preferred-size width="200" height="200" />
|
||||
</default-constraints>
|
||||
</item>
|
||||
<item class="javax.swing.JSplitPane" icon="/com/intellij/uiDesigner/icons/splitPane.svg" removable="false" auto-create-binding="false" can-attach-label="false">
|
||||
<default-constraints vsize-policy="3" hsize-policy="3" anchor="0" fill="3">
|
||||
<preferred-size width="200" height="200" />
|
||||
</default-constraints>
|
||||
</item>
|
||||
<item class="javax.swing.JSpinner" icon="/com/intellij/uiDesigner/icons/spinner.svg" removable="false" auto-create-binding="true" can-attach-label="true">
|
||||
<default-constraints vsize-policy="0" hsize-policy="6" anchor="8" fill="1" />
|
||||
</item>
|
||||
<item class="javax.swing.JSlider" icon="/com/intellij/uiDesigner/icons/slider.svg" removable="false" auto-create-binding="true" can-attach-label="false">
|
||||
<default-constraints vsize-policy="0" hsize-policy="6" anchor="8" fill="1" />
|
||||
</item>
|
||||
<item class="javax.swing.JSeparator" icon="/com/intellij/uiDesigner/icons/separator.svg" removable="false" auto-create-binding="false" can-attach-label="false">
|
||||
<default-constraints vsize-policy="6" hsize-policy="6" anchor="0" fill="3" />
|
||||
</item>
|
||||
<item class="javax.swing.JProgressBar" icon="/com/intellij/uiDesigner/icons/progressbar.svg" removable="false" auto-create-binding="true" can-attach-label="false">
|
||||
<default-constraints vsize-policy="0" hsize-policy="6" anchor="0" fill="1" />
|
||||
</item>
|
||||
<item class="javax.swing.JToolBar" icon="/com/intellij/uiDesigner/icons/toolbar.svg" removable="false" auto-create-binding="false" can-attach-label="false">
|
||||
<default-constraints vsize-policy="0" hsize-policy="6" anchor="0" fill="1">
|
||||
<preferred-size width="-1" height="20" />
|
||||
</default-constraints>
|
||||
</item>
|
||||
<item class="javax.swing.JToolBar$Separator" icon="/com/intellij/uiDesigner/icons/toolbarSeparator.svg" removable="false" auto-create-binding="false" can-attach-label="false">
|
||||
<default-constraints vsize-policy="0" hsize-policy="0" anchor="0" fill="1" />
|
||||
</item>
|
||||
<item class="javax.swing.JScrollBar" icon="/com/intellij/uiDesigner/icons/scrollbar.svg" removable="false" auto-create-binding="true" can-attach-label="false">
|
||||
<default-constraints vsize-policy="6" hsize-policy="0" anchor="0" fill="2" />
|
||||
</item>
|
||||
</group>
|
||||
</component>
|
||||
</project>
|
@ -0,0 +1,6 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project version="4">
|
||||
<component name="VcsDirectoryMappings">
|
||||
<mapping directory="" vcs="Git" />
|
||||
</component>
|
||||
</project>
|
@ -0,0 +1,486 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project version="4">
|
||||
<component name="AutoImportSettings">
|
||||
<option name="autoReloadType" value="SELECTIVE" />
|
||||
</component>
|
||||
<component name="ChangeListManager">
|
||||
<list default="true" id="3daa4235-11da-491b-ad73-18e1cab66500" name="Default Changelist" comment="">
|
||||
<changelist_data name="wubin" email="kgdxpr@163.com" date="1573780503000" />
|
||||
<change afterPath="$PROJECT_DIR$/.idea/libraries/druid_1_0_29.xml" afterDir="false" />
|
||||
<change afterPath="$PROJECT_DIR$/.idea/uiDesigner.xml" afterDir="false" />
|
||||
<change afterPath="$PROJECT_DIR$/.idea/vcs.xml" afterDir="false" />
|
||||
<change afterPath="$PROJECT_DIR$/src/com/dsideal/basicdata/demo/demo.java" afterDir="false" />
|
||||
<change beforePath="$PROJECT_DIR$/.idea/libraries/lib.xml" beforeDir="false" />
|
||||
<change beforePath="$PROJECT_DIR$/.idea/workspace.xml" beforeDir="false" afterPath="$PROJECT_DIR$/.idea/workspace.xml" afterDir="false" />
|
||||
<change beforePath="$PROJECT_DIR$/BasicData.iml" beforeDir="false" afterPath="$PROJECT_DIR$/BasicData.iml" afterDir="false" />
|
||||
<change beforePath="$PROJECT_DIR$/WebRoot/WEB-INF/classes/application.properties" beforeDir="false" afterPath="$PROJECT_DIR$/WebRoot/WEB-INF/classes/application.properties" afterDir="false" />
|
||||
<change beforePath="$PROJECT_DIR$/WebRoot/WEB-INF/classes/com/dsideal/basicdata/Start.class" beforeDir="false" afterPath="$PROJECT_DIR$/WebRoot/WEB-INF/classes/com/dsideal/basicdata/Start.class" afterDir="false" />
|
||||
<change beforePath="$PROJECT_DIR$/log/basicdata.log" beforeDir="false" afterPath="$PROJECT_DIR$/log/basicdata.log" afterDir="false" />
|
||||
<change beforePath="$PROJECT_DIR$/src/application.properties" beforeDir="false" afterPath="$PROJECT_DIR$/src/application.properties" afterDir="false" />
|
||||
<change beforePath="$PROJECT_DIR$/src/com/dsideal/basicdata/Start.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/com/dsideal/basicdata/Start.java" afterDir="false" />
|
||||
<change beforePath="$PROJECT_DIR$/src/com/dsideal/basicdata/common/Interceptor/CookieInterceptor.java" beforeDir="false" />
|
||||
<change beforePath="$PROJECT_DIR$/src/com/dsideal/basicdata/common/Interceptor/EmptyInterceptor.java" beforeDir="false" />
|
||||
<change beforePath="$PROJECT_DIR$/src/com/dsideal/basicdata/common/Interceptor/EmptyInterface.java" beforeDir="false" />
|
||||
<change beforePath="$PROJECT_DIR$/src/com/dsideal/basicdata/common/Interceptor/IsNumbericInterceptor.java" beforeDir="false" />
|
||||
<change beforePath="$PROJECT_DIR$/src/com/dsideal/basicdata/common/Interceptor/IsNumericInterface.java" beforeDir="false" />
|
||||
<change beforePath="$PROJECT_DIR$/src/com/dsideal/basicdata/common/constant/OsSystemConst.java" beforeDir="false" />
|
||||
<change beforePath="$PROJECT_DIR$/src/com/dsideal/basicdata/common/core/domain/AjaxResult.java" beforeDir="false" />
|
||||
<change beforePath="$PROJECT_DIR$/src/com/dsideal/basicdata/common/core/domain/BaseEntity.java" beforeDir="false" />
|
||||
<change beforePath="$PROJECT_DIR$/src/com/dsideal/basicdata/common/demo/controller/DemoController.java" beforeDir="false" />
|
||||
<change beforePath="$PROJECT_DIR$/src/com/dsideal/basicdata/common/demo/model/DemoModel.java" beforeDir="false" />
|
||||
<change beforePath="$PROJECT_DIR$/src/com/dsideal/basicdata/common/utils/CommonUtil.java" beforeDir="false" />
|
||||
<change beforePath="$PROJECT_DIR$/src/com/dsideal/basicdata/common/utils/CookieUtil.java" beforeDir="false" />
|
||||
<change beforePath="$PROJECT_DIR$/src/com/dsideal/basicdata/common/utils/DbUtil.java" beforeDir="false" />
|
||||
<change beforePath="$PROJECT_DIR$/src/com/dsideal/basicdata/common/utils/LanguageUtil.java" beforeDir="false" />
|
||||
</list>
|
||||
<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="ComposerSettings">
|
||||
<execution />
|
||||
</component>
|
||||
<component name="DefaultGradleProjectSettings">
|
||||
<option name="testRunner" value="GRADLE" />
|
||||
<option name="delegatedBuild" value="true" />
|
||||
</component>
|
||||
<component name="FileEditorManager">
|
||||
<leaf>
|
||||
<file pinned="false" current-in-tab="false">
|
||||
<entry file="file://$PROJECT_DIR$/WebRoot/WEB-INF/web.xml">
|
||||
<provider selected="true" editor-type-id="text-editor">
|
||||
<state relative-caret-position="115">
|
||||
<caret line="5" column="10" lean-forward="true" selection-start-line="5" selection-start-column="10" selection-end-line="5" selection-end-column="10" />
|
||||
</state>
|
||||
</provider>
|
||||
</entry>
|
||||
</file>
|
||||
<file pinned="false" current-in-tab="false">
|
||||
<entry file="file://$PROJECT_DIR$/src/com/dsideal/basicdata/Start.java">
|
||||
<provider selected="true" editor-type-id="text-editor">
|
||||
<state relative-caret-position="217">
|
||||
<caret line="39" lean-forward="true" selection-start-line="39" selection-end-line="39" />
|
||||
<folding>
|
||||
<element signature="imports" expanded="true" />
|
||||
<element signature="e#276#277#0" expanded="true" />
|
||||
<element signature="e#333#334#0" expanded="true" />
|
||||
<element signature="e#583#584#0" expanded="true" />
|
||||
<element signature="e#636#637#0" expanded="true" />
|
||||
<element signature="e#2247#2248#0" expanded="true" />
|
||||
<element signature="e#2328#2329#0" expanded="true" />
|
||||
</folding>
|
||||
</state>
|
||||
</provider>
|
||||
</entry>
|
||||
</file>
|
||||
<file pinned="false" current-in-tab="true">
|
||||
<entry file="file://$PROJECT_DIR$/src/log4j.properties">
|
||||
<provider selected="true" editor-type-id="text-editor">
|
||||
<state relative-caret-position="253">
|
||||
<caret line="11" column="25" selection-start-line="11" selection-start-column="25" selection-end-line="11" selection-end-column="25" />
|
||||
</state>
|
||||
</provider>
|
||||
</entry>
|
||||
</file>
|
||||
<file pinned="false" current-in-tab="false">
|
||||
<entry file="file://$PROJECT_DIR$/src/com/dsideal/basicdata/demo/demo.java">
|
||||
<provider selected="true" editor-type-id="text-editor">
|
||||
<state relative-caret-position="92">
|
||||
<caret line="4" column="13" selection-start-line="4" selection-start-column="13" selection-end-line="4" selection-end-column="13" />
|
||||
<folding>
|
||||
<element signature="e#138#139#0" expanded="true" />
|
||||
<element signature="e#166#167#0" expanded="true" />
|
||||
</folding>
|
||||
</state>
|
||||
</provider>
|
||||
</entry>
|
||||
</file>
|
||||
<file pinned="false" current-in-tab="false">
|
||||
<entry file="file://$PROJECT_DIR$/src/undertow.properties">
|
||||
<provider selected="true" editor-type-id="text-editor">
|
||||
<state relative-caret-position="230">
|
||||
<caret line="10" lean-forward="true" selection-start-line="10" selection-end-line="10" />
|
||||
</state>
|
||||
</provider>
|
||||
</entry>
|
||||
</file>
|
||||
<file pinned="false" current-in-tab="false">
|
||||
<entry file="file://$PROJECT_DIR$/src/application.properties">
|
||||
<provider selected="true" editor-type-id="text-editor">
|
||||
<state relative-caret-position="92">
|
||||
<caret line="4" column="73" selection-start-line="4" selection-start-column="73" selection-end-line="4" selection-end-column="73" />
|
||||
</state>
|
||||
</provider>
|
||||
</entry>
|
||||
</file>
|
||||
</leaf>
|
||||
</component>
|
||||
<component name="FileTemplateManagerImpl">
|
||||
<option name="RECENT_TEMPLATES">
|
||||
<list>
|
||||
<option value="Class" />
|
||||
</list>
|
||||
</option>
|
||||
</component>
|
||||
<component name="FindInProjectRecents">
|
||||
<findStrings>
|
||||
<find>configPlugin</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/com/dsideal/basicdata/Start.java" />
|
||||
<option value="$PROJECT_DIR$/src/com/dsideal/basicdata/demo/demo.java" />
|
||||
<option value="$PROJECT_DIR$/src/undertow.properties" />
|
||||
<option value="$PROJECT_DIR$/src/log4j.properties" />
|
||||
</list>
|
||||
</option>
|
||||
</component>
|
||||
<component name="MarkdownSettingsMigration">
|
||||
<option name="stateVersion" value="1" />
|
||||
</component>
|
||||
<component name="ProjectColorInfo"><![CDATA[{
|
||||
"associatedIndex": 4
|
||||
}]]></component>
|
||||
<component name="ProjectFrameBounds" extendedState="6">
|
||||
<option name="x" value="1917" />
|
||||
<option name="y" value="-8" />
|
||||
<option name="width" value="1936" />
|
||||
<option name="height" value="1066" />
|
||||
</component>
|
||||
<component name="ProjectId" id="2K570bbOcdVcSsGKRi76JswIOxI" />
|
||||
<component name="ProjectView">
|
||||
<navigator proportions="" version="1">
|
||||
<foldersAlwaysOnTop value="true" />
|
||||
</navigator>
|
||||
<panes>
|
||||
<pane id="PackagesPane" />
|
||||
<pane id="ProjectPane">
|
||||
<subPane>
|
||||
<expand>
|
||||
<path>
|
||||
<item name="BasicData" type="b2602c69:ProjectViewProjectNode" />
|
||||
<item name="BasicData" type="462c0819:PsiDirectoryNode" />
|
||||
</path>
|
||||
<path>
|
||||
<item name="BasicData" type="b2602c69:ProjectViewProjectNode" />
|
||||
<item name="BasicData" type="462c0819:PsiDirectoryNode" />
|
||||
<item name="src" type="462c0819:PsiDirectoryNode" />
|
||||
</path>
|
||||
<path>
|
||||
<item name="BasicData" type="b2602c69:ProjectViewProjectNode" />
|
||||
<item name="BasicData" type="462c0819:PsiDirectoryNode" />
|
||||
<item name="src" type="462c0819:PsiDirectoryNode" />
|
||||
<item name="basicdata" type="462c0819:PsiDirectoryNode" />
|
||||
</path>
|
||||
<path>
|
||||
<item name="BasicData" type="b2602c69:ProjectViewProjectNode" />
|
||||
<item name="BasicData" type="462c0819:PsiDirectoryNode" />
|
||||
<item name="src" type="462c0819:PsiDirectoryNode" />
|
||||
<item name="basicdata" type="462c0819:PsiDirectoryNode" />
|
||||
<item name="demo" type="462c0819:PsiDirectoryNode" />
|
||||
</path>
|
||||
<path>
|
||||
<item name="BasicData" type="b2602c69:ProjectViewProjectNode" />
|
||||
<item name="BasicData" type="462c0819:PsiDirectoryNode" />
|
||||
<item name="WebRoot" type="462c0819:PsiDirectoryNode" />
|
||||
</path>
|
||||
<path>
|
||||
<item name="BasicData" type="b2602c69:ProjectViewProjectNode" />
|
||||
<item name="BasicData" type="462c0819:PsiDirectoryNode" />
|
||||
<item name="WebRoot" type="462c0819:PsiDirectoryNode" />
|
||||
<item name="WEB-INF" type="462c0819:PsiDirectoryNode" />
|
||||
</path>
|
||||
</expand>
|
||||
<select />
|
||||
</subPane>
|
||||
</pane>
|
||||
<pane id="Scope" />
|
||||
</panes>
|
||||
</component>
|
||||
<component name="ProjectViewState">
|
||||
<option name="hideEmptyMiddlePackages" value="true" />
|
||||
<option name="showLibraryContents" value="true" />
|
||||
</component>
|
||||
<component name="PropertiesComponent"><![CDATA[{
|
||||
"keyToString": {
|
||||
"Application.Start.executor": "Run",
|
||||
"RunOnceActivity.OpenProjectViewOnStart": "true",
|
||||
"RunOnceActivity.ShowReadmeOnStart": "true",
|
||||
"SHARE_PROJECT_CONFIGURATION_FILES": "true",
|
||||
"WebServerToolWindowFactoryState": "false",
|
||||
"kotlin-language-version-configured": "true",
|
||||
"last_opened_file_path": "H:/BasicData_test",
|
||||
"node.js.detected.package.eslint": "true",
|
||||
"node.js.detected.package.tslint": "true",
|
||||
"node.js.selected.package.eslint": "(autodetect)",
|
||||
"node.js.selected.package.tslint": "(autodetect)",
|
||||
"nodejs_package_manager_path": "npm",
|
||||
"project.structure.last.edited": "Libraries",
|
||||
"project.structure.proportion": "0.15",
|
||||
"project.structure.side.proportion": "0.2",
|
||||
"vue.rearranger.settings.migration": "true"
|
||||
}
|
||||
}]]></component>
|
||||
<component name="RecentsManager">
|
||||
<key name="CopyFile.RECENT_KEYS">
|
||||
<recent name="H:\BasicData\src\com\dsideal\basicdata\handler" />
|
||||
<recent name="C:\BasicData\src" />
|
||||
<recent name="C:\BasicData\WebRoot\WEB-INF\lib" />
|
||||
<recent name="C:\BasicData\WebRoot\WEB-INF" />
|
||||
</key>
|
||||
</component>
|
||||
<component name="RunManager">
|
||||
<configuration name="Start" type="Application" factoryName="Application" temporary="true" nameIsGenerated="true">
|
||||
<option name="MAIN_CLASS_NAME" value="com.dsideal.basicdata.Start" />
|
||||
<module name="BasicData" />
|
||||
<extension name="coverage">
|
||||
<pattern>
|
||||
<option name="PATTERN" value="com.dsideal.basicdata.*" />
|
||||
<option name="ENABLED" value="true" />
|
||||
</pattern>
|
||||
</extension>
|
||||
<method v="2">
|
||||
<option name="Make" enabled="true" />
|
||||
</method>
|
||||
</configuration>
|
||||
<recent_temporary>
|
||||
<list>
|
||||
<item itemvalue="Application.Start" />
|
||||
</list>
|
||||
</recent_temporary>
|
||||
</component>
|
||||
<component name="SpellCheckerSettings" RuntimeDictionaries="0" Folders="0" CustomDictionaries="0" DefaultDictionary="application-level" UseSingleDictionary="true" transferred="true" />
|
||||
<component name="SvnConfiguration">
|
||||
<configuration />
|
||||
</component>
|
||||
<component name="TaskManager">
|
||||
<task active="true" id="Default" summary="Default task">
|
||||
<changelist id="3daa4235-11da-491b-ad73-18e1cab66500" name="Default Changelist" comment="" />
|
||||
<created>1573720915735</created>
|
||||
<option name="number" value="Default" />
|
||||
<option name="presentableId" value="Default" />
|
||||
<updated>1573720915735</updated>
|
||||
<workItem from="1573720918499" duration="5429000" />
|
||||
<workItem from="1673252370615" duration="625000" />
|
||||
<workItem from="1685607212918" duration="2660000" />
|
||||
<workItem from="1686122971824" duration="18000" />
|
||||
<workItem from="1687830152455" duration="6171000" />
|
||||
<workItem from="1689744704022" duration="1083000" />
|
||||
<workItem from="1734405228654" duration="9035000" />
|
||||
</task>
|
||||
<servers />
|
||||
</component>
|
||||
<component name="TimeTrackingManager">
|
||||
<option name="totallyTimeSpent" value="5429000" />
|
||||
</component>
|
||||
<component name="ToolWindowManager">
|
||||
<frame x="1912" y="-8" width="1936" height="1066" extended-state="6" />
|
||||
<editor active="true" />
|
||||
<layout>
|
||||
<window_info id="Designer" />
|
||||
<window_info id="Image Layers" />
|
||||
<window_info id="Capture Tool" />
|
||||
<window_info id="UI Designer" />
|
||||
<window_info id="Favorites" side_tool="true" />
|
||||
<window_info id="Web" side_tool="true" />
|
||||
<window_info active="true" content_ui="combo" id="Project" order="0" visible="true" weight="0.25" />
|
||||
<window_info id="Structure" order="1" side_tool="true" weight="0.25" />
|
||||
<window_info anchor="bottom" id="Terminal" />
|
||||
<window_info anchor="bottom" id="Docker" show_stripe_button="false" />
|
||||
<window_info anchor="bottom" id="Event Log" side_tool="true" />
|
||||
<window_info anchor="bottom" id="Messages" />
|
||||
<window_info anchor="bottom" id="Java Enterprise" />
|
||||
<window_info anchor="bottom" id="Database Changes" />
|
||||
<window_info anchor="bottom" id="Version Control" />
|
||||
<window_info anchor="bottom" id="Message" order="0" />
|
||||
<window_info anchor="bottom" id="Find" order="1" />
|
||||
<window_info anchor="bottom" id="Run" order="2" weight="0.1511254" />
|
||||
<window_info anchor="bottom" id="Debug" order="3" weight="0.4" />
|
||||
<window_info anchor="bottom" id="Cvs" order="4" weight="0.25" />
|
||||
<window_info anchor="bottom" id="Inspection" order="5" weight="0.4" />
|
||||
<window_info anchor="bottom" id="TODO" order="6" />
|
||||
<window_info anchor="right" id="Maven" />
|
||||
<window_info anchor="right" id="Palette" />
|
||||
<window_info anchor="right" id="Capture Analysis" />
|
||||
<window_info anchor="right" id="Database" />
|
||||
<window_info anchor="right" id="Palette	" />
|
||||
<window_info anchor="right" id="Theme Preview" />
|
||||
<window_info anchor="right" id="Commander" internal_type="SLIDING" order="0" type="SLIDING" weight="0.4" />
|
||||
<window_info anchor="right" id="Ant Build" order="1" weight="0.25" />
|
||||
<window_info anchor="right" content_ui="combo" id="Hierarchy" order="2" weight="0.25" />
|
||||
</layout>
|
||||
</component>
|
||||
<component name="TypeScriptGeneratedFilesManager">
|
||||
<option name="version" value="3" />
|
||||
</component>
|
||||
<component name="Vcs.Log.Tabs.Properties">
|
||||
<option name="TAB_STATES">
|
||||
<map>
|
||||
<entry key="MAIN">
|
||||
<value>
|
||||
<State />
|
||||
</value>
|
||||
</entry>
|
||||
</map>
|
||||
</option>
|
||||
</component>
|
||||
<component name="XDebuggerManager">
|
||||
<breakpoint-manager>
|
||||
<breakpoints>
|
||||
<line-breakpoint enabled="true" type="java-line">
|
||||
<url>file://$PROJECT_DIR$/src/com/dsideal/basicdata/handler/ssoHandler.java</url>
|
||||
<line>28</line>
|
||||
<option name="timeStamp" value="4" />
|
||||
</line-breakpoint>
|
||||
</breakpoints>
|
||||
</breakpoint-manager>
|
||||
</component>
|
||||
<component name="editorHistoryManager">
|
||||
<entry file="file://$PROJECT_DIR$/src/application.properties">
|
||||
<provider selected="true" editor-type-id="text-editor">
|
||||
<state relative-caret-position="92">
|
||||
<caret line="4" column="73" selection-start-line="4" selection-start-column="73" selection-end-line="4" selection-end-column="73" />
|
||||
</state>
|
||||
</provider>
|
||||
</entry>
|
||||
<entry file="file://$PROJECT_DIR$/src/undertow.properties">
|
||||
<provider selected="true" editor-type-id="text-editor">
|
||||
<state relative-caret-position="230">
|
||||
<caret line="10" lean-forward="true" selection-start-line="10" selection-end-line="10" />
|
||||
</state>
|
||||
</provider>
|
||||
</entry>
|
||||
<entry file="file://$PROJECT_DIR$/WebRoot/WEB-INF/web.xml">
|
||||
<provider selected="true" editor-type-id="text-editor">
|
||||
<state relative-caret-position="115">
|
||||
<caret line="5" column="10" lean-forward="true" selection-start-line="5" selection-start-column="10" selection-end-line="5" selection-end-column="10" />
|
||||
</state>
|
||||
</provider>
|
||||
</entry>
|
||||
<entry file="file://$PROJECT_DIR$/src/com/dsideal/basicdata/Start.java">
|
||||
<provider selected="true" editor-type-id="text-editor">
|
||||
<state relative-caret-position="217">
|
||||
<caret line="39" lean-forward="true" selection-start-line="39" selection-end-line="39" />
|
||||
<folding>
|
||||
<element signature="imports" expanded="true" />
|
||||
<element signature="e#276#277#0" expanded="true" />
|
||||
<element signature="e#333#334#0" expanded="true" />
|
||||
<element signature="e#583#584#0" expanded="true" />
|
||||
<element signature="e#636#637#0" expanded="true" />
|
||||
<element signature="e#2247#2248#0" expanded="true" />
|
||||
<element signature="e#2328#2329#0" expanded="true" />
|
||||
</folding>
|
||||
</state>
|
||||
</provider>
|
||||
</entry>
|
||||
<entry file="file://$PROJECT_DIR$/src/com/dsideal/basicdata/demo/demo.java">
|
||||
<provider selected="true" editor-type-id="text-editor">
|
||||
<state relative-caret-position="92">
|
||||
<caret line="4" column="13" selection-start-line="4" selection-start-column="13" selection-end-line="4" selection-end-column="13" />
|
||||
<folding>
|
||||
<element signature="e#138#139#0" expanded="true" />
|
||||
<element signature="e#166#167#0" expanded="true" />
|
||||
</folding>
|
||||
</state>
|
||||
</provider>
|
||||
</entry>
|
||||
<entry file="file://$PROJECT_DIR$/src/log4j.properties">
|
||||
<provider selected="true" editor-type-id="text-editor">
|
||||
<state relative-caret-position="253">
|
||||
<caret line="11" column="25" selection-start-line="11" selection-start-column="25" selection-end-line="11" selection-end-column="25" />
|
||||
</state>
|
||||
</provider>
|
||||
</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>
|
||||
<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>
|
||||
<splitter-proportions>
|
||||
<option name="proportions">
|
||||
<list>
|
||||
<option value="0.2" />
|
||||
</list>
|
||||
</option>
|
||||
</splitter-proportions>
|
||||
</settings>
|
||||
</state>
|
||||
<state key="ModuleStructureConfigurable.UI">
|
||||
<settings>
|
||||
<last-edited>BasicData</last-edited>
|
||||
<splitter-proportions>
|
||||
<option name="proportions">
|
||||
<list>
|
||||
<option value="0.21649486" />
|
||||
</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>lib</last-edited>
|
||||
<splitter-proportions>
|
||||
<option name="proportions">
|
||||
<list>
|
||||
<option value="0.21649486" />
|
||||
</list>
|
||||
</option>
|
||||
</splitter-proportions>
|
||||
</settings>
|
||||
</state>
|
||||
</states>
|
||||
</component>
|
||||
</project>
|
@ -0,0 +1,26 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<module type="JAVA_MODULE" version="4">
|
||||
<component name="FacetManager">
|
||||
<facet type="web" name="Web">
|
||||
<configuration>
|
||||
<descriptors>
|
||||
<deploymentDescriptor name="web.xml" url="file://$MODULE_DIR$/WebRoot/WEB-INF/web.xml" />
|
||||
</descriptors>
|
||||
<webroots>
|
||||
<root url="file://$MODULE_DIR$/WebRoot" relative="/" />
|
||||
</webroots>
|
||||
</configuration>
|
||||
</facet>
|
||||
</component>
|
||||
<component name="NewModuleRootManager">
|
||||
<output url="file://$MODULE_DIR$/WebRoot/WEB-INF/classes" />
|
||||
<exclude-output />
|
||||
<content url="file://$MODULE_DIR$">
|
||||
<sourceFolder url="file://$MODULE_DIR$/src" isTestSource="false" />
|
||||
</content>
|
||||
<orderEntry type="inheritedJdk" />
|
||||
<orderEntry type="sourceFolder" forTests="false" />
|
||||
<orderEntry type="library" name="lib" level="project" />
|
||||
<orderEntry type="library" name="druid-1.0.29" level="project" />
|
||||
</component>
|
||||
</module>
|
@ -0,0 +1 @@
|
||||
test
|
@ -0,0 +1,6 @@
|
||||
# 数据库信息
|
||||
#driverClassName=com.mysql.cj.jdbc.Driver
|
||||
driverClassName = org.opengauss.Driver
|
||||
user = postgres
|
||||
password =DsideaL147258369
|
||||
jdbcUrl = jdbc:mysql://10.10.14.199:22066/dsideal_db?useUnicode=true&useSSL=true&characterEncoding=UTF-8&autoReconnect=true&autoReconnectForPools=true&zeroDateTimeBehavior=convertToNull
|
@ -0,0 +1,6 @@
|
||||
message.param.not.empty=\u53C2\u6570{0}\u4E0D\u80FD\u4E3A\u7A7A\uFF01
|
||||
message.param.not.number=\u53C2\u6570{0}\u4E0D\u662F\u6570\u5B57\uFF01
|
||||
message.save.success=\u4FDD\u5B58\u6210\u529F\uFF01
|
||||
message.save.fail=\u4FDD\u5B58\u5931\u8D25\uFF01
|
||||
message.request.success=\u8bf7\u6c42\u6210\u529f\uff01
|
||||
message.request.fail=\u8bf7\u6c42\u5931\u8d25\uff01
|
@ -0,0 +1,12 @@
|
||||
# log4j.rootLogger=WARN, stdout, file
|
||||
log4j.rootLogger=WARN, stdout, file
|
||||
log4j.appender.stdout=org.apache.log4j.ConsoleAppender
|
||||
log4j.appender.stdout.layout=org.apache.log4j.PatternLayout
|
||||
log4j.appender.stdout.layout.ConversionPattern=%n%-d{yyyy-MM-dd HH:mm:ss}%n[%p]-[Thread: %t]-[%C.%M()]: %m%n
|
||||
|
||||
# Output to the File
|
||||
log4j.appender.file=org.apache.log4j.DailyRollingFileAppender
|
||||
log4j.appender.file.DatePattern='_'yyyy-MM-dd'.log'
|
||||
log4j.appender.file.File=./log/basicdata.log
|
||||
log4j.appender.file.layout=org.apache.log4j.PatternLayout
|
||||
log4j.appender.file.layout.ConversionPattern=%n%-d{yyyy-MM-dd HH:mm:ss}%n[%p]-[Thread: %t]-[%C.%M()]: %m%n
|
@ -0,0 +1,13 @@
|
||||
#namespace("Demo")
|
||||
#sql("getDemoList")
|
||||
select id,demo_name, created_date, created_by, last_updated_by, last_updated_date, b_use from t_base_demo where 1=1
|
||||
#if(demo_name)
|
||||
and demo_name like '%#(demoName)%'
|
||||
#end
|
||||
and b_use=#(b_use)
|
||||
#end
|
||||
|
||||
#sql("deleteDemoById")
|
||||
update t_base_demo set b_use= 0 where demo_id =#(demoId)
|
||||
#end
|
||||
#end
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@ -0,0 +1,6 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<web-app xmlns="http://xmlns.jcp.org/xml/ns/javaee"
|
||||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||
xsi:schemaLocation="http://xmlns.jcp.org/xml/ns/javaee http://xmlns.jcp.org/xml/ns/javaee/web-app_4_0.xsd"
|
||||
version="4.0">
|
||||
</web-app>
|
@ -0,0 +1,6 @@
|
||||
# 数据库信息
|
||||
#driverClassName=com.mysql.cj.jdbc.Driver
|
||||
driverClassName = org.opengauss.Driver
|
||||
user = postgres
|
||||
password = 123456
|
||||
jdbcUrl = jdbc:mysql://10.10.14.199:5432/ds_db?useUnicode=true&useSSL=true&characterEncoding=UTF-8&autoReconnect=true&autoReconnectForPools=true&zeroDateTimeBehavior=convertToNull
|
@ -0,0 +1,52 @@
|
||||
package com.dsideal.basicdata;
|
||||
|
||||
import com.alibaba.druid.wall.WallFilter;
|
||||
import com.dsideal.basicdata.demo.demo;
|
||||
import com.dsideal.basicdata.handler.ssoHandler;
|
||||
import com.jfinal.config.*;
|
||||
import com.jfinal.kit.Prop;
|
||||
import com.jfinal.kit.PropKit;
|
||||
import com.jfinal.plugin.druid.DruidPlugin;
|
||||
import com.jfinal.server.undertow.UndertowServer;
|
||||
import com.jfinal.template.Engine;
|
||||
|
||||
|
||||
public class Start extends JFinalConfig {
|
||||
static Prop p;
|
||||
|
||||
@Override
|
||||
public void configConstant(Constants me) {
|
||||
p = PropKit.use("application.properties");
|
||||
}
|
||||
|
||||
@Override
|
||||
public void configRoute(Routes routes) {
|
||||
|
||||
routes.add("/demo", demo.class);
|
||||
|
||||
}
|
||||
|
||||
@Override
|
||||
public void configEngine(Engine me) {
|
||||
|
||||
}
|
||||
|
||||
@Override
|
||||
public void configPlugin(Plugins plugins) {
|
||||
|
||||
}
|
||||
|
||||
@Override
|
||||
public void configInterceptor(Interceptors me) {
|
||||
|
||||
}
|
||||
|
||||
@Override
|
||||
public void configHandler(Handlers me) {
|
||||
me.add(new ssoHandler());
|
||||
}
|
||||
|
||||
public static void main(String[] args) {
|
||||
UndertowServer.create(Start.class, "undertow.properties").start();
|
||||
}
|
||||
}
|
@ -0,0 +1,9 @@
|
||||
package com.dsideal.basicdata.demo;
|
||||
|
||||
import com.jfinal.core.Controller;
|
||||
|
||||
public class demo extends Controller {
|
||||
public void getInfo() {
|
||||
renderText("OK");
|
||||
}
|
||||
}
|
@ -0,0 +1,63 @@
|
||||
package com.dsideal.basicdata.handler;
|
||||
|
||||
|
||||
import com.dsideal.basicdata.util.cookieUtil;
|
||||
import com.dsideal.basicdata.util.ssoUtil;
|
||||
import com.jfinal.handler.Handler;
|
||||
|
||||
import javax.servlet.http.HttpServletRequest;
|
||||
import javax.servlet.http.HttpServletResponse;
|
||||
|
||||
import java.util.Map;
|
||||
|
||||
import static com.jfinal.kit.HandlerKit.redirect;
|
||||
|
||||
|
||||
/**
|
||||
* 用于sso验证辅助使用,并存储用户信息到cookie
|
||||
*
|
||||
* @author 黄海
|
||||
*/
|
||||
@SuppressWarnings("unchecked")
|
||||
public class ssoHandler extends Handler {
|
||||
@Override
|
||||
public void handle(String target, HttpServletRequest req,
|
||||
HttpServletResponse res, boolean[] isHandled) {
|
||||
|
||||
boolean needLogin = false;
|
||||
|
||||
String sessionId = "ds_sso_sessionid";
|
||||
String ssoServerUrl = "http://10.10.21.20:9001/dsssoserver";
|
||||
String link = req.getRequestURL().toString();
|
||||
|
||||
String paramSessionId = req.getParameter(sessionId);
|
||||
if (paramSessionId != null) {
|
||||
Map loginMap = ssoUtil.loginCheck(paramSessionId, ssoServerUrl);
|
||||
if (loginMap != null) {
|
||||
cookieUtil.setCookieMap(res, sessionId, paramSessionId);
|
||||
System.out.println(loginMap);
|
||||
} else {
|
||||
needLogin = true;
|
||||
}
|
||||
} else {
|
||||
String cookieSessionId = cookieUtil.getCookieValue(req, sessionId);
|
||||
if (cookieSessionId != null) {
|
||||
Map loginMap = ssoUtil.loginCheck(cookieSessionId, ssoServerUrl);
|
||||
if (loginMap != null) {
|
||||
System.out.println(loginMap);
|
||||
} else {
|
||||
needLogin = true;
|
||||
}
|
||||
} else {
|
||||
needLogin = true;
|
||||
}
|
||||
}
|
||||
|
||||
if (needLogin) {
|
||||
String loginPageUrl = ssoServerUrl + "/web/login?redirect_url=" + link;
|
||||
redirect(loginPageUrl, req, res, isHandled);
|
||||
} else {
|
||||
next.handle(target, req, res, isHandled);
|
||||
}
|
||||
}
|
||||
}
|
@ -0,0 +1,57 @@
|
||||
package com.dsideal.basicdata.util;
|
||||
|
||||
import javax.servlet.http.Cookie;
|
||||
import javax.servlet.http.HttpServletRequest;
|
||||
import javax.servlet.http.HttpServletResponse;
|
||||
import java.util.Iterator;
|
||||
import java.util.Map;
|
||||
|
||||
public class cookieUtil {
|
||||
|
||||
|
||||
public static String getCookieValue(HttpServletRequest request, String key) {
|
||||
Cookie cookie = getCookie(request, key);
|
||||
if (cookie != null) {
|
||||
return cookie.getValue();
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
private static Cookie getCookie(HttpServletRequest request, String key) {
|
||||
Cookie[] arr_cookie = request.getCookies();
|
||||
if (arr_cookie != null && arr_cookie.length > 0) {
|
||||
for (Cookie cookie : arr_cookie) {
|
||||
if (cookie.getName().equals(key)) {
|
||||
return cookie;
|
||||
}
|
||||
}
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
|
||||
public static void setCookieMap(HttpServletResponse response, String key, String val) {
|
||||
setCookie(response, key, val, null, "/", -1, true);
|
||||
}
|
||||
|
||||
public static void setCookieMap(HttpServletResponse response, Map map) {
|
||||
Iterator iter = map.entrySet().iterator();
|
||||
while (iter.hasNext()) {
|
||||
Map.Entry entry = (Map.Entry) iter.next();
|
||||
String key = entry.getKey().toString();
|
||||
String val = entry.getValue().toString();
|
||||
setCookie(response, key, val, null, "/", -1, true);
|
||||
}
|
||||
}
|
||||
|
||||
private static void setCookie(HttpServletResponse response, String key, String value, String domain, String path, int maxAge, boolean isHttpOnly) {
|
||||
Cookie cookie = new Cookie(key, value);
|
||||
if (domain != null) {
|
||||
cookie.setDomain(domain);
|
||||
}
|
||||
cookie.setPath(path);
|
||||
cookie.setMaxAge(maxAge);
|
||||
//cookie.setHttpOnly(isHttpOnly);
|
||||
response.addCookie(cookie);
|
||||
}
|
||||
}
|
@ -0,0 +1,43 @@
|
||||
package com.dsideal.basicdata.util;
|
||||
|
||||
import com.alibaba.fastjson2.JSONObject;
|
||||
import com.jfinal.kit.HttpKit;
|
||||
|
||||
import java.util.HashMap;
|
||||
import java.util.Map;
|
||||
|
||||
public class ssoUtil {
|
||||
|
||||
public static Map loginCheck(String sessionId, String ssoServerAddr) {
|
||||
if (sessionId != null) {
|
||||
return getLoginMap(sessionId, ssoServerAddr);
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
private static Map getLoginMap(String sessionId, String ssoServerAddr) {
|
||||
|
||||
Map loginMap = new HashMap();
|
||||
try {
|
||||
String ssoServerUrl = ssoServerAddr + "/web/loginCheck";
|
||||
Map ssoServerUrlParams = new HashMap();
|
||||
ssoServerUrlParams.put("sessionId", sessionId);
|
||||
String strJson = HttpKit.post(ssoServerUrl, "sessionId=2bf1f3d6-8b7e-468a-9365-976498fced9b");
|
||||
JSONObject objJson = JSONObject.parseObject(strJson);
|
||||
if (objJson.getBoolean("success")) {
|
||||
loginMap.put("person_id", objJson.getString("personId"));
|
||||
loginMap.put("bureau_id", objJson.getString("bureauId"));
|
||||
loginMap.put("identity_id", objJson.getString("identityId"));
|
||||
loginMap.put("city_id", objJson.getString("city_id"));
|
||||
loginMap.put("area_id", objJson.getString("area_id"));
|
||||
loginMap.put("main_person_id", objJson.getString("mainPersonId"));
|
||||
} else {
|
||||
loginMap = null;
|
||||
}
|
||||
} catch (Exception e) {
|
||||
loginMap = null;
|
||||
e.printStackTrace();
|
||||
}
|
||||
return loginMap;
|
||||
}
|
||||
}
|
@ -0,0 +1,6 @@
|
||||
message.param.not.empty=\u53C2\u6570{0}\u4E0D\u80FD\u4E3A\u7A7A\uFF01
|
||||
message.param.not.number=\u53C2\u6570{0}\u4E0D\u662F\u6570\u5B57\uFF01
|
||||
message.save.success=\u4FDD\u5B58\u6210\u529F\uFF01
|
||||
message.save.fail=\u4FDD\u5B58\u5931\u8D25\uFF01
|
||||
message.request.success=\u8bf7\u6c42\u6210\u529f\uff01
|
||||
message.request.fail=\u8bf7\u6c42\u5931\u8d25\uff01
|
@ -0,0 +1,12 @@
|
||||
# log4j.rootLogger=WARN, stdout, file
|
||||
log4j.rootLogger=WARN, stdout, file
|
||||
log4j.appender.stdout=org.apache.log4j.ConsoleAppender
|
||||
log4j.appender.stdout.layout=org.apache.log4j.PatternLayout
|
||||
log4j.appender.stdout.layout.ConversionPattern=%n%-d{yyyy-MM-dd HH:mm:ss}%n[%p]-[Thread: %t]-[%C.%M()]: %m%n
|
||||
|
||||
# Output to the File
|
||||
log4j.appender.file=org.apache.log4j.DailyRollingFileAppender
|
||||
log4j.appender.file.DatePattern='_'yyyy-MM-dd'.log'
|
||||
log4j.appender.file.File=./log/basicdata.log
|
||||
log4j.appender.file.layout=org.apache.log4j.PatternLayout
|
||||
log4j.appender.file.layout.ConversionPattern=%n%-d{yyyy-MM-dd HH:mm:ss}%n[%p]-[Thread: %t]-[%C.%M()]: %m%n
|
@ -0,0 +1,13 @@
|
||||
#namespace("Demo")
|
||||
#sql("getDemoList")
|
||||
select id,demo_name, created_date, created_by, last_updated_by, last_updated_date, b_use from t_base_demo where 1=1
|
||||
#if(demo_name)
|
||||
and demo_name like '%#(demoName)%'
|
||||
#end
|
||||
and b_use=#(b_use)
|
||||
#end
|
||||
|
||||
#sql("deleteDemoById")
|
||||
update t_base_demo set b_use= 0 where demo_id =#(demoId)
|
||||
#end
|
||||
#end
|
Binary file not shown.
Loading…
Reference in new issue