![](https://img-blog.csdnimg.cn/20201014180756738.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
spring
文章平均质量分 63
白酒煮粥
这个作者很懒,什么都没留下…
展开
-
BigDecimal 除法 乘法 怎么使用
BigDecimal divide(BigDecimal divisor,int scale,int roundingMode) scale:表示四舍五入的位数 在上面的例子中,我们使用了BigDecimal类,并且采用setScale方法设置了精度,同时传递了一个RoundingMode.HALF_EVEN参数表示使用银行家舍入法则进行近似计算,BigDecimal和RoundingMode...原创 2020-04-24 10:25:49 · 911 阅读 · 0 评论 -
Property 'configuration' and 'configLocation' can not specified with together 解决方式
Property 'configuration' and 'configLocation' can not specified with together 将 config-location 改成 config-locations 可解决 软件赚钱_优米谷网原创 2020-04-22 16:27:57 · 1286 阅读 · 0 评论 -
Java 实现数据树形结构代码
// 准备使用到的实体类 @Getter @Setter @ToString public class DeptLevelDto extends SysDept { private List<DeptLevelDto> deptList = Lists.newArrayList(); public static DeptLevelDto adapt(SysDept...原创 2020-04-21 14:51:50 · 436 阅读 · 0 评论 -
spring 项目中常见的问题
1...\target\m2e-wtp\web-resources\META-INF\MANIFEST.MF (系统找不到指定的路径)解决办法 https://blog.csdn.net/liliang_11676/article/details/79272348 2.解决 There are no resources that can be added or removed from th...原创 2018-08-17 10:48:36 · 302 阅读 · 0 评论 -
spring获取 jdbcTemplate 的方式
方式一 : <bean id="dataSource" class="com.mchange.v2.c3p0.ComboPooledDataSource"> <property name="driverClass" value="oracle.jdbc.driver.OracleDriver"></property>原创 2018-12-06 09:58:25 · 1165 阅读 · 0 评论 -
springmvc使用response返回json
1. springmvc使用response返回json String jobj = "{\"recordsFiltered\":19,\"data\":[{\"encoding\": // 省略 response.setHeader("content-type", "text/json;charset=UTF-8"); response.getWriter.原创 2018-12-26 16:24:12 · 1376 阅读 · 0 评论