Home | 简体中文 | 繁体中文 | 杂文 | Search | ITEYE 博客 | OSChina 博客 | Facebook | Linkedin | 作品与服务 | Email

部分 I. Spring Framework

目录

4. Spring Tool Suite
4.1. 安装
4.2. Dashboard
5. Spring Boot
5.1. Spring Boot Quick start
5.1.1. pom.xml
5.1.2. Controller
5.2. 运行
5.2.1. Linux systemd
5.3. application.properties
5.3.1. server
5.3.1.1. tomcat
5.3.2. charset
5.3.3. JSON
5.3.4. SMTP 相关配置
5.4. SpringApplication
5.4.1. @SpringBootApplication
5.4.2. @EnableAutoConfiguration
5.4.3. @ComponentScan
5.4.4. CharacterEncodingFilter
5.4.5. 隐藏 Banner
5.4.6. CORS 跨域请求
5.4.7. 列出 Beans
5.5. 编译用于Tomcat的 War
5.6. Properties
5.6.1. Application
5.6.2. spring.profiles.active 参数切换配置文件
5.7. Service
5.8. ViewResolver
5.8.1. application.properties
5.8.2. Application
5.8.3. IndexController
5.8.4. src/main/webapp/WEB-INF/jsp/index.jsp
5.8.5. 集成模板引擎
5.9. Spring boot mongodb
5.9.1. Maven
5.9.2. Application
5.9.3. MongoTemplate
5.9.4. Repository
5.10. Spring boot with MySQL
5.10.1. Maven
5.10.2. Resource
5.10.3. Application
5.10.4. JdbcTemplate
5.10.5. CrudRepository
5.11. Spring boot with Oracle
5.11.1. Maven
5.11.2. application.properties
5.11.3. Application
5.11.4. CrudRepository
5.11.5. JdbcTemplate
5.11.6. Controller
5.12. Spring boot with Email
5.12.1. Maven
5.12.2. Resource
5.12.3. POJO
5.12.4. RestController
5.12.5. Test
5.13. Spring boot with Velocity template
5.13.1. Maven
5.13.2. Resource
5.13.3. Application
5.13.4. RestController
5.13.5. Test
5.14. Logging
5.14.1. 禁止控制台输出日志
5.14.2. 日志输出级别
5.15. Spring boot with Spring security
5.15.1. Maven
5.15.2. Reource
5.15.3. Application
5.15.4. WebSecurityConfigurer
5.15.5. RestController
5.15.6. 测试
5.15.7. Spring + Security + MongoDB
5.15.7.1. Account
5.15.7.2. AccountRepository
5.15.7.3. WebSecurityConfiguration
5.16. Connection and Statement Pooling
5.16.1. org.apache.tomcat.jdbc.pool.DataSource
5.16.2. druid
5.16.3. c3p0 - JDBC3 Connection and Statement Pooling
5.16.4. dbcp2
5.16.5. bonecp
5.16.6. dbcp2
5.17. Spring boot with Scheduling
5.17.1. Application.java
5.17.2. Component
5.17.3. 查看日志
5.18. Spring boot with Cache
5.18.1. Spring boot with Redis
5.18.1.1. maven
5.18.1.2. application.properties
5.18.1.3. Controller
5.18.2. @Cacheable
5.18.2.1. maven
5.18.2.2. Controller
5.19. Session
5.19.1. Redis
5.19.1.1. Maven
5.19.1.2. application.properties
5.19.1.3. Application
5.19.2. 测试 Session
5.19.3. JDBC
5.20. FAQ
5.20.1. application.properties 参考
5.20.2. org.hibernate.dialect.Oracle10gDialect does not support identity key generation
5.20.3. No identifier specified for entity
5.20.4. Could not read document: Invalid UTF-8 middle byte 0xd0
5.20.5. java.sql.SQLRecoverableException: IO Error: The Network Adapter could not establish the connection
5.20.6. Field javaMailSender in cn.netkiller.rest.EmailRestController required a bean of type 'org.springframework.mail.javamail.JavaMailSender' that could not be found.
6. Spring MVC
6.1. Maven
6.2. Spring Boot Quick start
6.2.1. pom.xml
6.2.2. Controller
6.3. Spring MVC configuration
6.4. Tomcat
6.5. Thymeleaf
6.5.1. Maven pom.xml
6.5.2. Spring 配置
6.5.3. controller
6.5.4. HTML5 Template
6.6. 集成 Mybatis
6.6.1. pom.xml
6.6.2. properties
6.6.3. dataSource
6.6.4. SqlSessionFactory
6.6.5. Mapper 扫描
6.6.6. Mapper 单一class映射
6.6.7. Service
6.6.8. 测试实例
6.7. Properties
6.7.1. 载入*.properties文件
6.7.2. @Value 注解
6.7.3. @PropertySource 注解
6.8. @Controller
6.8.1. @RequestMapping
6.8.1.1. @RequestMapping("/")
6.8.1.2. 映射多个URL
6.8.1.3. headers
6.8.2. @ResponseBody
6.8.2.1. 直接返回HTML
6.8.3. RequestMapping with Path Variables - @PathVariable
6.8.3.1. URL 参数传递
6.8.3.2. URL 传递 Date 类型
6.8.3.3. 处理特殊字符
6.8.4. RequestMapping with Request Parameters - @RequestParam
6.8.4.1. HTTP GET
6.8.4.2. HTTP POST
6.8.5. @ModelAttribute
6.8.6. ModelAndView
6.8.6.1. 变量传递
6.8.6.2. ModelMap 传递多个变量
6.8.6.3. redirect
6.8.6.4. ArrayList
6.8.6.5. HashMap
6.8.6.6. 传递对象
6.8.6.7.
6.8.7. @Scheduled
6.8.8. HttpServletRequest / HttpServletResponse
6.9. Spring4 Restful
6.9.1. pom.xml
6.9.2. web.xml
6.9.3. springframework.xml
6.9.4. RestController
6.9.5. POJO
6.9.6. 测试
6.9.7. RestTemplate
6.9.7.1. GET
6.9.7.2. POST
6.9.7.3. PUT
6.9.7.4. Delete
6.9.7.5. 在控制器中完整实例
6.9.8. HTTP Auth
6.9.8.1. Client
6.10. Using Spring’s form tag library
6.10.1. css
6.10.1.1. cssClass
6.10.1.2. cssStyle
6.10.1.3. cssErrorClass
6.10.2. cssClass
6.11. FreeMarker
6.12. FAQ
6.12.1. o.s.web.servlet.PageNotFound
6.12.2. HTTP Status 500 - Handler processing failed; nested exception is java.lang.NoClassDefFoundError: javax/servlet/jsp/jstl/core/Config
6.12.3. 同时使用 Thymeleaf 与 JSP
6.12.4. 排除静态内容
6.12.5. HTTP Status 406
7. Spring Data
7.1. JdbcTemplate
7.1.1. execute
7.1.2. queryForInt
7.1.3. queryForObject
7.1.4. queryForList
7.2. Example
7.2.1. Redis
7.2.1.1. pom.xml
7.2.1.2. springframework-servlet.xml
7.2.1.3. Controller
7.2.1.4. index.jsp
7.2.1.5. 测试
7.2.2. Spring Data MongoDB
7.2.2.1. pom.xml
7.2.2.2. springframework-servlet.xml
7.2.2.3. POJO
7.2.2.4. Controller
7.2.2.5. 查看测试结果
7.2.2.6. 条件查询
7.3. MongoRepository
7.3.1. findAll()
7.3.2. deleteAll()
7.3.3. save()
7.3.4. count()
7.3.5. PageRequest
7.4. @Entity
7.4.1. @NotNull 不能为空声明
7.4.2. 处理日期时间
7.5. Query
7.6. FAQ
7.6.1. No identifier specified for entity
7.6.2. Oracle Date 类型显示日期和时间
8. Spring Security
8.1. EnableWebSecurity
8.1.1. 访问控制列表(Access Control List,ACL)
8.1.2. HTTP Auth
8.1.3. Rest
8.1.4.
8.1.5. Add User
8.2.
8.3.
comments powered by Disqus