Commit f67317e5d5473b9c0d94eb26504c8bf919ce7c6d
1 parent
754a302c12
Exists in
master
and in
8 other branches
修改新电子病历
Showing 1 changed file with 0 additions and 6 deletions
platform-biz-service/src/main/java/com/lyms/platform/permission/DataAccessLayerService.java
View file @
f67317e
| ... | ... | @@ -26,7 +26,6 @@ |
| 26 | 26 | //启动方式 1 单机 2 服务器 |
| 27 | 27 | @Value("#{configProperties['server.startup']}") |
| 28 | 28 | private String startUpModel="2"; |
| 29 | - private java.util.Map<Class,Object> clazzCached=new ConcurrentHashMap<>(); | |
| 30 | 29 | |
| 31 | 30 | @Override |
| 32 | 31 | public void afterPropertiesSet() throws Exception { |
| 33 | 32 | |
| ... | ... | @@ -35,13 +34,8 @@ |
| 35 | 34 | public Object getBean(Class clazz){ |
| 36 | 35 | try{ |
| 37 | 36 | |
| 38 | - Object object = clazzCached.get(clazz); | |
| 39 | - if(null!= object){ | |
| 40 | - return object; | |
| 41 | - } | |
| 42 | 37 | |
| 43 | 38 | Object obj = getApplicationContext().getBean(clazz); |
| 44 | - clazzCached.put(clazz,obj); | |
| 45 | 39 | return obj; |
| 46 | 40 | }catch (Exception e){ |
| 47 | 41 |