浏览代码

added ionic-app

Roy 6 年前
父节点
当前提交
3da6bb02b0

二进制
.DS_Store 查看文件


+ 95
- 6
.idea/workspace.xml 查看文件

@@ -1,7 +1,14 @@
1 1
 <?xml version="1.0" encoding="UTF-8"?>
2 2
 <project version="4">
3 3
   <component name="ChangeListManager">
4
-    <list default="true" id="b17f0c7b-7b15-4e2a-9434-f5f9847c8e3b" name="Default" comment="" />
4
+    <list default="true" id="b17f0c7b-7b15-4e2a-9434-f5f9847c8e3b" name="Default" comment="">
5
+      <change beforePath="$PROJECT_DIR$/ZipTeamOrange/.idea/compiler.xml" beforeDir="false" />
6
+      <change beforePath="$PROJECT_DIR$/ZipTeamOrange/.idea/encodings.xml" beforeDir="false" />
7
+      <change beforePath="$PROJECT_DIR$/ZipTeamOrange/.idea/uiDesigner.xml" beforeDir="false" />
8
+      <change beforePath="$PROJECT_DIR$/ZipTeamOrange/.idea/workspace.xml" beforeDir="false" afterPath="$PROJECT_DIR$/ZipTeamOrange/.idea/workspace.xml" afterDir="false" />
9
+      <change beforePath="$PROJECT_DIR$/ZipTeamOrange/Middleteir.uml" beforeDir="false" />
10
+      <change beforePath="$PROJECT_DIR$/ZipTeamOrange/src/main/java/ZipTeamOrange/ZipTeamOrangeApplication.java" beforeDir="false" afterPath="$PROJECT_DIR$/ZipTeamOrange/src/main/java/ZipTeamOrange/ZipTeamOrangeApplication.java" afterDir="false" />
11
+    </list>
5 12
     <option name="EXCLUDED_CONVERTED_TO_IGNORED" value="true" />
6 13
     <option name="TRACKING_ENABLED" value="true" />
7 14
     <option name="SHOW_DIALOG" value="false" />
@@ -9,9 +16,29 @@
9 16
     <option name="HIGHLIGHT_NON_ACTIVE_CHANGELIST" value="false" />
10 17
     <option name="LAST_RESOLUTION" value="IGNORE" />
11 18
   </component>
19
+  <component name="FileEditorManager">
20
+    <leaf>
21
+      <file leaf-file-name="ZipTeamOrangeApplication.java" pinned="false" current-in-tab="true">
22
+        <entry file="file://$PROJECT_DIR$/ZipTeamOrange/src/main/java/ZipTeamOrange/ZipTeamOrangeApplication.java">
23
+          <provider selected="true" editor-type-id="text-editor">
24
+            <state relative-caret-position="90">
25
+              <caret line="7" column="4" lean-forward="true" selection-start-line="7" selection-start-column="4" selection-end-line="7" selection-end-column="4" />
26
+            </state>
27
+          </provider>
28
+        </entry>
29
+      </file>
30
+    </leaf>
31
+  </component>
12 32
   <component name="Git.Settings">
13 33
     <option name="RECENT_GIT_ROOT_PATH" value="$PROJECT_DIR$" />
14 34
   </component>
35
+  <component name="IdeDocumentHistory">
36
+    <option name="CHANGED_PATHS">
37
+      <list>
38
+        <option value="$PROJECT_DIR$/ZipTeamOrange/src/main/java/ZipTeamOrange/ZipTeamOrangeApplication.java" />
39
+      </list>
40
+    </option>
41
+  </component>
15 42
   <component name="JsBuildToolGruntFileManager" detection-done="true" sorting="DEFINITION_ORDER" />
16 43
   <component name="JsBuildToolPackageJson" detection-done="true" sorting="DEFINITION_ORDER" />
17 44
   <component name="JsGulpfileManager">
