摘要:
使用eclipse 创建Spring Boot项目时报: JSONException: A JSONObject text must begin with ‘{’ at character 0 解决方式: 将Service URL(http://start.spring.io)中http加s即可。 阅读全文
摘要:
@RestController注解下返回到jsp视图页面(转) 这个问题我也遇到过,下面的方法可以试试 蓝萝卜blu @RestController注解下返回到jsp视图页面 spring4.1中添加了@RestController注解很方便,集成了@ResponseBody注解,无需再在每个方法前 阅读全文
摘要:
${r"${"}${data.propertyName}${r"}"} ${r"${"} >输出内容为${ ${data.propertyName} >FreeMarker输出值 ${r"}"} >输出内容为} 阅读全文
摘要:
<script type="text/javascript"> $(document).ready(function() { var chart = $('#line1')[0]; var mychart = echarts.init(chart); var option = {...}; mych 阅读全文
摘要:
使用thymeleaf和layui的时候,使用layui的表格方法渲染,thymeleaf出现了渲染错误,报错信息如下: org.thymeleaf.exceptions.TemplateProcessingException: Could not parse as expression: " {c 阅读全文
摘要:
<button onclick="matchInfo()">确定</button> 当按钮在form表单中时,button会对from表单进行提交,它的功能就不是普通按钮。 解决方案 1 将button标签更换为input <input value="确定" onclick="matchInfo() 阅读全文
摘要:
首先通过用户登录获取到Subject对象,通过里面的一些方法来判断用户的角色. 1.判断是否拥有该角色,返回boolean值 2.权限验证:返回boolean值,用法和角色认证一样 4.添加一个junit包 5.新建一个测试类 阅读全文
摘要:
spring mvc 默认采用转发的方式定位视图 如果需要重定向,有下面两种方式可以实现: 1 使用RedirectView 如果controller 处理返回的结果是modalandview对象,就可以进行如下操作实现重定向 2 如果controller返回的处理结果是string类型的可以使用r 阅读全文
摘要:
<p class="left tel" th:if="${#strings.startsWith(T(net.common.util.tool.common.RequestUtil).getIP(#request),'192.')}"> <a href="#" target="_blank">奎</ 阅读全文
摘要:
@controller 控制器(注入服务) @service 服务(注入dao) @repository dao(实现dao访问) @component (把普通pojo实例化到spring容器中,相当于配置文件中的)@Component,@Service,@Controller,@Repository注解的类,并把这些类纳入进spring容器中管理。 下面写这个是引入component的扫描组件... 阅读全文