正在回答
同学你好!可以看到在加载图片时,img有class=”img-li“,同学可以通过class给img设置样式来改固定图片的大小,比如在common.css设置以下样式。
重启项目,如果没有改变。同学清除一下浏览器的缓存刷新一下页面。
如果我的回答解决了你的疑惑,请采纳,祝学习愉快~
控制台出现了这个:
CategoryService的findAll方法执行了...
CategoryDao的findAll方法执行了...
八月 07, 2019 9:05:11 上午 com.mchange.v2.log.MLog <clinit>
信息: MLog clients using java 1.4+ standard logging.
八月 07, 2019 9:05:11 上午 com.mchange.v2.c3p0.C3P0Registry banner
信息: Initializing c3p0-0.9.1.2 [built 21-May-2007 15:04:56; debug? true; trace: 10]
八月 07, 2019 9:05:11 上午 com.mchange.v2.c3p0.impl.AbstractPoolBackedDataSource getPoolManager
信息: Initializing c3p0 pool... com.mchange.v2.c3p0.ComboPooledDataSource [ acquireIncrement -> 3, acquireRetryAttempts -> 30, acquireRetryDelay -> 1000, autoCommitOnClose -> false, automaticTestTable -> null, breakAfterAcquireFailure -> false, checkoutTimeout -> 0, connectionCustomizerClassName -> null, connectionTesterClassName -> com.mchange.v2.c3p0.impl.DefaultConnectionTester, dataSourceName -> 1hgewapa4taw5ql12oy8uh|7d98b2a6, debugUnreturnedConnectionStackTraces -> false, description -> null, driverClass -> com.mysql.cj.jdbc.Driver, factoryClassLocation -> null, forceIgnoreUnresolvedTransactions -> false, identityToken -> 1hgewapa4taw5ql12oy8uh|7d98b2a6, idleConnectionTestPeriod -> 0, initialPoolSize -> 3, jdbcUrl -> jdbc:mysql:///shop?useSSL=false&serverTimezone=Hongkong&useUnicode=true&characterEncoding=utf-8, maxAdministrativeTaskTime -> 0, maxConnectionAge -> 0, maxIdleTime -> 0, maxIdleTimeExcessConnections -> 0, maxPoolSize -> 15, maxStatements -> 0, maxStatementsPerConnection -> 0, minPoolSize -> 3, numHelperThreads -> 3, numThreadsAwaitingCheckoutDefaultUser -> 0, preferredTestQuery -> null, properties -> {user=******, password=******}, propertyCycle -> 0, testConnectionOnCheckin -> false, testConnectionOnCheckout -> false, unreturnedConnectionTimeout -> 0, usesTraditionalReflectiveProxies -> false ]
PageBean [page=1, limit=6, totalCount=4, totalPage=1, list=[Product [pid=1, pname=aaa, author=null, price=123.0, description=123123, filename=null, path=null, category=Category [cid=null, cname=null, cdesc=null]], Product [pid=2, pname=aaa, author=null, price=123.0, description=123123, filename=null, path=null, category=Category [cid=null, cname=null, cdesc=null]], Product [pid=3, pname=bbb, author=null, price=12345.0, description=12312323234, filename=2.jpg, path=/shop/upload/cf036f5b02c5493eb0ade6c55566fc2a.jpg, category=Category [cid=null, cname=null, cdesc=null]], Product [pid=4, pname=古风, author=秦岩, price=2988.8, description=好看的古风, filename=login_banner.png, path=/upload/49b17cbaf4fe465bae6c1571ee76ed76.png, category=Category [cid=null, cname=null, cdesc=null]]]]
- 参与学习 人
- 提交作业 357 份
- 解答问题 8016 个
本阶段将带你学习MySQL数据库,JDBC接口,MyBatis框架等,带你掌握的数据的存放和管理。
了解课程
恭喜解决一个难题,获得1积分~
来为老师/同学的回答评分吧
0 星