@@ -21,7 +48,7 @@
21 48
   <component name="NodePackageJsonFileManager">
22 49
     <packageJsonPaths />
23 50
   </component>
24
-  <component name="ProjectFrameBounds">
51
+  <component name="ProjectFrameBounds" extendedState="6">
25 52
     <option name="x" value="442" />
26 53
     <option name="y" value="115" />
27 54
     <option name="width" value="1280" />
@@ -32,7 +59,6 @@
32 59
       <foldersAlwaysOnTop value="true" />
33 60
     </navigator>
34 61
     <panes>
35
-      <pane id="PackagesPane" />
36 62
       <pane id="ProjectPane">
37 63
         <subPane>
38 64
           <expand>
@@ -40,12 +66,64 @@
40 66
               <item name="ZipTeam" type="b2602c69:ProjectViewProjectNode" />
41 67
               <item name="ZipTeam" type="462c0819:PsiDirectoryNode" />
42 68
             </path>
69
+            <path>
70
+              <item name="ZipTeam" type="b2602c69:ProjectViewProjectNode" />
71
+              <item name="ZipTeam" type="462c0819:PsiDirectoryNode" />
72
+              <item name="ZipTeamOrange" type="462c0819:PsiDirectoryNode" />
73
+            </path>
74
+            <path>
75
+              <item name="ZipTeam" type="b2602c69:ProjectViewProjectNode" />
76
+              <item name="ZipTeam" type="462c0819:PsiDirectoryNode" />
77
+              <item name="ZipTeamOrange" type="462c0819:PsiDirectoryNode" />
78
+              <item name=".mvn" type="462c0819:PsiDirectoryNode" />
79
+            </path>
80
+            <path>
81
+              <item name="ZipTeam" type="b2602c69:ProjectViewProjectNode" />
82
+              <item name="ZipTeam" type="462c0819:PsiDirectoryNode" />
83
+              <item name="ZipTeamOrange" type="462c0819:PsiDirectoryNode" />
84
+              <item name="src" type="462c0819:PsiDirectoryNode" />
85
+            </path>
86
+            <path>
87
+              <item name="ZipTeam" type="b2602c69:ProjectViewProjectNode" />
88
+              <item name="ZipTeam" type="462c0819:PsiDirectoryNode" />
89
+              <item name="ZipTeamOrange" type="462c0819:PsiDirectoryNode" />
90
+              <item name="src" type="462c0819:PsiDirectoryNode" />
91
+              <item name="main" type="462c0819:PsiDirectoryNode" />
92
+            </path>
93
+            <path>
94
+              <item name="ZipTeam" type="b2602c69:ProjectViewProjectNode" />
95
+              <item name="ZipTeam" type="462c0819:PsiDirectoryNode" />
96
+              <item name="ZipTeamOrange" type="462c0819:PsiDirectoryNode" />
97
+              <item name="src" type="462c0819:PsiDirectoryNode" />
98
+              <item name="main" type="462c0819:PsiDirectoryNode" />
99
+              <item name="java" type="462c0819:PsiDirectoryNode" />
100
+            </path>
101
+            <path>
102
+              <item name="ZipTeam" type="b2602c69:ProjectViewProjectNode" />
103
+              <item name="ZipTeam" type="462c0819:PsiDirectoryNode" />
104
+              <item name="ZipTeamOrange" type="462c0819:PsiDirectoryNode" />
105
+              <item name="src" type="462c0819:PsiDirectoryNode" />
106
+              <item name="main" type="462c0819:PsiDirectoryNode" />
107
+              <item name="java" type="462c0819:PsiDirectoryNode" />
108
+              <item name="ZipTeamOrange" type="462c0819:PsiDirectoryNode" />
109
+            </path>
110
+            <path>
111
+              <item name="ZipTeam" type="b2602c69:ProjectViewProjectNode" />
112
+              <item name="ZipTeam" type="462c0819:PsiDirectoryNode" />
113
+              <item name="ZipTeamOrange" type="462c0819:PsiDirectoryNode" />
114
+              <item name="src" type="462c0819:PsiDirectoryNode" />
115
+              <item name="main" type="462c0819:PsiDirectoryNode" />
116
+              <item name="java" type="462c0819:PsiDirectoryNode" />
117
+              <item name="ZipTeamOrange" type="462c0819:PsiDirectoryNode" />
118
+              <item name="user" type="462c0819:PsiDirectoryNode" />
119
+            </path>
43 120
           </expand>
