<!-- Web Configuration -->
<util:properties id="bpm" location="classpath:application.properties"/>
public class BaseController {
protected Logger logger= LoggerFactory.getLogger(this.getClass());
// protected String userId="b0095a66-650a-11e6-90a7-b8aeed2e916b";
@Value("#{bpm['user.id']}")
public String userId;//= "134293e4-78b6-11e6-a4bb-0242ac110002";
@Value("#{bpm['poc.process']}")
public String pocProcess;//="demo_process";//带分支流程,变量驱动
<bean id="propertyConfigurer" class="org.springframework.beans.factory.config.PropertyPlaceholderConfigurer">
<property name="locations">
<list>
<value>classpath:application.properties</value>
</list>
</property>
<property name="systemPropertiesMode" value="2"></property>
</bean>
@Service
public class ProcessService {
private Logger log = LoggerFactory.getLogger(getClass());
@Autowired
private JsonResultService jsonResultService;
@Value("${bpmrest.server}")
private String serverUrl;
@Value("${bpmrest.tenant}")
private String tenant;
@Value("${bpmrest.token}")
private String token;