- 博客(6)
- 收藏
- 关注
原创 @(Rest)Controller和@RequestParam的一些知识点
@Controller和@RestController的区别?知识点:@RestController注解相当于@ResponseBody + @Controller合在一起的作用。例如:1.使用@Controller 注解,在对应的方法上,视图解析器可以解析return 的jsp,html页面,并且跳转到相应页面若返回json等内容到页面,则需要加@ResponseBody注解...
2019-09-16 09:10:53
932
原创 nginx配置反向代理
在nginx中的配置文件nginx.conf中配置,但是配置的时候一定要注意是修改/usr/local/nginx/conf目录下的nginx.conf文件,而不是/opt/nginx/conf中的nginx.conf,否则不能和web程序ping通,会出现404!!!!!!...
2019-09-16 09:09:36
147
原创 maven工程中,在impl项写controller的时候,出现导包错误
这是在maven工程中,在impl工程中写了controller,在导入HttpSession的时候出现导包错误,在build path的时候将tomat导入即可
2019-08-11 00:25:41
401
1
原创 spring 的专有测试
@ContextConfiguration@RunWith* 使用SpringJunit测试<br/>* 1、先导入Spring的junit测试jar包。<br/>* 2、需要告诉Spring,Spring容器对象需要的xml配置文件路径是多少<br/>@RunWith(SpringJUnit4ClassRunner.class)/...
2019-08-10 15:06:53
115
原创 jdbc中java.sql.SQLException: The server time zone value 'Öйú±ê׼ʱ¼ä' is unrecognized or represents
使用mybatis连接时报错java.sql.SQLException: The server time zone value 'Öйú±ê׼ʱ¼ä' is unrecognized or represents more than one time zone.具体报错如下:java.sql.SQLException: The server time zone value 'Öйú±ê×...
2019-03-07 16:34:40
253
2
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人