44 121
           <select />
45 122
         </subPane>
46 123
       </pane>
47 124
       <pane id="AndroidView" />
48 125
       <pane id="Scope" />
126
+      <pane id="PackagesPane" />
49 127
     </panes>
50 128
   </component>
51 129
   <component name="PropertiesComponent">
@@ -127,14 +205,16 @@
127 205
       <updated>1531074219472</updated>
128 206
       <workItem from="1531074221218" duration="56000" />
129 207
       <workItem from="1531074452837" duration="81000" />
208
+      <workItem from="1531695315706" duration="69000" />
130 209
     </task>
131 210
     <servers />
132 211
   </component>
133 212
   <component name="TimeTrackingManager">
134
-    <option name="totallyTimeSpent" value="137000" />
213
+    <option name="totallyTimeSpent" value="206000" />
135 214
   </component>
136 215
   <component name="ToolWindowManager">
137
-    <frame x="442" y="115" width="1280" height="709" extended-state="0" />
216
+    <frame x="0" y="31" width="1280" height="709" extended-state="6" />
217
+    <editor active="true" />
138 218
     <layout>
139 219
       <window_info anchor="right" id="Palette" order="3" />
140 220
       <window_info anchor="bottom" id="TODO" order="6" />
@@ -149,7 +229,7 @@
149 229
       <window_info anchor="bottom" id="Terminal" order="7" />
150 230
       <window_info id="Capture Tool" order="2" />
151 231
       <window_info id="Designer" order="2" />
152
-      <window_info active="true" content_ui="combo" id="Project" order="0" visible="true" weight="0.25" />
232
+      <window_info active="true" content_ui="combo" id="Project" order="0" visible="true" weight="0.2536349" />
153 233
       <window_info anchor="right" id="Database" order="3" />
154 234
       <window_info id="Structure" order="1" side_tool="true" weight="0.25" />
155 235
       <window_info anchor="right" id="Ant Build" order="1" weight="0.25" />
@@ -171,6 +251,15 @@
171 251
   <component name="VcsContentAnnotationSettings">
172 252
     <option name="myLimit" value="2678400000" />
173 253
   </component>
254
+  <component name="editorHistoryManager">
255
+    <entry file="file://$PROJECT_DIR$/ZipTeamOrange/src/main/java/ZipTeamOrange/ZipTeamOrangeApplication.java">
256
+      <provider selected="true" editor-type-id="text-editor">
257
+        <state relative-caret-position="90">
258
+          <caret line="7" column="4" lean-forward="true" selection-start-line="7" selection-start-column="4" selection-end-line="7" selection-end-column="4" />
259
+        </state>
260
+      </provider>
261
+    </entry>
262
+  </component>
174 263
   <component name="masterDetails">
175 264
     <states>
176 265
       <state key="ArtifactsStructureConfigurable.UI">

二进制
ZipTeamOrange/.DS_Store 查看文件


+ 0
- 124
ZipTeamOrange/.idea/uiDesigner.xml 查看文件

