Controller: Web. XML
Add SPRING-MVC configuration file: Conf/spring-mvc.xml
Add database connection parameter file: conf/jdbc.properties:driver=com.mysql.jdbc.Driverurl=jdbc:mysql://localhost:3306/xxxuser=rootpassword=root
(These 4 rows store the database driver information, the URL, the user name and password to connect to the login database, respectively.) )
Configure Mybatis:conf/spring-mybatis.xml
The above content is oneself in the writing
Java backend Common frame Ssm,redis,dubbo, etc.First, SPRINGMVChttp://blog.csdn.net/evankaka/article/details/45501811Spring Web MVC is a lightweight web framework that implements the request-driven type of the Web MVC design pattern based on Java, that is, the idea of using the MVC architecture pattern, decoupling the WEB layer from responsibility, and based on the request-driven approach is to use the request-response model, The purpose of the framew
The goal is to build the SSM framework, first of all need Eclipse installation Tomcat plug-in, as a small white one groping forward to go a lot of detours, but fortunately finally succeeded, here record.Because I am using Eclipse 4.6, Tomcat found on the http://www.eclipsetotale.com/tomcatPlugin.html website is not available because it supports up to 4.4, so it is only possible to find another method.Then on the Baidu Bai, found about the eclipse4.6 v
Today we have integrated a SSM Project, then deploy to the Tomcat server and start normally. But when I send the request, the error, as followsThe error says that the sequence does not exist, but I created the sequence, and then I tested it, the test statement:Select Tb_user_seq.nextval from dualThe test is not a problem, it is strange, so, began to use the usual means of inspection, Baidu, and then Baidu's methods have been tried, have not been able
SSM integration occurs when org.springframework.beans.factory.BeanCreationException:Error creating bean with Name ' XXX ' The cause of the exception and how to resolve it (only the following may occur, not all)This exception is: Injection Bean failed exception, that is, the injected bean could not be found.There are several possible reasons for this:1.bean not annotated or annotated error2. When the project is integrated, jar package conflicts3. The '
Chapter 1th Course OverviewThis paper introduces the curriculum goal, development content, function Division, development order, the pre-knowledge and environment preparation required for the development, and introduces the thought of the separation of the front and back end related to the curriculum, and the evolution process of the architecture. 2nd Chapter Development PreparationDemonstration front-end project environment construction and start-up steps, introduced the background project init
1. SummaryThis article is one of the details of the-SSM version of the Little Mall, the project GITHUB:HTTPS://GITHUB.COM/XENV/S-MALL-SSM most of this code can be found in GitHub.Parameter checking is the legality of verifying whether a user GET or POST passes in a parameter. The simplest method is to use the If check in each controller method, but this is inefficient.So, is there any other way? SPRINGMVC o
Recently in a project to do a SSM, encountered the addition of attachments and download features, in the online search a lot of information, found that many are not good use, after groping, found a set of simple methods, and share with you.1. File UploadThe front page uses Easyui, the code is as follows:JS method call Backstage:function Imageupload () {var file1 = document.getElementById ("File1"); var ssfile = document.getElementById ("Ssfile");
The SSM (Spring+springmvc+mybatis) frameset is a framework of the Spring, SPRINGMVC, MyBatis three open-source frameworks that are often used as a simple Web project for data sources.Where spring is a lightweight control inversion (IoC) and a facet-oriented (AOP) container framework.SPRINGMVC separates the roles of controllers, model objects, dispatchers, and handler objects, which makes them easier to customize.MyBatis is an excellent persistence lay
SSM Framework Fast Integration Redis 1. Add maven Dependencies
Note: The versions of Org.springframework.data, Org.apache.commons, redis.clients must be unified, or there will be conflicting versions of the compilation. (That is, this error message: Java.lang.NoSuchMethodError) Here are the versions of the three (pro-Test available):
2. Edit Redis Connection Information
redis.host=192.168.137.111
redis.port=6379
redis.password=
redis.maxidle=300
re
Reprint please indicate the source:http://blog.csdn.net/forezp/article/details/53730333This article comes from Fang Zhibong's blog
Recently, I was too busy to write the "Rxjava series" end, and two will be filled in mid-January, thank you. This article is about mybatis to build DAO layer, and this series of articles I read the Java High concurrent second kill series of the course, so the article used the example also from this series of courses. I. Environment/TOOLS
1. Development tool Idea
2. D
, annotations and so on.
Here I use the form of Applicatoncontext-*.xml to separate the DAO layer, Service layer , Transaction layer so that it is easy to manage
applicatoncontext-dao.xml,applicatoncontext-service.xml, Applicatoncontext-transaction.xml
Configuring the context location in Web. XML when configured separately
3.springmvc.xml: Inside the configuration is the control layer, such as the view resolver static resources, MVC file upload, interceptors and so on. 4. Sqlmapconfig.xml: T
In the previous section we have successfully built the SSM project environment, and the next thing we need to do is build the framework of our background management interface.The effect diagram after the constructionbuild a background interface based on easy UI
The jquery Easyui is a set of jquery-based UI plug-ins, and the goal of jquery Easyui is to make it easier for web developers to create a feature-rich and beautiful UI interface. Developers do
1. Check the Web. xml2. Check the Build table script:CREATE TABLE ' T_user_info ' (' id ' int (one) not NULL auto_increment,' user_name ' varchar (+) not NULL COMMENT ' user name ',' Password ' varchar (255) Not NULL COMMENT ' password ',PRIMARY KEY (' id ')) Engine=innodb DEFAULT Charset=utf8 comment= ' user Information table ';3. Inspection of project engineering and Jsp/java/xml documents4. Check Jdbc.propertiesUrl=jdbc:mysql://localhost:3306/ssm?u
Believe that everyone has encountered in the introduction of a Chinese string,debug their own every line of code, have found that there is always no garbled (ie: excluded, the source code file encoding format is no problem), but the data into the database is a mess.Then it is obvious that the problem is in the process of writing the data to the database (the encoding format of the database settings is also the case). If you are developing the SSH framework or the
=NewSqlsessionfactorybuilder (). build (reader); //provides a way to get to the session Public StaticSqlsession getsession ()throwsioexception{System.out.println ("22222" +factory); //The disadvantage is that the factory is//What the hell did 1.1 opensession do?sqlsession session =factory.opensession (); System.out.println ("3333"); returnsession; }}Single Test Public classMyTest {Istudentdao dao; @Before Public voidInitData ()throwsioexception{DAO=NewStudentdaoimpl (); } /*** Fuzz
all the data are read from the database how to choose should see the application see Demand O (∩_∩) o haha ~"java" contenttype="text/html; Charset=utf-8 "pageencoding="UTF-8"%>div class="Data_list"> div class="Data_list_title"> img src="${pagecontext.request.contextpath}/static/images/download_icon.png" />Contact Bo Master Download source codediv> div Style="padding:30px">Source refused to share ha hahadiv>div>
"is looking at my blog of the children's shoes, I see you impo
Jsoup is a Java HTML parser that can parse a URL address and HTML text content directly. It provides a very labor-saving API that can be used to extract and manipulate data through dom,css and jquery-like operations.
Display the blog list, display some of the blog images, enhance the user experience;Here, is in the background processing, the parsed picture stored in the collection, and then forwarded to the page, traverse the display.Here is the key code:for (Blog blog:bloglist) {List
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.