V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
V2EX  ›  sweetcode  ›  全部回复第 2 页 / 共 4 页
回复总数  66
1  2  3  4  
@nutting
@hand515
Junit 里面我加载了
@RunWith(SpringJUnit4ClassRunner.class)
@ContextConfiguration("classpath:config/spring-mybatis.xml")
@Autowired

但是我在 Main 类中用 getBean 的方式获取就获取不到了
@nutting 我这么配有问题么?
@hand515 有哪里有问题么?
@hand515
```
<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:context="http://www.springframework.org/schema/context"
xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context.xsd">

<context:component-scan base-package="com.sweetcode" />

<context:annotation-config />

<bean id="dataSource" class="org.springframework.jdbc.datasource.DriverManagerDataSource">
<property name="driverClassName">
<value>com.mysql.jdbc.Driver</value>
</property>
<property name="url">
<value>jdbc:mysql://localhost:3306/sweetcode?characterEncoding=UTF-8</value>

</property>
<property name="username">
<value>root</value>
</property>
<property name="password">
<value>5201314666</value>
</property>
</bean>

<bean id="sqlSession" class="org.mybatis.spring.SqlSessionFactoryBean">
<property name="dataSource" ref="dataSource"/>
<property name="mapperLocations" value="classpath:com/sweetcode/mapper/*.xml"/>
</bean>

<bean class="org.mybatis.spring.mapper.MapperScannerConfigurer">
<property name="basePackage" value="com.sweetcode.mapper"/>
</bean>

</beans>
```
更正一下,refresh 一下以后还是找不到...
2016-12-05 18:16:30 +08:00
回复了 sweetcode 创建的主题 问与答 有多少 V 友不喜欢酒吧的?
@passion336699
@zzczzc
@misaka19000
很欣慰= =
@FreeDog 握爪
2016-12-05 17:44:38 +08:00
回复了 sweetcode 创建的主题 问与答 有多少 V 友不喜欢酒吧的?
@caogen9
v 站上还是挺多的= =,感觉找到组织了
@Ouyangan
嗯,超反感这样的
2016-12-05 17:43:03 +08:00
回复了 sweetcode 创建的主题 问与答 有多少 V 友不喜欢酒吧的?
@herozzm
嗯, ktv 相比之下还好些,妹纸们也就闺蜜们生日啊去庆祝庆祝唱唱歌,酒吧真的感觉蛮糜烂的(应该说是闹吧?如果我查到的清吧和事实相符的话...
2016-12-05 17:41:17 +08:00
回复了 sweetcode 创建的主题 问与答 有多少 V 友不喜欢酒吧的?
@MinskyNg
@ipconfiger
@sleepywang
= = 原来还有清吧和闹吧这些种类啊,才知道....那怎么区分呢?或者说如果你去搜酒吧的话,没有单独列出清吧 /闹吧 的吧= =,一个个点进去看?
2016-12-05 17:32:28 +08:00
回复了 sweetcode 创建的主题 问与答 有多少 V 友不喜欢酒吧的?
@DT27 挺尴尬的......万一叫我去玩,不去也不好....去了很拘束也不好吧= =
2016-12-05 17:29:31 +08:00
回复了 sweetcode 创建的主题 问与答 有多少 V 友不喜欢酒吧的?
@ipconfiger 有哪些啊= =,还真不知道
2016-12-05 14:02:12 +08:00
回复了 sweetcode 创建的主题 问与答 有多少 V 友不喜欢酒吧的?
@konakona = = 初恋 4 年前了...最近才又鼓起勇气接受了下一段感情.....老被逆= =!!!

@crab 是啊....
2016-12-05 13:55:36 +08:00
回复了 sweetcode 创建的主题 问与答 有多少 V 友不喜欢酒吧的?
@itqls
@DT27 这么说我就放心了 http://i.imgur.com/qgzoeA2.png
2016-11-30 21:42:45 +08:00
回复了 sweetcode 创建的主题 问与答 Nginx 编译安装问题
@RobertYang
@techmoe
@Zzzzzzzzz
@doyel
@lhbc
主要是按照完了后生成的 /usr/local/nginx 下的目录结构不太对
2016-11-30 21:35:08 +08:00
回复了 sweetcode 创建的主题 问与答 Nginx 编译安装问题
@techmoe 装了已经
2016-11-30 20:59:53 +08:00
回复了 sweetcode 创建的主题 问与答 Nginx 编译安装问题
@Zzzzzzzzz
@doyel
@fingerstyle
@lhbc

就是说不一定要全部 found 的?
2016-11-30 14:27:55 +08:00
回复了 sweetcode 创建的主题 问与答 Nginx 编译安装问题
请教下 V 友,这是什么问题导致的呢?一开始
Configuration summary
+ using system PCRE library
+ using OpenSSL library: /usr/bin/openssl
+ using system zlib library

提示没有找到 openssl ,然后我 apt 安装了 openssl 并且手动指定了目录,可是依旧有 18 个 not found
2016-09-24 22:14:25 +08:00
回复了 sweetcode 创建的主题 macOS Sierra 自带的 Java 版本是多少呢?
@tyfulcrum zsh 可以有!
2016-09-24 22:14:16 +08:00
回复了 sweetcode 创建的主题 macOS Sierra 自带的 Java 版本是多少呢?
@helloSwift 嗯(-。-;), php 也自带的?....那 apache 也自带了难道?
1  2  3  4  
关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   3337 人在线   最高记录 6543   ·     Select Language
创意工作者们的社区
World is powered by solitude
VERSION: 3.9.8.5 · 27ms · UTC 13:48 · PVG 21:48 · LAX 06:48 · JFK 09:48
Developed with CodeLauncher
♥ Do have faith in what you're doing.