@@ -1,124 +0,0 @@
1
-<?xml version="1.0" encoding="UTF-8"?>
2
-<project version="4">
3
-  <component name="Palette2">
4
-    <group name="Swing">
5
-      <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">
6
-        <default-constraints vsize-policy="1" hsize-policy="6" anchor="0" fill="1" />
7
-      </item>
8
-      <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">
9
-        <default-constraints vsize-policy="6" hsize-policy="1" anchor="0" fill="2" />
10
-      </item>
11
-      <item class="javax.swing.JPanel" icon="/com/intellij/uiDesigner/icons/panel.png" removable="false" auto-create-binding="false" can-attach-label="false">
12
-        <default-constraints vsize-policy="3" hsize-policy="3" anchor="0" fill="3" />
13
-      </item>
14
-      <item class="javax.swing.JScrollPane" icon="/com/intellij/uiDesigner/icons/scrollPane.png" removable="false" auto-create-binding="false" can-attach-label="true">
15
-        <default-constraints vsize-policy="7" hsize-policy="7" anchor="0" fill="3" />
16
-      </item>
17
-      <item class="javax.swing.JButton" icon="/com/intellij/uiDesigner/icons/button.png" removable="false" auto-create-binding="true" can-attach-label="false">
18
-        <default-constraints vsize-policy="0" hsize-policy="3" anchor="0" fill="1" />
19
-        <initial-values>
20
-          <property name="text" value="Button" />
21
-        </initial-values>
22
-      </item>
23
-      <item class="javax.swing.JRadioButton" icon="/com/intellij/uiDesigner/icons/radioButton.png" removable="false" auto-create-binding="true" can-attach-label="false">
24
-        <default-constraints vsize-policy="0" hsize-policy="3" anchor="8" fill="0" />
25
-        <initial-values>
26
-          <property name="text" value="RadioButton" />
27
-        </initial-values>
28
-      </item>
29
-      <item class="javax.swing.JCheckBox" icon="/com/intellij/uiDesigner/icons/checkBox.png" removable="false" auto-create-binding="true" can-attach-label="false">
30
-        <default-constraints vsize-policy="0" hsize-policy="3" anchor="8" fill="0" />
31
-        <initial-values>
32
-          <property name="text" value="CheckBox" />
33
-        </initial-values>
34
-      </item>
35
-      <item class="javax.swing.JLabel" icon="/com/intellij/uiDesigner/icons/label.png" removable="false" auto-create-binding="false" can-attach-label="false">
36
-        <default-constraints vsize-policy="0" hsize-policy="0" anchor="8" fill="0" />
37
-        <initial-values>
38
-          <property name="text" value="Label" />
39
-        </initial-values>
40
-      </item>
41
-      <item class="javax.swing.JTextField" icon="/com/intellij/uiDesigner/icons/textField.png" removable="false" auto-create-binding="true" can-attach-label="true">
42
-        <default-constraints vsize-policy="0" hsize-policy="6" anchor="8" fill="1">
43
-          <preferred-size width="150" height="-1" />
44
-        </default-constraints>
45
-      </item>
46
-      <item class="javax.swing.JPasswordField" icon="/com/intellij/uiDesigner/icons/passwordField.png" removable="false" auto-create-binding="true" can-attach-label="true">
47
-        <default-constraints vsize-policy="0" hsize-policy="6" anchor="8" fill="1">
48
-          <preferred-size width="150" height="-1" />
49
-        </default-constraints>
50
-      </item>
51
-      <item class="javax.swing.JFormattedTextField" icon="/com/intellij/uiDesigner/icons/formattedTextField.png" removable="false" auto-create-binding="true" can-attach-label="true">
52
-        <default-constraints vsize-policy="0" hsize-policy="6" anchor="8" fill="1">
53
-          <preferred-size width="150" height="-1" />
54
-        </default-constraints>
55
-      </item>
56
-      <item class="javax.swing.JTextArea" icon="/com/intellij/uiDesigner/icons/textArea.png" removable="false" auto-create-binding="true" can-attach-label="true">
57
-        <default-constraints vsize-policy="6" hsize-policy="6" anchor="0" fill="3">
58
-          <preferred-size width="150" height="50" />
59
-        </default-constraints>
60
-      </item>
61
-      <item class="javax.swing.JTextPane" icon="/com/intellij/uiDesigner/icons/textPane.png" removable="false" auto-create-binding="true" can-attach-label="true">
62
-        <default-constraints vsize-policy="6" hsize-policy="6" anchor="0" fill="3">
63
-          <preferred-size width="150" height="50" />
64
-        </default-constraints>
65
-      </item>
66
-      <item class="javax.swing.JEditorPane" icon="/com/intellij/uiDesigner/icons/editorPane.png" removable="false" auto-create-binding="true" can-attach-label="true">
67
-        <default-constraints vsize-policy="6" hsize-policy="6" anchor="0" fill="3">
68
-          <preferred-size width="150" height="50" />
69
-        </default-constraints>
70
-      </item>
71
-      <item class="javax.swing.JComboBox" icon="/com/intellij/uiDesigner/icons/comboBox.png" removable="false" auto-create-binding="true" can-attach-label="true">
72
-        <default-constraints vsize-policy="0" hsize-policy="2" anchor="8" fill="1" />
73
-      </item>
74
-      <item class="javax.swing.JTable" icon="/com/intellij/uiDesigner/icons/table.png" removable="false" auto-create-binding="true" can-attach-label="false">
75
-        <default-constraints vsize-policy="6" hsize-policy="6" anchor="0" fill="3">
76
-          <preferred-size width="150" height="50" />
77
-        </default-constraints>
78
-      </item>
79
-      <item class="javax.swing.JList" icon="/com/intellij/uiDesigner/icons/list.png" removable="false" auto-create-binding="true" can-attach-label="false">
80
-        <default-constraints vsize-policy="6" hsize-policy="2" anchor="0" fill="3">
81
-          <preferred-size width="150" height="50" />
82
-        </default-constraints>
83
-      </item>
84
-      <item class="javax.swing.JTree" icon="/com/intellij/uiDesigner/icons/tree.png" removable="false" auto-create-binding="true" can-attach-label="false">
85
-        <default-constraints vsize-policy="6" hsize-policy="6" anchor="0" fill="3">
86
-          <preferred-size width="150" height="50" />
87
-        </default-constraints>
88
-      </item>
89
-      <item class="javax.swing.JTabbedPane" icon="/com/intellij/uiDesigner/icons/tabbedPane.png" removable="false" auto-create-binding="true" can-attach-label="false">
90
-        <default-constraints vsize-policy="3" hsize-policy="3" anchor="0" fill="3">
91
-          <preferred-size width="200" height="200" />
92
-        </default-constraints>
93
-      </item>
94
-      <item class="javax.swing.JSplitPane" icon="/com/intellij/uiDesigner/icons/splitPane.png" removable="false" auto-create-binding="false" can-attach-label="false">
95
-        <default-constraints vsize-policy="3" hsize-policy="3" anchor="0" fill="3">
96
-          <preferred-size width="200" height="200" />
97
-        </default-constraints>
98
-      </item>
99
-      <item class="javax.swing.JSpinner" icon="/com/intellij/uiDesigner/icons/spinner.png" removable="false" auto-create-binding="true" can-attach-label="true">
100
-        <default-constraints vsize-policy="0" hsize-policy="6" anchor="8" fill="1" />
101
-      </item>
102
-      <item class="javax.swing.JSlider" icon="/com/intellij/uiDesigner/icons/slider.png" removable="false" auto-create-binding="true" can-attach-label="false">
103
-        <default-constraints vsize-policy="0" hsize-policy="6" anchor="8" fill="1" />
104
-      </item>
105
-      <item class="javax.swing.JSeparator" icon="/com/intellij/uiDesigner/icons/separator.png" removable="false" auto-create-binding="false" can-attach-label="false">
106
-        <default-constraints vsize-policy="6" hsize-policy="6" anchor="0" fill="3" />
107
-      </item>
108
-      <item class="javax.swing.JProgressBar" icon="/com/intellij/uiDesigner/icons/progressbar.png" removable="false" auto-create-binding="true" can-attach-label="false">
109
-        <default-constraints vsize-policy="0" hsize-policy="6" anchor="0" fill="1" />
110
-      </item>
111
-      <item class="javax.swing.JToolBar" icon="/com/intellij/uiDesigner/icons/toolbar.png" removable="false" auto-create-binding="false" can-attach-label="false">
112
-        <default-constraints vsize-policy="0" hsize-policy="6" anchor="0" fill="1">
113
-          <preferred-size width="-1" height="20" />
114
-        </default-constraints>
115
-      </item>
116
-      <item class="javax.swing.JToolBar$Separator" icon="/com/intellij/uiDesigner/icons/toolbarSeparator.png" removable="false" auto-create-binding="false" can-attach-label="false">
117
-        <default-constraints vsize-policy="0" hsize-policy="0" anchor="0" fill="1" />
118
-      </item>
119
-      <item class="javax.swing.JScrollBar" icon="/com/intellij/uiDesigner/icons/scrollbar.png" removable="false" auto-create-binding="true" can-attach-label="false">
120
-        <default-constraints vsize-policy="6" hsize-policy="0" anchor="0" fill="2" />
121
-      </item>
122
-    </group>
123
-  </component>
124
-</project>

