包含标签:Java 的文章
-
JSP pagecontext object: access JSP built-in objects
${PageContext.request[expression]} Example ${PageContext.session.username} -
Springweb < form: Options > tab: defines multiple options for a drop-down selection box or list box
Example 1 public class Fans{ List fanList = new ArrayList(); //定义一个List集合 public List getFanList(){ /…… -
Spring saveorupdateall method: saves or updates the collection of entity objects
saveOrUpdateAll(Collection entities)@H_ 403_ 3 @ Parameter Description: Example 1 public static void main(String[] a…… -
Struts 2 combobox tag: generates a combination of a single line text box and a drop-down list
< / s: combo@R_120_2419 @>/ / display of multiple selection boxes < / s: Form > Example &…… -
Spring queryformap method: query results are saved in the map collection
Grammar 1 queryForMap(String sql) Example public static void main(String[] args){ ApplicationContext context = ne…… -
Execution order of finally and return in Java
1. Try and catch contain return public class tryDemo { public static int show() { try { r…… -
Spring xmlbeanfactory class: parsing spring configuration
Xmlbeanfactory(Resource resource) Example public static void main(String[] args){ Resource res = new ClassPathRes…… -
Common problems and misunderstandings about Java static
Use misunderstanding public class Student { public static String name = "张三"; private static int age = 1…… -
Introduction to common methods of string API
1)char charAt (int index) 2)int codePointAt(int index) 5.0 3)int offsetByCodePoints(int startIndex,int cpCount) 5.0…… -
Java project: the development of Tianxia Taoshang mall system
Development background requirement analysis Functional structure System flow development environment System Preview F…… -
Hibernate addjoin method: associate an entity with a collection
addJoin(String alias,String path) Example Session session = sessionFactory.openSession(); //创建Session对象 String…… -
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……