If no error is reported for configuration in your project, but null is always injected in, you can check whether the project in which the configuration file is located has been referenced or configured in the configuration file. In addition, the injection in control in MVC fails. In the end, we still use the Cs method to obtain the entity classes at the business logic layer, which is somewhat regrettable.
Next we will review the entire project construction process:
1. Prepare the development environment: Spring. net, nhib.pdf, ASP. net mvc, vs2008 SP1, etc.
2. Create a solution, add service Dao model and other projects at various layers, and prepare the database
3. Design and Implement idao. On this basis, implement ibll
4. Configure HBM object class ing XML file
Configure the webconfig file of the WEB Project
Configure commondao. xml ---- core configuration file of nhib.pdf
Configure Dao Layer Injection XML file
Configure the BLL layer to inject XML files
5. Test and use
This series is almost written. Share your knowledge with me to make technology change the world. The series is constantly improving...
I hope you will give more comments!
Related downloads
Download the spring.net nhib.pdf control used in the project
Project: Download source code
ArticleIndex:
Build your spring. NET + nhib.pdf + ASP. net mvc Framework (1)
Build your spring. NET + nhib.pdf + ASP. net mvc Framework (2) create your project
Build your spring. NET + nhib.pdf + ASP. net mvc Framework (3) Implement the database interface layer and business logic layer
Build your spring. NET + nhib.pdf + ASP. net mvc Framework (4) Full configuration strategy
Build your spring. NET + nhib.pdf + ASP. net mvc Framework (5) to test your results
Build your spring. NET + nhib.pdf + ASP. net mvc Framework (6 ).