+ 200
- 944
ZipTeamOrange/.idea/workspace.xml
文件差异内容过多而无法显示
查看文件


+ 0
- 50
ZipTeamOrange/Middleteir.uml 查看文件

@@ -1,50 +0,0 @@
1
-<?xml version="1.0" encoding="UTF-8"?>
2
-<Diagram>
3
-  <ID>JAVA</ID>
4
-  <OriginalElement />
5
-  <nodes>
6
-    <node x="335.0" y="308.0">User</node>
7
-    <node x="687.0" y="308.0">Message</node>
8
-    <node x="0.0" y="603.0">MessageRespository</node>
9
-    <node x="0.0" y="699.0">UserRespository</node>
10
-    <node x="0.0" y="308.0">Chat</node>
11
-    <node x="410.0" y="101.0">UserController</node>
12
-    <node x="205.0" y="101.0">MessageController</node>
13
-    <node x="0.0" y="795.0">ChatRespository</node>
14
-    <node x="235.0" y="0.0">Controller</node>
15
-    <node x="0.0" y="101.0">ChatController</node>
16
-    <node x="541.0" y="795.0">Main</node>
17
-  </nodes>
18
-  <notes />
19
-  <edges>
20
-    <edge source="UserController" target="Controller">
21
-      <point x="0.0" y="-81.0" />
22
-      <point x="502.5" y="76.0" />
23
-      <point x="339.16666666666663" y="76.0" />
24
-      <point x="41.66666666666663" y="25.5" />
25
-    </edge>
26
-    <edge source="MessageController" target="Controller">
27
-      <point x="0.0" y="-81.0" />
28
-      <point x="0.0" y="25.5" />
29
-    </edge>
30
-    <edge source="ChatController" target="Controller">
31
-      <point x="0.0" y="-81.0" />
32
-      <point x="92.5" y="76.0" />
33
-      <point x="255.83333333333334" y="76.0" />
34
-      <point x="-41.66666666666666" y="25.5" />
35
-    </edge>
36
-  </edges>
37
-  <settings layout="Hierarchic Group" zoom="1.0" x="454.0" y="423.0" />
38
-  <SelectedNodes>
39
-    <node>MessageRespository</node>
40
-  </SelectedNodes>
41
-  <Categories>
42
-    <Category>Fields</Category>
43
-    <Category>Constructors</Category>
44
-    <Category>Methods</Category>
45
-    <Category>Properties</Category>
46
-  </Categories>
47
-  <SCOPE>Project Files</SCOPE>
48
-  <VISIBILITY>private</VISIBILITY>
49
-</Diagram>
50
-

