---
title: "Thred类中 注入service"
author: "durbao"
date: "2015-06-03T21:40:15Z"
tags: []
categories: ["移动开发"]
slug: "thred-service"
draft: false
lastmod: "2015-06-03T21:40:15Z"
id: 2216795
url: "https://durbao.iteye.com/blog/2216795"
---

```
WebApplicationContext ctx=ContextLoader.getCurrentWebApplicationContext();
		ctx.getBean("xxxxService");
```