Commit 7355188e authored by liuchao's avatar liuchao

no message

parent 2959fedc
package com.qiankun.controller; package com.qiankun.controller;
import java.util.Map;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.ApplicationContext; import org.springframework.context.ApplicationContext;
import org.springframework.stereotype.Controller; import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.servlet.ModelAndView; import org.springframework.web.servlet.ModelAndView;
import com.fasterxml.jackson.databind.JsonNode; import com.fasterxml.jackson.databind.JsonNode;
import com.fasterxml.jackson.databind.ObjectMapper; import com.fasterxml.jackson.databind.ObjectMapper;
import com.qiankun.annotation.Auth;
import com.qiankun.controller.base.BaseController; import com.qiankun.controller.base.BaseController;
import com.qiankun.service.UserService; import com.qiankun.service.UserService;
...@@ -46,5 +51,11 @@ public class WebSiteController extends BaseController<Object>{ ...@@ -46,5 +51,11 @@ public class WebSiteController extends BaseController<Object>{
return t_view; return t_view;
} }
@Auth(verifyLogin = false,verifyURL = false)
@RequestMapping(value = "/api/dict",method = RequestMethod.GET)
public @ResponseBody Map<String, Object> dictionary() throws Exception {
return this.dict();
}
} }
\ No newline at end of file
...@@ -9,18 +9,21 @@ import java.io.InputStream; ...@@ -9,18 +9,21 @@ import java.io.InputStream;
import java.io.OutputStream; import java.io.OutputStream;
import java.sql.Timestamp; import java.sql.Timestamp;
import java.util.Calendar; import java.util.Calendar;
import java.util.HashMap;
import java.util.Locale; import java.util.Locale;
import java.util.Map;
import java.util.ResourceBundle;
import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse; import javax.servlet.http.HttpServletResponse;
import net.sf.json.JSONArray;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.ApplicationContext; import org.springframework.context.ApplicationContext;
import org.springframework.context.NoSuchMessageException; import org.springframework.context.NoSuchMessageException;
import org.springframework.web.servlet.mvc.multiaction.MultiActionController; import org.springframework.web.servlet.mvc.multiaction.MultiActionController;
import net.sf.json.JSONArray;
public class BaseController<Entity> extends MultiActionController { public class BaseController<Entity> extends MultiActionController {
...@@ -199,5 +202,29 @@ public class BaseController<Entity> extends MultiActionController { ...@@ -199,5 +202,29 @@ public class BaseController<Entity> extends MultiActionController {
} }
public Map<String, Object> dict() throws Exception{
ResourceBundle rb = ResourceBundle.getBundle("system");
String[] nation = rb.getString("nation").split(","); //民族
String[] nativePlace = rb.getString("nativePlace").split(",");//籍贯
String[] profession = rb.getString("profession").split(","); //职业
String[] bloodType = rb.getString("bloodType").split(","); //血型
String[] relation = rb.getString("relation").split(","); //关系
String[] education = rb.getString("education").split(","); //学历
String[] paperType = rb.getString("paperType").split(","); //证件类型
Map<String, Object> map = new HashMap<>();
map.put("nation", nation);
map.put("nativePlace", nativePlace);
map.put("profession", profession);
map.put("bloodType", bloodType);
map.put("relation", relation);
map.put("education", education);
map.put("paperType", paperType);
return map;
}
} }
...@@ -15,4 +15,15 @@ tjmdp.appid=wx77f58984e50cbc08 ...@@ -15,4 +15,15 @@ tjmdp.appid=wx77f58984e50cbc08
tjmdp.secret=6e6e00e5c01216c2464a8771cb9bdfca tjmdp.secret=6e6e00e5c01216c2464a8771cb9bdfca
tjmdp.token= tjmdp.token=
tjmdp.aesKey= tjmdp.aesKey=
tjmdp.msgDataFormat=JSON tjmdp.msgDataFormat=JSON
\ No newline at end of file
nation=\u6c49\u65cf,\u8499\u53e4\u65cf,\u56de\u65cf,\u85cf\u65cf,\u7ef4\u543e\u5c14\u65cf,\u82d7\u65cf,\u5f5d\u65cf,\u58ee\u65cf,\u5e03\u4f9d\u65cf,\u671d\u9c9c\u65cf,\u6ee1\u65cf,\u4f97\u65cf,\u7476\u65cf,\u767d\u65cf,\u571f\u5bb6\u65cf,\u54c8\u5c3c\u65cf,\u54c8\u8428\u514b\u65cf,\u50a3\u65cf,\u9ece\u65cf,\u5088\u50f3\u65cf,\u4f64\u65cf,\u7572\u65cf,\u9ad8\u5c71\u65cf,\u62c9\u795c\u65cf,\u6c34\u65cf,\u4e1c\u4e61\u65cf,\u7eb3\u897f\u65cf,\u666f\u9887\u65cf,\u67ef\u5c14\u514b\u5b5c\u65cf,\u571f\u65cf,\u8fbe\u65a1\u5c14\u65cf,\u4eeb\u4f6c\u65cf,\u7f8c\u65cf,\u5e03\u6717\u65cf,\u6492\u62c9\u65cf,\u6bdb\u5357\u65cf,\u4ee1\u4f6c\u65cf,\u9521\u4f2f\u65cf,\u963f\u660c\u65cf,\u666e\u7c73\u65cf,\u5854\u5409\u514b\u65cf,\u6012\u65cf,\u4e4c\u5b5c\u522b\u514b\u65cf,\u4fc4\u7f57\u65af\u65cf,\u9102\u6e29\u514b\u65cf,\u5fb7\u6602\u65cf,\u4fdd\u5b89\u65cf,\u88d5\u56fa\u65cf,\u4eac\u65cf,\u5854\u5854\u5c14\u65cf,\u72ec\u9f99\u65cf,\u9102\u4f26\u6625\u65cf,\u8d6b\u54f2\u65cf,\u95e8\u5df4\u65cf,\u73de\u5df4\u65cf,\u57fa\u8bfa\u65cf
nativePlace=\u5317\u4eac\u5e02,\u5929\u6d25\u5e02,\u91cd\u5e86\u5e02,\u4e0a\u6d77\u5e02,\u9999\u6e2f\u7279\u522b\u884c\u653f\u533a,\u6fb3\u95e8\u7279\u522b\u884c\u653f\u533a,\u6cb3\u5317\u7701,\u5c71\u897f\u7701,\u5409\u6797\u7701,\u8fbd\u5b81\u7701,\u9ed1\u9f99\u6c5f\u7701,\u9655\u897f\u7701,\u7518\u8083\u7701,\u9752\u6d77\u7701,\u5c71\u4e1c\u7701,\u798f\u5efa\u7701,\u6d59\u6c5f\u7701,\u53f0\u6e7e\u7701,\u6cb3\u5357\u7701,\u6e56\u5317\u7701,\u6e56\u5357\u7701,\u6c5f\u897f\u7701,\u6c5f\u82cf\u7701,\u5b89\u5fbd\u7701,\u5e7f\u4e1c\u7701,\u6d77\u5357\u7701,\u56db\u5ddd\u7701,\u8d35\u5dde\u7701,\u4e91\u5357\u7701,\u5185\u8499\u53e4\u81ea\u6cbb\u533a,\u65b0\u7586\u7ef4\u543e\u5c14\u81ea\u6cbb\u533a,\u5b81\u590f\u56de\u65cf\u81ea\u6cbb\u533a,\u5e7f\u897f\u58ee\u65cf\u81ea\u6cbb\u533a,\u897f\u85cf\u81ea\u6cbb\u533a
profession=\u536b\u751f\u4e13\u4e1a\u6280\u672f\u4eba\u5458,\u7ecf\u6d4e\u8d22\u52a1\u4eba\u5458,\u91d1\u878d\u4e1a\u52a1\u4eba\u5458,\u6cd5\u5f8b\u4e13\u4e1a\u4eba\u5458,\u6587\u5b66\u827a\u672f\u5de5\u4f5c\u4eba\u5458,\u4f53\u80b2\u5de5\u4f5c\u4eba\u5458,\u65b0\u95fb\u6587\u5316\u5de5\u4f5c\u4eba\u5458,\u5b97\u6559\u804c\u4e1a\u8005,\u884c\u653f\u529e\u516c\u4eba\u5458,\u5b89\u5168\u4fdd\u536b\u548c\u6d88\u9632\u4eba\u5458,\u90ae\u653f\u548c\u7535\u4fe1\u4e1a\u52a1\u4eba\u5458,\u8d2d\u9500\u4eba\u5458,\u5bb6\u653f\u670d\u52a1\u4eba\u5458,\u5546\u4e1a\u670d\u52a1\u4eba\u5458,\u53f8\u4e58\u4eba\u5458,\u5f85\u4e1a,\u5176\u4ed6,\u56fd\u5bb6\u516c\u52a1\u5458,\u519b\u4eba,\u5b66\u751f,\u6559\u5e08,\u5de5\u4eba,\u519c\u6797\u7267\u751f\u4ea7\u4eba\u5458,\u519c\u6797\u7267\u6280\u672f\u4eba\u5458,\u79d1\u5b66\u7814\u7a76\u4eba\u5458,\u5de5\u7a0b\u6280\u672f\u4eba\u5458,\u98de\u673a\u548c\u8239\u8236\u6280\u672f\u4eba\u5458
bloodType=\u672a\u77e5,A,B,O,AB,A:RH+,B:RH+,AB:RH+,O:RH+,A:RH-,B:RH-,AB:RH-,O:RH-
relation=\u7236\u6bcd,\u5144\u59b9,\u914d\u5076,\u5b50\u5973,\u4eb2\u5c5e,\u670b\u53cb
education=\u521d\u4e2d,\u9ad8\u4e2d,\u4e13\u79d1,\u672c\u79d1,\u7855\u58eb,\u535a\u58eb
paperType=\u8eab\u4efd\u8bc1,\u62a4\u7167,\u519b\u5b98\u8bc1
...@@ -21,7 +21,17 @@ ...@@ -21,7 +21,17 @@
http://www.springframework.org/schema/context/spring-context-4.0.xsd"> http://www.springframework.org/schema/context/spring-context-4.0.xsd">
<context:component-scan base-package="com.qiankun.controller" /> <context:component-scan base-package="com.qiankun.controller" />
<mvc:annotation-driven /> <mvc:annotation-driven>
<mvc:message-converters>
<bean class="org.springframework.http.converter.StringHttpMessageConverter">
<property name="supportedMediaTypes">
<list>
<value>application/json;charset=UTF-8</value>
</list>
</property>
</bean>
</mvc:message-converters>
</mvc:annotation-driven>
<mvc:default-servlet-handler/> <mvc:default-servlet-handler/>
<mvc:view-controller path="/" view-name="index"/> <mvc:view-controller path="/" view-name="index"/>
<bean class="org.springframework.web.servlet.mvc.annotation.DefaultAnnotationHandlerMapping"/> <bean class="org.springframework.web.servlet.mvc.annotation.DefaultAnnotationHandlerMapping"/>
......
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