+ 5
- 0
ZipTeamOrange/pom.xml 查看文件

@@ -36,6 +36,11 @@
36 36
 
37 37
 		<dependency>
38 38
 			<groupId>org.springframework.boot</groupId>
39
+			<artifactId>spring-boot-starter-data-rest</artifactId>
40
+		</dependency>
41
+
42
+		<dependency>
43
+			<groupId>org.springframework.boot</groupId>
39 44
 			<artifactId>spring-boot-devtools</artifactId>
40 45
 			<scope>runtime</scope>
41 46
 		</dependency>

二进制
ZipTeamOrange/src/.DS_Store 查看文件


二进制
ZipTeamOrange/src/main/.DS_Store 查看文件


二进制
ZipTeamOrange/src/main/java/.DS_Store 查看文件


二进制
ZipTeamOrange/src/main/java/ZipTeamOrange/.DS_Store 查看文件


+ 1
- 0
ZipTeamOrange/src/main/java/ZipTeamOrange/ZipTeamOrangeApplication.java 查看文件

@@ -6,6 +6,7 @@ import org.springframework.boot.autoconfigure.SpringBootApplication;
6 6
 @SpringBootApplication
7 7
 public class ZipTeamOrangeApplication {
8 8
 
9
+
9 10
 	public static void main(String[] args) {
10 11
 		SpringApplication.run(ZipTeamOrangeApplication.class, args);
11 12
 	}

+ 2
- 4
ZipTeamOrange/src/main/java/ZipTeamOrange/user/UserController.java 查看文件

@@ -2,10 +2,7 @@ package ZipTeamOrange.user;
2 2
 
3 3
 import org.springframework.beans.factory.annotation.Autowired;
4 4
 import org.springframework.stereotype.Controller;
5
-import org.springframework.web.bind.annotation.GetMapping;
6
-import org.springframework.web.bind.annotation.RequestMapping;
7
-import org.springframework.web.bind.annotation.RequestParam;
8
-import org.springframework.web.bind.annotation.ResponseBody;
5
+import org.springframework.web.bind.annotation.*;
9 6
 
10 7
 @Controller
11 8
 @RequestMapping(path = "/user")
@@ -15,6 +12,7 @@ public class UserController {
15 12
     private UserRepository userRepository;
16 13
 
17 14
     @GetMapping(path="/add")
15
+    @CrossOrigin(origins = {"http://localhost:8100", "http://localhost:8080"})
18 16
     public @ResponseBody String addNewuser(@RequestParam String username, @RequestParam String email, @RequestParam String password){
19 17
         User user = new User(username, email, password);
20 18
 

+ 4
- 1
ZipTeamOrange/src/main/java/ZipTeamOrange/user/UserRepository.java 查看文件

@@ -1,8 +1,11 @@
1 1
 package ZipTeamOrange.user;
2 2
 
3 3
 import org.springframework.data.jpa.repository.JpaRepository;
4
+import org.springframework.data.rest.core.annotation.RepositoryRestResource;
5
+import org.springframework.web.bind.annotation.CrossOrigin;
4 6
 
5
-
7
+@RepositoryRestResource
8
+@CrossOrigin(origins = {"http://localhost:8100", "http://localhost:8080"})
6 9
 public interface UserRepository extends JpaRepository<User, Long>{
7 10
 
8 11
 

+ 2
- 1
ZipTeamOrange/src/main/resources/application.properties 查看文件

@@ -1,3 +1,4 @@
1 1
 spring.jpa.hibernate.ddl-auto=create-drop
2 2
 spring.datasource.url=jdbc:mysql://localhost:3306/ZipTeamOrange?useSSL=false
3
-spring.datasource.username=root
3
+spring.datasource.username=root
4
+spring.datasource.password=password

+ 1
- 0
ionic-ZipTeamOrange

@@ -0,0 +1 @@
1
+Subproject commit f029e6f6652f23cccc0c20db50f5c4b1b82ebacc