包含标签:Java 的文章
-
Struts 2 bean tag: create and instantiate a JavaBean object
< s: bean name = "Fe. ZX. Person" > < s: param name = "username" value = "'Mr '" / > / / sub tag < s: p…… -
Hibernate Ge method: set the condition greater than or equal to
ge(String propertyName,Object value) Example Criteria criteria = session.createCriteria(UserForm.class); //创建Crit…… -
JSP JSTL < SQL: update > tag: update data
Syntax: The syntax of the query statement is as follows: actions The syntax of conditional query is a…… -
JSP JSTL < x: set > tag: save XML node
Example <%@taglib prefix="x" uri="http://java.sun.com/jsp/jstl/xml"%> <%@taglib prefix="c" uri="ht…… -
The difference between Java abstract classes and interfaces
1) Abstract class 2) Interface 3) The difference between abstract classes and interfaces 4) Application scenarios of a…… -
Java collection interface
Example 1 public static void main(String[] args) { ArrayList list1 = new ArrayList(); // 创建集合 list1 Ar…… -
Spring queryforobject method: the result of the query is returned as an object type
queryForObject(String sql,Class requiredType) Example public static void main(String[] args){ ApplicationContext …… -
Java for statement explanation
for(条件表达式1;条件表达式2;条件表达式3) { 语句块; } public static void main(String[] args) { int result=1; …… -
BBS forum system development of Java project practice (with source code and analysis)
Development background System functional structure System business process System development environment System Previ…… -
Spring getdriverclassname method: get the name of the database driver class
getDriverClassName() Example public static void main(String[] args){ String driver = "com.MysqL.jdbc.Driver"; …… -
JSP JSTL < C: catch > tag: catch exception tag
< C: catch [var = "name"] >... Code with exception < / C: catch > Example <%@taglib prefix="c" uri="h…… -
JSP JSTL < C: remove > tag: remove tag
Example <%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%> <c:set var="name" value="C语言…… -
JSP JSTL < C: URL > tag: generate URL address tag
Syntax: Syntax format 1: Syntax format 2: Example <%@page import="java.util.*"%> <%@taglib…… -
JSP JSTL < x: out > tag: output XML information
Example <%@taglib prefix="x" uri="http://java.sun.com/jsp/jstl/xml"%> <%@taglib prefix="c" uri="ht…… -
Simple blog system development of Java project practice (with source code and analysis)
Development background System function design 1) Foreground function module 2) Background management module System bus…… -
JSP JSTL < SQL: transaction > tag: transaction
and statements isolationLevel:="read_committed" |"read_uncommitted" |"repeatable_read" |"serializabl…… -
JSP Response. Setattibute() method: sets the attribute value of the specified name
setAttribute(String name,Object value) Example <% session.setAttribute("information","向session中保存数据"); …… -
JSP JSTL < C: fortokens > tag: output tag by iterating the string
< C: fortokens items = "string" delims = "char" [var = "name"] [begin = "start"] [end = "end"] [Step = "len"] [vars…… -
What technology stacks do Ali P8 Java senior architects need to master?
Overall architecture design of intelligent Internet Philosophical essence of Internet super large scale architecture d…… -
Development of local information website of Java project (similar to 58 local)
Development background System objectives System functional structure System flow System Preview Build development envi…… -
JSP JSTL < C: redirect > tag: redirect tag
Syntax format 1: …… Syntax format 2: Example <%@taglib prefix="c" uri="http://java.sun.com/jsp/j…… -
Spring getservletcontext method: get ServletContext context
getServletContext() Example public class LoginAction extends AbstractController{ @Override protected ModelAn…… -
Java try catch statement
try { 逻辑代码块1; } catch(ExceptionType e) { 处理代码块1; } Example 1 import java.util.Scanner; pu…… -
Spring queryforlong method: single value query method of long type
Grammar 1 queryForLong(String sql) Example public long getUserCount(){ String sql = "SELECT count(*)FROM tb_user"…… -
Get annotation information through reflection
Example 1 /** * 这是自定义注解的类 */ @Target({ ElementType.TYPE,ElementType.METHOD }) @Retention(RetentionPolic…… -
Spring save method: saves the entity object
save(Object entity) Example public static void main(String[] args){ ApplicationContext context = new ClassPathXml…… -
JSP sessionscope object: an implicit object that accesses the session scope
${sessionScope.expression} Example ${sessionScope.user} Typical application <body> <p>EL对象使用<…… -
Hibernate wascommitted method: judge whether the transaction is committed
wasCommitted() Example session.saveOrUpdate(uf); //调用插入数据方法 if(tx.wasCommitted()){ //判断事务是否已经被提…… -
JSP JSTL < C: choose > Tags: select Tags
< C: choose > < C: when > business logic < / C: when >... <-- Multiple < C: when > tags -- …… -
Hibernate connection. Password property: Specifies the database connection password
hibernate. connection. Password = attribute value Example 1 <property name="hibernate.connection.password"><…… -
Hibernate clear method: empty cache
clear() Example Session session = sessionFactory.openSession(); //定义Session UserForm uf = new UserForm(); //定…… -
Struts2 ActionContext. Getapplication () method: get the application object of map type
public Map getApplication() Example Typical application Info value in the request range: Info value in the session ran……