Bean 是构成应用程序的对象,并由 Spring IoC 容器管理。 [Spring Framework 文档](https://docs.spring.io/spring/docs/current/spring-framework-reference/core.html#beans-introduction)的正式定义是:
在 Spring 中,构成应用程序主干并由 Spring IoC 容器管理的对象称为 Bean。 Bean 是由 Spring IoC 容器实例化,组装和以其他方式管理的对象。
如果您不熟悉 Spring IoC 容器,强烈建议您在处单击[。 您将被重定向到我撰写的有关该主题的文章。](https://javatutorial.net/java-spring-ioc-container-example)
如果您不熟悉 Spring IoC 容器,[强烈建议您单击此处](https://javatutorial.net/java-spring-ioc-container-example)。您将被重定向到我撰写的有关该主题的文章。
我们将使用软件 PWM 来控制电机速度。 如果您想了解更多有关 PWM 的信息,请阅读我以前的教程[具有 PWM 和 Java 的 Raspberry Pi 调光 LED](http://javatutorial.net/raspberry-pi-dim-led-pwm-java"Raspberry Pi Dim LED with PWM and Java") 。 我们将使用 [Pi4j](http://pi4j.com/) API 用 Java 编写速度控制程序。 如果您想知道如何使用 Pi4j 安装,配置和运行项目,请参阅本教程的[。](http://javatutorial.net/raspberry-pi-java-tutorial"Raspberry Pi Java Tutorial")
我们将使用软件 PWM 来控制电机速度。 如果您想了解更多有关 PWM 的信息,请阅读我以前的教程[具有 PWM 和 Java 的 Raspberry Pi 调光 LED](http://javatutorial.net/raspberry-pi-dim-led-pwm-java"Raspberry Pi Dim LED with PWM and Java")。 我们将使用 [Pi4j](http://pi4j.com/) API 用 Java 编写速度控制程序。 如果您想知道如何使用 Pi4j 安装,配置和运行项目,[请参阅本教程](http://javatutorial.net/raspberry-pi-java-tutorial"Raspberry Pi Java Tutorial")。